Developers
Webhook events
The events Crate sends to webhook endpoints today, what each request body contains, and the events that are listed but not sent yet.
Reviewed
On this page
Each webhook request is about one event. The event's name is in the X-Crate-Topic header and, for order events, in the body's event field. This page lists the events Crate sends today and what each body holds.
Events Crate sends today
| Event | Sent when |
|---|---|
order.placed |
A buyer's order is completed and settled at checkout. Sent first. |
order.paid |
The same order is fully paid. Sent right after order.placed. |
order.fulfilled |
You mark items in an order as shipped or fulfilled. |
order.cancelled |
An order is cancelled. |
license_key.activated |
A license key is switched on for a device through the API. |
license_key.revoked |
A license key is revoked. |
license_key.expired |
A license key reaches its end date. |
An endpoint with no events ticked receives all of these.
[!IMPORTANT] Test orders don't send
order.placedororder.paid. To see a real event, place a live order or fulfil one.
order.placed and order.paid
These events carry the whole order. Money is in whole minor units of the order's currency, so 4800 means USD 48.00.
{
"version": "2026-10-01",
"event": "order.paid",
"id": 1042,
"number": "R123456789",
"status": "complete",
"payment_status": "completed",
"fulfillment_status": "pending",
"test": false,
"currency": "USD",
"subtotal": 4200,
"discount": 0,
"tax": 0,
"shipping": 600,
"total": 4800,
"refunded": 0,
"created_at": "2026-10-23T14:02:11Z",
"completed_at": "2026-10-23T14:03:40Z",
"paid_at": "2026-10-23T14:03:41Z",
"customer": { "…": "…" },
"line_items": [ { "product_id": 31, "…": "…" } ]
}Fields with no value are left out. Depending on the order, the body can also include custom_fields, coupon, affiliate, subscription_id and invoice_url.
payment_status is one of pending, completed, partially_refunded, refunded, reversed or failed. reversed means a dispute was lost.
order.fulfilled
Sent once for each shipment you mark as fulfilled. The body names the order and the shipment. Fetch the order from the API if you need more.
{ "order": "R123456789", "shipment": "H12345678901" }order.cancelled
{
"order": "R123456789",
"reason": "Customer changed their mind",
"restocked": true,
"restock_requested": true,
"cancelled_at": "2026-10-23T15:10:00Z",
"currency": "USD",
"total": "48.0"
}Unlike the full order events, total here is a decimal string in the order's currency.
license_key events
license_key.activated, license_key.revoked and license_key.expired carry the key and, for an activation, the device:
{
"event": "license_key.activated",
"license_key": {
"id": 88, "key": "ABCD-EFGH-JKLM-NPQR", "last4": "NPQR", "status": "issued",
"product_id": 31, "variant_id": 54, "order_id": 1042, "email": "buyer@example.com",
"issued_at": "…", "expires_at": null, "revoked_at": null,
"activations": 1, "activation_limit": 3
},
"activation": { "id": 501, "instance_id": "laptop-1", "instance_name": "Work laptop", "activated_at": "…" }
}The body includes the full key, so keep your endpoint's logs private.
Use events safely
- Check the signature on every request before you trust it. See Verify webhook signatures.
- Use
X-Crate-Eventto skip an event you've already handled. A retry carries the same id. - Events can arrive out of order. If order matters, fetch the latest record from the API.
- Answer
2xxquickly, then do slow work in the background.
Troubleshooting
Next steps
Was this helpful?
Still need a hand?
Tell us the task you were trying to complete and the message you saw. Include your store name or order reference when relevant. Keep passwords, API secrets and card details private.
Contact Crate