Request an FX Quote
POST
/fx-rate-api/request/quote
This endpoint requests an FX quote from the CSL Pay platform, providing the necessary information to generate a quote for a specific currency exchange. A partner would call this endpoint when they need to obtain a quote for a potential FX transaction, allowing them to plan and manage their currency exchange requirements. The endpoint accepts a POST request with the required fields and returns a quote ID and the corresponding FX quote details.
Request body
-
buyCurrencyrequiredThe currency to buy, represented as a three-letter ISO code.
-
sellCurrencyrequiredThe currency to sell, represented as a three-letter ISO code.
-
amountrequiredThe amount to exchange, represented as a decimal number.
-
directionrequiredThe direction of the exchange, either 'buy' or 'sell'.
Response 200
-
quoteIdA unique identifier assigned to the quote request.
-
buyCurrencyThe currency being bought, e.g. GBP.
-
buyAmountThe amount being bought, in the buy currency.
-
sellCurrencyThe currency being sold, e.g. EUR.
-
sellAmountThe amount being sold, in the sell currency.
-
rateThe exchange rate used to calculate the sell amount.
-
directionThe direction of the exchange, either 'buy' or 'sell'.
-
quotedAtThe timestamp when the quote was requested, in ISO 8601 format.
-
expiresAtThe timestamp when the quote expires, in ISO 8601 format.
-
expiresInSecondsThe number of seconds until the quote expires.