curl --request POST \
--url https://api.breet.io/v1/payments/convert \
--header 'Content-Type: application/json' \
--header 'X-Breet-Env: <api-key>' \
--header 'x-app-id: <api-key>' \
--header 'x-app-secret: <api-key>' \
--data '
{
"amount": 100,
"currency": "ngn"
}
'{
"message": "conversion successful",
"success": true,
"data": {},
"meta": {},
"summary": {},
"stats": {}
}Conversion
Convert USD to Fiat
Convert USD balance to local fiat (NGN or GHS). Optionally specify a saved bank to credit.
POST
/
payments
/
convert
curl --request POST \
--url https://api.breet.io/v1/payments/convert \
--header 'Content-Type: application/json' \
--header 'X-Breet-Env: <api-key>' \
--header 'x-app-id: <api-key>' \
--header 'x-app-secret: <api-key>' \
--data '
{
"amount": 100,
"currency": "ngn"
}
'{
"message": "conversion successful",
"success": true,
"data": {},
"meta": {},
"summary": {},
"stats": {}
}Authorizations
Your application ID from the Breet dashboard
Your application secret from the Breet dashboard
Environment selector: sandbox or production
Body
application/json
Amount in USD to convert to fiat.
Example:
100
Target fiat currency to convert into.
Available options:
ngn, ghs Example:
"ngn"
ID of a saved bank account to credit. When provided, PIN is required. Omit for conversion to wallet only.
Example:
"69737920df8b52679a8b198e"
Transaction PIN (required when bank is provided).
Response
Conversion completed successfully
Was this page helpful?