Business API
Get exchange reasons
api
get
/exchange-reasons

Get exchange reasons

Depending on the country and the amount of funds to be exchanged, you might be required to provide an exchange reason. With this endpoint, you can retrieve all exchange reasons available to your business account.

After you retrieve the results, use the appropriate reason code in the exchange_reason_code field when exchanging money or making a payment that involves foreign currency exchange.

Access Token

Each Business API request must contain an authorization header in the following format to make a call: Bearer <your_access_token>.

The access token will be obtained the first time you set up your application and has an expiration of 40 minutes. During setup, a refresh_token will also be obtained which allows to obtain a new access_token.

danger

Never share your client-assertion JWT (JSON web token), access_token and refresh_token with anyone, as these can be used to access your banking data and initiate transactions.

Access tokens can be issued with four security scopes and require a JWT (JSON Web Token) signature to be obtained:

  • READ: Permissions for GET operations.

  • WRITE: Permissions to update counterparties, webhooks, and issue payment drafts.

  • PAY: Permissions to initiate or cancel transactions and currency exchanges.

  • READ_SENSITIVE_CARD_DATA: Permissions to retrieve sensitive card details.

    caution

    If you enable the READ_SENSITIVE_CARD_DATA scope for your access token, you must set up IP whitelisting. Failing to do so will prevent you from accessing any Business API endpoint.

    IP whitelisting means that you must specify an IP or a set of IPs which will be the only IPs from which requests to the API will be accepted. To do so:

    1. Go to the Revolut Business web app settings -> APIs -> Business API.
    2. Select the corresponding API certificate.
    3. In Production IP whitelist, provide the IP(s) which should be whitelisted, and save.

To configure your JWT and obtain the refresh and first access tokens, complete the following steps:

  1. Sign up for a Revolut Business account
  2. Prepare your Sandbox environment
  3. Make your first API request

Request

Response

List of exchange reasons

Response body
Body array of objects

Possible values: [business_expense_and_claims, fees_and_charges, fund_transfer_and_intracompany_payment, gifts_and_donations, government_services_and_tax, insurance, inventory, investment_dividend_and_interest, loan_and_loan_repayment, marketing, payment_for_goods_and_services, payroll, refund, rental_and_property, sales, service_provider_and_software, travel_and_transportation, utilities]

Category code of the reason for the exchange.

Category name of the reason for the exchange.

Was this page helpful?
Loading...