Skip to main content
If you follow the Authentication guidelines you’ll have implemented the means to access the API. The following sections describe how to secure a trade, add a beneficiary and make a payment. For more detail on each of these activities please see the relevant sections.

Get a Quote

To execute a trade, you need to call the Quotes endpoint and get a quote. As already discussed in Getting Started to get a quote you need the following:
  • The authentication flow completed with an access token to hand;
  • The correct client identifier, retrieved from the ID token generated by the Token endpoint.
The response contains a quote_id and a URL that you can use to book the trade. For more details on the Quotes API please refer to the Getting Quotes section.

Client Identifier

The client identifier is an entity Ebury uses to differentiate between different accounts in our data model. Majority of customers will only have one client identifier, but some may have multiple accounts and thus multiple identifiers.
Where a customer has multiple identifiers the correct one will need to be selected by your application prior to making an API call.

Book a Trade

With the quote identifier you can now book a trade to fund payment, calling the trades endpoint. Due to anti-money laundering a reason for making the trade needs to be specified; the API allows this to be a freeform value at the time of writing but future versions may introduce validation of the reason submitted. The response contains a trade_id you can now book payments for known beneficiaries. For more details on the Trades API please refer to the Making Trades section.
Note: The trade needs to be funded using the account details contained in the book trade response.

Add a Beneficiary

With the trade booked you can create a beneficiary who will be the recipient of part or all of the trade (of course you only need to create a beneficiary once, they are stored and can be reused later). A beneficiary ID and account ID are returned that you can use to make a payment. For more details on the Beneficiaries API please refer to the Managing Beneficiaries section.
Note: Whilst the beneficiary exists and payments can be booked against the beneficiary must past compliance before payments can actually proceed.

Make a Payment

Everything is now in place to book on or more payments, using the trade_id and beneficiary and account IDs returned from the create beneficiary step. A payment_id will be returned together with links to download the payment instruction and receipt documents when available; if you are set-up to to pay immediately the payment will be made when:
  • The beneficiary is validated;
  • Funds are available;
  • The payment date is reached.
If the payment requires authorisation an additional PATCH method will be required; refer to the notes in the Making Payments section for details.
Note: For bulk operations, Multi Payments wraps the functionality of quote, trade, beneficiary, and payment into a simple call. See relevant section for more details.