Skip to main content
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
}'
{
  "message": "conversion successful",
  "success": true,
  "data": {},
  "meta": {},
  "summary": {},
  "stats": {}
}

Authorizations

x-app-id
string
header
required

Your application ID from the Breet dashboard

x-app-secret
string
header
required

Your application secret from the Breet dashboard

X-Breet-Env
string
header
required

Environment selector: development or production

Body

application/json
amount
number
required

Amount in USD to convert to fiat.

Example:

100

bank
string

ID of a saved bank account to credit. When provided, PIN is required. Omit for conversion to wallet only.

Example:

"69737920df8b52679a8b198e"

pin
string

Transaction PIN (required when bank is provided).

Response

Conversion completed successfully