Initialise FX quote request
Initialising an FX quote request refers to creating a request with the amount for the currency pair that you want to use.
Use case
Here we will initialise an FX quote request with sample data.
The path parameter is the technical ID of the account to which the payment is being made.
".../ID-1026/fx-quotes/initialise"
Currency details
"sellCurrencyCode": "EUR",
"buyCurrencyCode": "GBP"
Amount details
"amount": {
"amount": 30,
"currencyCode": "EUR" }
Tenor refers to the contract durations for trades.
The allowed value is TODAY. This means that the currency exchange rate on the day that the order is executed is applied.
"tenor": "TODAY"
Sample API call
To initialise the FX quote request, use the following endpoint:
https://payment-api.sandbox.tuumplatform.com/api/v1/accounts/ID-1026/fx-quotes/initialise
Sample request
The sample request body is as follows:
{
"sellCurrencyCode": "EUR",
"buyCurrencyCode": "GBP",
"money": {
"amount": 30,
"currencyCode": "EUR"
},
"tenor": "TODAY"
}
Sample response
Below you will find the response to the sample request:
Result
The quote request is created with a quote request ID and status code. The next step is to get the response ID for the quote request.
Last updated
Was this helpful?