Webhooks
Receive real-time event notifications when payment, invoice, transaction, payout, refund, swap, and deposit states change.
Use webhooks to keep your system in sync without polling.
Webhook references
Choose a page for the event family you need:
Payments
Payment session lifecycle events.
Invoices
Invoice payment, updates, and expiry.
Transactions
On-chain transaction detection and confirmation.
Payouts
Outgoing payout events.
Refunds
Refund creation, completion, and failure.
Swaps
Currency swaps between your balances.
Deposits
Crypto and bank transfer deposits into your account.
Before you go live
Verify the webhook signature on every request.
Return a
200response as soon as you accept the event.Use
X-CoinCircuit-Delivery-Idto handle retries safely.
Event flow
Most payment flows follow this order:
transaction.receivedtransaction.confirmedOne of the payment events
Any follow-up invoice, payout, or refund events
Use transaction events for blockchain state.
Use payment and invoice events for business state.
Delivery format
All webhook deliveries are sent as POST requests to your webhook endpoint.
Standard headers
X-CoinCircuit-Event
Event name, such as transaction.confirmed.
X-CoinCircuit-Delivery-Id
Unique ID for this delivery.
X-CoinCircuit-Signature
HMAC-SHA256 signature of the request body.
X-CoinCircuit-Timestamp
Unix timestamp of the delivery, used in signing.
Retry behavior
If your endpoint returns anything other than a 200, the delivery is retried with exponential backoff, roughly at 0 minutes, 1 minute, 10 minutes, then 1 hour.
Build handlers to be idempotent.
Use the delivery ID to detect duplicates safely.
Verify signatures
Verify signatures against the raw request body.
Reject invalid requests before you process the payload.
Shared payload shape
Every delivery includes:
event: the event namedata: the event payload
The object inside data changes by event family:
payment events use
data.sessioninvoice events use
data.invoiceanddata.paymentstransaction events use
data.transactionanddata.sessionpayout events use
data.payoutrefund events use
data.refundswap events use
data.swapdeposit events put the deposit directly in
data
Last updated