A payment with an exchange allows you to send funds to a recipient in a currency that you aren’t currently holding. For example, if you want to send funds in USD but only have a balance in GBP.Documentation Index
Fetch the complete documentation index at: https://docs.equalsmoney.com/llms.txt
Use this file to discover all available pages before exploring further.
Currently, you can only make payments from the parent budget, not from any sub-budgets.
How it works
The following diagram describes the different steps required to send funds externally with Equals Money. Click on the image to enlarge it.Create a payment with exchange
POST
/v2/orders/trade?accountId={accountId}Before you start
To send a payment with an exchange, you first need to create a quote where:type.fromis set tobalancetype.tois set topayment,multiple, orforwardsourceCurrencyandtargetCurrencyare set to different currencies- either
sourceCurrency.amountortargetCurrency.amountis provided sourceCurrency.currency.budgetIdandtargetCurrency.currency.budgetIdare set to the ID of the parent budget
GBP payment to a recipient who wants to receive USD:
Request
Use this request to create a payment with exchange, using theorderId and quoteRequestId returned when you created a quote.
Query parameters
The ID of the account that you’re creating an order for.Allowable values: An existing
accountIdRequest body schema
The ID of the order that was returned in the quote request.Allowable values: An existing
orderId (≤ 36 characters)The ID of the quote request.Allowable values: An existing
quoteRequestId (≤ 36 characters)Details about the payment.Allowable values: A valid
payments object containing the following fields: amount, currency, recipientId, internalReference, externalReferenceResponse
If your request is successful, you’ll receive a200 response.