Receive webhooks
A webhook is Sabiwave calling your server: when something happens in your business, Sabiwave sends
a signed POST to an address you choose, usually within a few seconds. Your website can then
confirm an order to its shopper, update its stock or sync a customer without asking the API over
and over.
Add an endpoint
Section titled “Add an endpoint”In Settings › Developer › Webhooks, press Add endpoint:
- Endpoint URL: an
https://address on the public internet, such ashttps://yourshop.com/webhooks/sabiwave. Addresses inside a private network aren’t allowed, and redirects aren’t followed. - Description: optional, what listens there.
- Events: the ones you want. Each endpoint gets only what it’s subscribed to.
- Mode: Live endpoints receive your business’s events. Test endpoints receive only the test pings you send them.
Sabiwave then shows the endpoint’s signing secret (whsec_…) once: keep it on your server and
use it to check every delivery’s signature. A business can have 10
endpoints.
Press Send a test ping on the endpoint to check it any time, switched on or off. The Delivery log shows what your server answered.
The request
Section titled “The request”Each delivery is a POST with a JSON body and these headers:
POST /webhooks/sabiwave HTTP/1.1Content-Type: application/jsonUser-Agent: Sabiwave-Webhooks/1X-Sabiwave-Event: order.createdX-Sabiwave-Delivery: 01a2253b-3cb8-72e9-93aa-e045f6a000d3X-Sabiwave-Signature: t=1795921193,v1=ecd8e50937742631f946de3a289cd5d3c8d3944a402dfc90d6dbbdb22991e75a{ "id": "01a2253b-3a88-740e-a06d-e38188446f21", "data": { "id": "01a2253b-3a4d-71bd-92b8-5d5d29a032d6", "object": "order", "channel": "website", "orderId": "01a2253b-3a4d-71bd-92b8-5d5d29a032d6", "storeId": "01a21564-0fa5-73bd-b689-d7a0a4173117", "customerId": "01a2253b-3917-7176-92c3-8eda1bfb6c34", "totalMinor": "7450000", "orderNumber": "PDSWT-20261129-0001" }, "type": "order.created", "livemode": true, "createdAt": "2026-11-29T02:56:08.328Z"}| Header | Meaning |
|---|---|
X-Sabiwave-Event |
The event’s type, the same as type in the body. |
X-Sabiwave-Delivery |
This delivery’s id. A retry, or a delivery you send again from the log, keeps it. |
X-Sabiwave-Signature |
t=…,v1=…: the signature to check before you trust the body. |
User-Agent |
Sabiwave-Webhooks/1. |
The payload
Section titled “The payload”Every event has the same envelope:
| Field | Meaning |
|---|---|
id |
The event’s id: the same for every endpoint, and on every retry. Use it to spot a delivery you’ve had before. |
type |
What happened, such as order.created. |
createdAt |
When it happened, in UTC. |
livemode |
true for your business’s real events. A test endpoint’s ping says false. |
data.object |
The kind of record: order, product, inventory or customer. |
data.id |
The record’s id. |
data also carries a few fields about what happened, listed for each event below. For the full
record, read it from the API: GET /orders/{data.id} for an order, for example. Unlike the API’s
answers, most amounts in a payload are strings in minor units, such as totalMinor: "7450000" is
₦74,500.00. Each event below says which.
Answering
Section titled “Answering”Answer with any 2xx status within 10 seconds. Store or queue the event, answer, then do the
slow work: a longer wait counts as a failure, and Sabiwave tries again. What your server answers,
and the first 2 KB of its body, shows in the Delivery log. A 4xx other than 429 tells Sabiwave
your server refused the delivery, so it isn’t tried again: see
Retries and switch-off.
Events
Section titled “Events”| Event | Sent when | data.object |
|---|---|---|
order.created |
An order is made, from any channel: your website, the POS or the dashboard | order |
order.status_changed |
An order moves along, such as pending to confirmed |
order |
order.updated |
An order’s items are changed in Sabiwave | order |
order.cancelled |
An order is cancelled | order |
payment.recorded |
A payment is recorded on an order, one taken with it included | order |
product.created |
A product is added | product |
product.updated |
A product changes, its website visibility included | product |
product.deleted |
A product is deleted | product |
inventory.low_stock |
A store’s stock of a product falls to its reorder point | inventory |
inventory.out_of_stock |
A store’s stock of a product runs out | inventory |
customer.created |
A customer is added | customer |
customer.updated |
A customer’s details change | customer |
Each example below is a real delivery.
order.created
Section titled “order.created”orderNumber, channel (such as website), storeId, customerId (or null) and totalMinor.
{ "id": "01a2253b-3a88-740e-a06d-e38188446f21", "data": { "id": "01a2253b-3a4d-71bd-92b8-5d5d29a032d6", "object": "order", "channel": "website", "orderId": "01a2253b-3a4d-71bd-92b8-5d5d29a032d6", "storeId": "01a21564-0fa5-73bd-b689-d7a0a4173117", "customerId": "01a2253b-3917-7176-92c3-8eda1bfb6c34", "totalMinor": "7450000", "orderNumber": "PDSWT-20261129-0001" }, "type": "order.created", "livemode": true, "createdAt": "2026-11-29T02:56:08.328Z"}order.status_changed
Section titled “order.status_changed”orderNumber, and the move: from and to. When stock for the order arrives from another store,
it’s sent with fulfilment: "received" and the transferId instead.
{ "id": "01a2253c-da4f-7308-8587-5b0861d67fd8", "data": { "id": "01a2253c-d7e8-7c84-a9d6-3bce562d3aca", "to": "confirmed", "from": "pending", "object": "order", "orderId": "01a2253c-d7e8-7c84-a9d6-3bce562d3aca", "orderNumber": "PDSWT-20261129-0002" }, "type": "order.status_changed", "livemode": true, "createdAt": "2026-11-29T02:57:54.767Z"}order.updated
Section titled “order.updated”orderNumber, previousTotal and newTotal, and the change: action is add or remove with
the lines added or removed, or change with the line as it was before and is after. Each
line is { id, name, quantity, discount }. Every amount here is a string in minor units:
"discount": "50000" is ₦500.00 off the line.
{ "id": "01a22953-5bc4-7592-8a2b-69476a1fda04", "data": { "id": "01a22953-59eb-78fd-a77e-522f18952f27", "after": { "id": "01a22953-5a2f-71ae-828a-099ef496d8b2", "name": "Weekend Gift Hamper", "discount": "50000", "quantity": 1 }, "action": "change", "before": { "id": "01a22953-5a2f-71ae-828a-099ef496d8b2", "name": "Weekend Gift Hamper", "discount": "0", "quantity": 1 }, "object": "order", "orderId": "01a22953-59eb-78fd-a77e-522f18952f27", "newTotal": "1950000", "orderNumber": "PDSWT-20261129-0006", "previousTotal": "2000000" }, "type": "order.updated", "livemode": true, "createdAt": "2026-11-29T22:00:58.564Z"}order.cancelled
Section titled “order.cancelled”orderNumber, the reason, refundMinor (what was refunded, "0" for none) and refundPaid.
{ "id": "01a2253b-3cf6-7725-9db2-83adb352e61b", "data": { "id": "01a2253b-3a4d-71bd-92b8-5d5d29a032d6", "object": "order", "reason": "The customer cancelled on the website.", "orderId": "01a2253b-3a4d-71bd-92b8-5d5d29a032d6", "refundPaid": false, "orderNumber": "PDSWT-20261129-0001", "refundMinor": "0" }, "type": "order.cancelled", "livemode": true, "createdAt": "2026-11-29T02:56:08.950Z"}payment.recorded
Section titled “payment.recorded”orderNumber, paymentId, method and amountMinor. One is sent for every payment: those
recorded later in Sabiwave or at the POS, and those taken with the order itself, such as an order
your website placed as paid or a sale paid at the counter, which carry withOrder: true and follow
its order.created.
{ "id": "01a22953-5c23-749c-ab5c-d0429082b3ca", "data": { "id": "01a22953-5c02-7089-a037-fb8570cb5d53", "method": "card", "object": "order", "orderId": "01a22953-5c02-7089-a037-fb8570cb5d53", "paymentId": "01a22953-5c1f-77f5-b307-3d525cab29ae", "withOrder": true, "amountMinor": "2000000", "orderNumber": "PDSWT-20261129-0007" }, "type": "payment.recorded", "livemode": true, "createdAt": "2026-11-29T22:00:58.659Z"}product.created
Section titled “product.created”name and kind (simple, combo or service).
{ "id": "01a2253c-dd78-73cb-abf9-9b2956250dab", "data": { "id": "01a2253c-dd76-756d-b53d-bf5ba9e96e4e", "kind": "simple", "name": "Docs run product (delete me)", "object": "product", "productId": "01a2253c-dd76-756d-b53d-bf5ba9e96e4e" }, "type": "product.created", "livemode": true, "createdAt": "2026-11-29T02:57:55.576Z"}product.updated
Section titled “product.updated”changed: the names of what changed.
{ "id": "01a2254b-823e-772a-b9f1-7edbdfb97631", "data": { "id": "01a2160c-6b00-7627-af42-d534badeaea4", "object": "product", "changed": [ "isPubliclyVisible" ], "productId": "01a2160c-6b00-7627-af42-d534badeaea4" }, "type": "product.updated", "livemode": true, "createdAt": "2026-11-29T03:13:55.262Z"}product.deleted
Section titled “product.deleted”{ "id": "01a2253c-dd98-74ad-8dcf-100b07909106", "data": { "id": "01a2253c-dd76-756d-b53d-bf5ba9e96e4e", "object": "product", "productId": "01a2253c-dd76-756d-b53d-bf5ba9e96e4e" }, "type": "product.deleted", "livemode": true, "createdAt": "2026-11-29T02:57:55.608Z"}inventory.out_of_stock and inventory.low_stock
Section titled “inventory.out_of_stock and inventory.low_stock”data.id is the stock record: one product (or variant) in one store. With it, productId,
variantId (or null), storeId, quantity and reorderPoint (strings). Each is sent when the
stock crosses the line going down: low_stock as it reaches the reorder point (5 when none is set),
out_of_stock as it reaches zero.
{ "id": "01a2253b-3a72-7015-9cb6-7a9ecd64c9db", "data": { "id": "01a2160c-6b2f-76d8-add3-214c0bb15345", "object": "inventory", "storeId": "01a21564-0fa5-73bd-b689-d7a0a4173117", "quantity": "0", "productId": "01a2160c-6b00-7627-af42-d534badeaea4", "variantId": null, "reorderPoint": "5" }, "type": "inventory.out_of_stock", "livemode": true, "createdAt": "2026-11-29T02:56:08.306Z"}customer.created
Section titled “customer.created”name and acquisitionChannel: where they were first added, such as website.
{ "id": "01a2253b-391d-77fd-9916-1b9b0eccbb3b", "data": { "id": "01a2253b-3917-7176-92c3-8eda1bfb6c34", "name": "Funmi Adeyemi", "object": "customer", "customerId": "01a2253b-3917-7176-92c3-8eda1bfb6c34", "acquisitionChannel": "website" }, "type": "customer.created", "livemode": true, "createdAt": "2026-11-29T02:56:07.965Z"}customer.updated
Section titled “customer.updated”fields: the names of what changed.
{ "id": "01a2253c-dd61-75be-afa9-ce25e4ab6ae3", "data": { "id": "01a2253b-3917-7176-92c3-8eda1bfb6c34", "fields": [ "address" ], "object": "customer", "customerId": "01a2253b-3917-7176-92c3-8eda1bfb6c34" }, "type": "customer.updated", "livemode": true, "createdAt": "2026-11-29T02:57:55.553Z"}What Send a test ping sends, with livemode saying whether the endpoint is live.
{ "id": "01a22538-74f6-7493-b3a0-06ae1584d7c3", "data": { "message": "A test from Sabiwave: your endpoint is reachable." }, "type": "ping", "livemode": true, "createdAt": "2026-11-29T02:53:06.678Z"}