Sifr Wahid Developers

Guides

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.

JSON
{
  "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 data are 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/events answers 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

EventScope to subscribePayload
order.createdorders.readorder
order.updatedorders.readorder
order.status.updatedorders.readorder
order.cancelledorders.readorder
order.refundedorders.readorder
order.deletedorders.readorder

Payment

EventScope to subscribePayload
order.payment.updatedorders.readorder

Invoices

EventScope to subscribePayload
invoice.createdorders.readorder

Shipping

EventScope to subscribePayload
order.shipment.createdorders.readshipment
order.shipment.cancelledorders.readshipment
shipment.updatedshipments.readshipment

Shipping zones

EventScope to subscribePayload
shipping.zone.createdshipments.readzone
shipping.zone.updatedshipments.readzone

Products

EventScope to subscribePayload
product.createdproducts.readproduct
product.updatedproducts.readproduct
product.deletedproducts.readproduct
product.price.updatedproducts.readproduct
product.status.updatedproducts.readproduct
product.quantity.lowinventory.read or products.readproduct
product.availableinventory.read or products.readproduct

Categories

EventScope to subscribePayload
category.createdproducts.readcategory
category.updatedproducts.readcategory
category.deletedproducts.readcategory

Brands

EventScope to subscribePayload
brand.createdproducts.readbrand
brand.updatedproducts.readbrand
brand.deletedproducts.readbrand

Customers

EventScope to subscribePayload
customer.createdcustomers.readcustomer
customer.updatedcustomers.readcustomer
customer.logincustomers.readcustomer

Coupons

EventScope to subscribePayload
coupon.appliedcarts.readcart

Abandoned carts

EventScope to subscribePayload
abandoned.cartcarts.readcart
abandoned.cart.purchasedcarts.readcart

Branches

EventScope to subscribePayload
store.branch.createdstore.readbranch
store.branch.updatedstore.readbranch
store.branch.setDefaultstore.readbranch
store.branch.activatedstore.readbranch
store.branch.deactivatedstore.readbranch
store.branch.deletedstore.readbranch

Offers

EventScope to subscribePayload
specialoffer.createdmarketing.readoffer
specialoffer.updatedmarketing.readoffer

Reviews

EventScope to subscribePayload
review.addedreviews.readreview

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:

JSON
{
  "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:

JSON
{
  "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:

JSON
{
  "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:

JSON
{
  "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:

JSON
{
  "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:

JSON
{
  "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:

JSON
{
  "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:

JSON
{
  "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:

JSON
{
  "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:

JSON
{
  "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:

JSON
{
  "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
}