Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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:

  1. A global URL set in the merchant dashboard, used for every order.

  2. The webhookUrl field on Create order, which overrides the global URL for that one order.

How to set the global endpoint is on Getting Started. Order status changes are on by default; the auth and kyc events are opt-in — see KYC and auth webhooks.

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 301 or 302 is a failed delivery, retried and then given up on. This catches people whose host redirects http to https: register the final https URL.

  • 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 _id or merchantOrderParams and 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.

We refuse to POST to a URL that resolves to a private or internal address. If deliveries never arrive, check the dashboard's delivery results first — a blocked target is recorded there, as is a refused redirect.

Last updated