Webhooks
We POST to your endpoint every time an order changes status. This is how you track an order — polling Get order is the fallback, not the plan.
There are two ways to say where to send them:
A global URL set in the merchant dashboard, used for every order.
The
webhookUrlfield on Create order, which overrides the global URL for that one order.
Payload
FlowType, OrderType, Source, OrderStatus, PaymentChannel, CurrencyType, OrderCurrencyDetails, KycType and KycStatus are all on the Types page.
A transaction.meta block is only added when it has at least one of the three fields, so a leg with no on-chain movement carries no transaction at all.
Note what is not here: the payload is a summary, not the whole order. cashout gives you the rates and the amounts but no fee breakdown, and there is no transferInstructions, no statusChangeLogs, no expiresAt and no providedFieldsToCreateOrder. Match the webhook to your own record with _id or merchantOrderParams, and call Get order when you need the rest.
Example payload
Verifying the signature
Every request carries an x-signature header. Verify it before you act on the payload, using the webhook secret from the merchant dashboard.
The signature is the SHA-256 of the raw request body followed by the hex SHA-256 of your secret:
TypeScript example:
Python example:
What your endpoint must do
Answer with a 2xx status. Anything else counts as a failure.
Answer at the URL you gave us. We do not follow redirects — the request is sent with a redirect limit of zero, so a
301or302is a failed delivery, retried and then given up on. This catches people whose host redirectshttptohttps: register the finalhttpsURL.Answer within 20 seconds. A slower response is treated as a timeout.
Be idempotent. A retry can deliver the same status twice, and a delivery can arrive out of order — key on
_idormerchantOrderParamsand ignore a status you have already handled.
Retries
A failed delivery is retried up to 10 attempts in total — the first plus nine retries — with an exponential backoff starting at one second: 1s, 2s, 4s, 8s, 16s, 32s, 64s, 128s, 256s. Every attempt and its result is visible in the merchant dashboard under Webhooks.
Last updated

