GET
/
fx
/
convert
curl --request GET \
  --url https://api.stablepay.ai/fx/convert \
  --header 'Authorization: Bearer <token>'
{
  "sourceCurrency": "<string>",
  "destinationCurrency": "<string>",
  "sourceAmount": 123,
  "convertedAmount": 123,
  "exchangeRate": 123,
  "timestamp": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

JWT token for API authentication

Query Parameters

amount
number
required

Amount to convert

Required range: x >= 0.01
sourceCurrency
enum<string>
required

Source currency code

Available options:
KES,
ZAR
destinationCurrency
enum<string>
required

Destination currency code

Available options:
USDC

Response

200
application/json

Currency conversion successful

The response is of type object.