API reference · Payments
Create a payment
Creates a hosted checkout with its own deposit address. Send either amount (a fixed stablecoin amount) or price (a local-currency price).
With price, the customer pays the stablecoin equivalent at a rate locked for 30 minutes, fees are included so you receive the full price, and you are settled in that currency.
POST
/api/v1/paymentsRequires the payments:write scope. Returns 201 on success. Accepts an Idempotency-Key.
Body parameters
amountstringsometimes required- Stablecoin amount to collect, between 1 and 1,000,000. Send this or
price, never both. priceobjectsometimes required- A local-currency price. Send this or
amount. price.amountstringsometimes required- The price in major units, for example
"1500.00". price.currencystringsometimes required- A local currency you have linked in Settlements, for example
NGN. currencystringrequired- The stablecoin the customer pays with:
USDTorUSDC. networkstringrequiredTRON,BSCorETHEREUM.settle_tostringoptional- With
amount, convert what you receive into this linked local currency. Leave out to keep it in USD. referencestringoptional- Your own order reference, up to 100 characters. It is returned on the payment and its webhooks.
Common errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | A field is missing or wrong; the message says which |
| 401 | unauthorized | Bad or revoked key, or a disallowed address |
| 403 | forbidden | The key lacks the scope |
| 429 | rate_limited | Slow down; see Retry-After |