Official Banxa Enterprise API Specs
A unique customer identifier provided by you. This field is required and must be unique for each customer. Please ensure you consistently reuse the same identityReference for repeat interactions with the same customer, allowing us to reliably recognize and associate their identity.
Required without cryptoAmount The amount in fiat currency to convert. Amount in fiat minor precision (typically 2 decimals). This locks the fiat amount; the crypto amount will be computed and rounded to the configured crypto scale. Note: due to differing decimal scales and rounding rules, converting fiat→crypto and then crypto→fiat may not return the exact original number..
- Mock serverhttps://banxa-enterprise.redocly.app/_mock/enterprise-api/v0-beta/openapi/eapi/v0/price
- Production environment serverhttps://api.banxa.com/eapi/v0/price
- Sandbox environment serverhttps://api.banxa-sandbox.com/eapi/v0/price
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://banxa-enterprise.redocly.app/_mock/enterprise-api/v0-beta/openapi/eapi/v0/price?identityReference=c-13344&fiat=AUD&crypto=USDT&method=payid-bank-transfer&blockchain=TRON&transactionType=ONRAMP&fiatAmount=10&cryptoAmount=0.01' \
-H 'Authorization: YOUR_API_KEY_HERE'Prices are subject to change due to market volatility and network congestion, therefore it's not recommended to cache this response for longer than 1 minute.
Price response.
ASCII letters, digits, and hyphen only, A unique customer identifier provided by you. This field is required and must be unique for each customer. Please ensure you consistently reuse the same identityReference for repeat interactions with the same customer, allowing us to reliably recognize and associate their identity.
{ "identityReference": "c-13344", "source": { "fiat": { … }, "amount": "100" }, "target": { "crypto": { … }, "amount": "100" }, "processingFee": "1.00", "networkFee": "1.00" }