Webhook events
The 41 events a webhook can subscribe to, the scope each one needs, and what its payload holds.
The envelope
Every delivery's body is {event, merchant, created_at, data}: the event, the store id, the time in the Riyadh offset, and the payload of the event's kind in data.
{
"event": "order.created",
"merchant": 123,
"created_at": "2026-11-08T13:41:48+03:00",
"data": {
"id": 1,
"reference_id": 1001,
"status": "under_review",
"total": 150,
"...": "..."
}
}- Amounts in
dataare in riyals with two decimals, unlike the API's answers, which are in halalas. - Names are a single text: the Arabic name, or the English one when there is none. The examples below show them as
"...". - Without
customers.read, the shopper's contact data is taken out of every delivery, as in the API's answers. GET /webhooks/eventsanswers this list live, with each event's group, payload kind and scope.
Events by group
One event per webhook. Subscribing needs the read scope in the table; scopes are checked again at every send.
Orders
| Event | Scope to subscribe | Payload |
|---|---|---|
order.created | orders.read | order |
order.updated | orders.read | order |
order.status.updated | orders.read | order |
order.cancelled | orders.read | order |
order.refunded | orders.read | order |
order.deleted | orders.read | order |
Payment
| Event | Scope to subscribe | Payload |
|---|---|---|
order.payment.updated | orders.read | order |
Invoices
| Event | Scope to subscribe | Payload |
|---|---|---|
invoice.created | orders.read | order |
Shipping
| Event | Scope to subscribe | Payload |
|---|---|---|
order.shipment.created | orders.read | shipment |
order.shipment.cancelled | orders.read | shipment |
shipment.updated | shipments.read | shipment |
Shipping zones
| Event | Scope to subscribe | Payload |
|---|---|---|
shipping.zone.created | shipments.read | zone |
shipping.zone.updated | shipments.read | zone |
Products
| Event | Scope to subscribe | Payload |
|---|---|---|
product.created | products.read | product |
product.updated | products.read | product |
product.deleted | products.read | product |
product.price.updated | products.read | product |
product.status.updated | products.read | product |
product.quantity.low | inventory.read or products.read | product |
product.available | inventory.read or products.read | product |
Categories
| Event | Scope to subscribe | Payload |
|---|---|---|
category.created | products.read | category |
category.updated | products.read | category |
category.deleted | products.read | category |
Brands
| Event | Scope to subscribe | Payload |
|---|---|---|
brand.created | products.read | brand |
brand.updated | products.read | brand |
brand.deleted | products.read | brand |
Customers
| Event | Scope to subscribe | Payload |
|---|---|---|
customer.created | customers.read | customer |
customer.updated | customers.read | customer |
customer.login | customers.read | customer |
Coupons
| Event | Scope to subscribe | Payload |
|---|---|---|
coupon.applied | carts.read | cart |
Abandoned carts
Branches
| Event | Scope to subscribe | Payload |
|---|---|---|
store.branch.created | store.read | branch |
store.branch.updated | store.read | branch |
store.branch.setDefault | store.read | branch |
store.branch.activated | store.read | branch |
store.branch.deactivated | store.read | branch |
store.branch.deleted | store.read | branch |
Offers
| Event | Scope to subscribe | Payload |
|---|---|---|
specialoffer.created | marketing.read | offer |
specialoffer.updated | marketing.read | offer |
Reviews
| Event | Scope to subscribe | Payload |
|---|---|---|
review.added | reviews.read | review |
Payload examples
For each payload kind, the flat attributes a webhook rule can test, with example values. The keys named under each also come in the payload.
Order
Sent with order.created, order.updated, order.status.updated, order.cancelled, order.refunded, order.deleted, order.payment.updated, invoice.created. The attributes a rule can test; the payload also carries sub_status, customer, address, items, notes, tags, created_at, updated_at:
{
"id": 1042,
"reference_id": 1042,
"status": "under_review",
"payment_status": "pending",
"payment_method": "cod",
"total": 75,
"sub_total": 50,
"shipping_cost": 25,
"total_discount": 0,
"tax_amount": 9.78,
"cash_on_delivery": true,
"coupon_code": null,
"currency": "SAR",
"customer_id": 2187,
"city": "Riyadh",
"shipping_method": "...",
"source": "storefront",
"items_count": 1
}Product
Sent with product.created, product.updated, product.deleted, product.price.updated, product.status.updated, product.quantity.low, product.available. The attributes a rule can test; the payload also carries slug, url, variants, created_at, updated_at:
{
"id": 501,
"name": "...",
"sku": "TSHIRT-BLUE-M",
"type": "physical",
"status": "active",
"price": 25,
"sale_price": null,
"quantity": 37,
"is_available": true,
"unlimited_quantity": false,
"brand_id": null,
"weight": 250
}Customer
Sent with customer.created, customer.updated, customer.login. The attributes a rule can test; the payload also carries created_at:
{
"id": 2187,
"name": "Sara Ahmed",
"mobile": "+966501234567",
"email": "sara@example.com",
"is_blocked": false
}Category
Sent with category.created, category.updated, category.deleted. The attributes a rule can test; the payload also carries slug:
{
"id": 12,
"name": "...",
"parent_id": null,
"status": "active",
"sort_order": 1
}Brand
Sent with brand.created, brand.updated, brand.deleted. The attributes a rule can test:
{
"id": 3,
"name": "..."
}Branch
Sent with store.branch.created, store.branch.updated, store.branch.setDefault, store.branch.activated, store.branch.deactivated, store.branch.deleted. The attributes a rule can test; the payload also carries phone:
{
"id": 1,
"name": "...",
"type": "warehouse",
"city": "Riyadh",
"is_default": true,
"status": "active",
"pickup": false
}Offer
Sent with specialoffer.created, specialoffer.updated. The attributes a rule can test; the payload also carries starts_at, expiry_date:
{
"id": 4,
"name": "...",
"offer_type": "product_discount",
"status": "active",
"message": "..."
}Review
Sent with review.added. The attributes a rule can test; the payload also carries created_at:
{
"id": 88,
"type": "product",
"rating": 5,
"content": "Great fit and fast delivery.",
"status": "approved",
"product_id": 501,
"order_id": 1042,
"customer_id": 2187
}Zone
Sent with shipping.zone.created, shipping.zone.updated. The attributes a rule can test; the payload also carries regions, cities:
{
"id": 2,
"name": "..."
}Shipment
Sent with order.shipment.created, order.shipment.cancelled, shipment.updated. The attributes a rule can test; the payload also carries tracking_url, created_at:
{
"id": 640,
"order_id": 1042,
"carrier": "manual",
"status": "in_transit",
"tracking_number": "TRK123456789",
"cost": 0
}Cart
Sent with coupon.applied, abandoned.cart, abandoned.cart.purchased. The attributes a rule can test; the payload also carries items, created_at, updated_at:
{
"id": 3307,
"total": 50,
"subtotal": 50,
"currency": "SAR",
"coupon_code": null,
"customer_id": 2187,
"customer_name": "Sara Ahmed",
"customer_mobile": "+966501234567",
"items_count": 1,
"order_id": null
}