curl --request POST \
--url https://api.breet.io/v1/payments/fiat-to-usd \
--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": 50000
}
'{
"message": "conversion completed",
"success": true,
"data": {},
"meta": {},
"summary": {},
"stats": {}
}Conversion
Convert Fiat to USD
Convert local fiat (NGN or GHS) balance to USD. Optionally provide a withdrawal address ID to automatically withdraw the converted USD to that address.
POST
/
payments
/
fiat-to-usd
curl --request POST \
--url https://api.breet.io/v1/payments/fiat-to-usd \
--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": 50000
}
'{
"message": "conversion completed",
"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 local fiat (NGN or GHS) to convert to USD.
Example:
50000
Transaction PIN (required when withdrawalAddressId is provided).
ID of a saved withdrawal address. If provided, the converted USD is withdrawn to this address; PIN is required.
Example:
"6932dc98c2ceccdea367388a"
Response
Conversion (and optional withdrawal) completed successfully
Was this page helpful?