GET
/
fx
/
convert
Convert Currency
curl --request GET \
  --url https://api.stablepay.ai/fx/convert \
  --header 'Authorization: Bearer <token>'
{
  "convertedAmount": 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:
USDC,
KES,
ZAR,
UGX
destinationCurrency
enum<string>
required

Destination currency code

Available options:
USDC,
NGN,
KES,
ZAR

Response

200
application/json

Currency conversion successful

The response is of type object.