Events and headers
The current payment events arepayment.confirmed, payment.underpaid, and payment.failed.
The JSON body contains
id, type, created, livemode, and data. Payment data includes intent_id, status, asset, chain, amount, amount_listed, credited_amount, reference, metadata, and transaction details.
Verify the raw bytes
The signature covers the timestamp, a period, and the exact raw HTTP body. Do not parse and re-serialize JSON before verification. Use the endpoint’s signing secret, not your API key.request.body and request.headers.get("GoChameleon-Signature", ""). Reject invalid signatures before processing. Keep your server clock synchronized.
Process reliably
- Verify the signature, then parse JSON.
- Check
livemodematches the integration environment. - Match
data.intent_idto a payment stored on your order. Verify the expected asset, amount, and confirmed status before fulfilling. - Persist the event and order update atomically, or durably enqueue the event, before returning a successful 2xx response.
- Deduplicate retries using the event
idor delivery ID. Also enforce once-only fulfillment per payment/order: manual replays and separate endpoints can produce new event IDs for the same payment.
Node.js / Express verification
express.raw({ type: "application/json" }) before any JSON body parser. Pass the resulting Buffer to verifySignature, then parse JSON only after verification succeeds.
Replay a missed event
Inspect delivery history in the dashboard Webhooks page. The Replay a webhook API reference queues a fresh delivery to every active endpoint for aconfirmed, underpaid, or failed payment. Pending and expired payments are not replayable.
PAYMENT_ID. A successful replay returns HTTP 202 with event, queued, and delivery_ids. It does not perform a new payment.