Get Rates
Request URL
GET /rates
Description
This endpoint gets a list of all avaiable FX rates from all back offices that the current user is associated with, along with commission rates for those back offices.
Snippet Examples
javascript
const axios = require('axios');
const config = {
method: 'GET',
url: '${AMPLIFI_BASE_URL}/rates',
headers: {
'token': "A long random string token received from /token request"
},
};
let result;
try {
result = await axios.request(config);
if (result.status === 200) {
console.log(JSON.stringify(result.data));
}
} catch (err) {
console.log({
errCode: err.code,
responseStatus: err.response && err.response.status,
data: err.response && JSON.stringify(err.response.data)
});
}
cURL
curl --location "AMPLIFI_BASE_URL/rates" --header "token: A long random string token received from /token request"
Successful Response Examples
200 RATES SUCCESSFUL RESPONSE LISTING CURRENCY EXCHANGE RATES
HEADERS
Header | Value |
---|---|
token | A long random string token received from /token request |
REQUEST BODY
RESPONSE BODY
{
"rates": [],
"backOffices": [
{
"id": "evolve",
"baseCurrency": "USD"
},
{
"id": "plaid",
"baseCurrency": "USD"
},
{
"id": "tabapayBOIS",
"baseCurrency": "USD"
},
{
"id": "connectfiBOIS"
},
{
"id": "flw",
"baseCurrency": "USD"
}
],
"backOfficeRoutes": [],
"dtsRefreshed": "2023-12-20T13:23:16.808Z",
"success": true,
"baseCurrency": "USD"
}