Creates a new order for an internal currency exchange and/or for an outbound payment, using an existing quote.
cURL
Variant1
curl --request POST \ --url https://api.equalsmoney.com/v2/orders/trade \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "orderId": "string", "quoteRequestId": "string", "payments": { "amount": 0, "currency": { "budgetId": "775596ae-2624-40af-a9dc-9756110a4a03", "currencyCode": "USD" }, "recipientId": "string", "internalReference": "string", "externalReference": "string" } } '
{ "orderId": "EABCDE6FGHI0", "bank": "BANK", "settlement": { "date": "20221027", "price": { "amount": 5, "currency": "USD" }, "charges": { "fee": 0, "margin": 0, "other": 0 } }, "trade": { "rate": 1, "inverseRate": 1, "from": { "amount": 5, "currency": "USD" }, "to": { "amount": 5, "currency": "USD" } } }
The ID of the account to work with.
"F50091"
Body
The orderId that was returned in the currency quote.
orderId
The quoteRequestId that was returned in the currency quote.
quoteRequestId
Show child attributes
OK
Details about the quote.
The ID of the order.
"EABCDE6FGHI0"
The bank.
"BANK"
Details about the settlement.
Was this page helpful?