Webhooks allow you to receive real-time data updates about various events. For certain events, you can specify conditions under which the webhook should trigger, allowing for more targeted data retrieval.
For more details on available events and their conditions, please refer to the Supported Webhook Events page.
🔑Scopes
webhooks.read_write - Webhooks Read & Write
Request
Header Params
Authorization
stringÂ
required
The Authorization token is a unique key given to the third-party application (Partner) by Zid. It is used to authenticate the API requests made by the Partner application. The token verifies the partner's identity and ensures they have permission to access Zid's API but does not provide any specific user or store information. It should be included in the header of API requests when the partner application needs to access Zid's API.
This token is used to authenticate and access information related to the store. It is obtained through an OAuth mechanism and is required to perform operations on the store's data. The X-Manager-Token should be included in the header of API requests that require store-related information.
Preferred language for the response. Defaults to en if not specified.
Allowed values:
enar
Example:
en
Body Params application/json
event
stringÂ
required
The event that the webhook will subscribe to. It represents the type of event that will trigger the webhook.
Example:
order.status.update
target_url
stringÂ
required
The URL to which Zid will send a payload when the subscribed event triggers. This is the endpoint that will receive the webhook data.
Example:
http://zid.sa
original_id
integerÂ
required
An optional user-defined identifier for reference purposes. The original ID allows the user (Partner) to associate their own identifier with the webhook subscription.
Example:
1
subscriber
stringÂ
required
The name or identifier of the subscriber. It indicates the source or owner of the webhook subscription.
Example:
My App
conditions
object  | nullÂ
optional
Additional conditions that can be specified for the webhook subscription. This field allows filtering the webhook events based on specific criteria. For example, you may want to be notified only when an order's status is 'delivered' or if the payment method is 'Cash On Delivery'.Supported Events: order.create and order.status.update
Key
Type
Description
delivery_option_id
integer
The delivery option ID in Zid.
status
string
One of these statuses: [new, preparing, ready, inDelivery, delivered, cancelled].
payment_method
string
One of these methods: [Cash On Delivery, Credit Card, Bank Transfer].
status
enum<string>Â
optional
The order status. Optional.
Allowed values:
newpreparingreadyinDeliverydeliveredcancelled
Example:
new
delivery_option_id
integerÂ
optional
The delivery option ID in Zid. Optional.
Example:
55
payment_method
enum<string>Â
optional
The payment method. Optional.
Allowed values:
Cash On DeliveryCredit CardBank Transfer
Example:
Cash On Delivery
Example
{"event":"order.status.update","target_url":"http://zid.sa","original_id":1,"subscriber":"My App","conditions":{"status":"new","delivery_option_id":55,"payment_method":"Cash On Delivery"}}
The status of the webhook creation request. Possible statuses codes are ready, pending, inactive, and error.
id
stringÂ
optional
The UUID assigned to the webhook subscription by Zid.
Example:
3f6c6af7-6b9c-4cdd-8f10-7b309cfa32d1
event
stringÂ
optional
The event that the webhook is subscribed to.
Example:
order.status.update
target_url
stringÂ
optional
The URL to which Zid will send a payload when the subscribed event triggers.
Example:
http://zidstoreapp.com/webhook-endpoint
store_id
stringÂ
optional
The UUID of the store associated with the webhook.
Example:
f47ac10b-58cc-4372-a567-0e02b2c3d479
conditions
object  | nullÂ
optional
The conditions under which the webhook will be triggered. These conditions were specified during the webhook creation and allow the webhook to be triggered only when certain criteria are met.Supported Events: order.create and order.status.update
Key
Type
Description
delivery_option_id
integer
The delivery option ID in Zid.
status
string
One of these statuses: [new, preparing, ready, inDelivery, delivered, cancelled].
payment_method
string
One of these methods: [Cash On Delivery, Credit Card, Bank Transfer].
status
array[string]
optional
Example:
["new","ready","inDelivery","delivered"]
payment_method
array[string]
optional
Example:
["Cash On Delivery","Credit Card"]
original_id
string  | nullÂ
optional
An optional user-defined identifier for reference purposes.
Example:
OrderUpdate123
subscriber
stringÂ
optional
The name or identifier of the subscriber or the source of the webhook.
Example:
InventoryManagerApp
active
booleanÂ
optional
Indicates whether the webhook is active or not.
Example:
true
message
object (ResponseMessage)Â
optional
A message indicating the result of the webhook creation.
type
stringÂ
optional
The type of the message.
Example:
object
code
stringÂ
optional
The code associated with the message.
Example:
200
name
stringÂ
optional
The name of the message.
Example:
Success
description
stringÂ
optional
A detailed description of the message.
Example:
Order details retrieved successfully.
Example
{"status":{},"id":"3f6c6af7-6b9c-4cdd-8f10-7b309cfa32d1","event":"order.status.update","target_url":"http://zidstoreapp.com/webhook-endpoint","store_id":"f47ac10b-58cc-4372-a567-0e02b2c3d479","conditions":{"status":["new","ready","inDelivery","delivered"],"payment_method":["Cash On Delivery","Credit Card"]},"original_id":"OrderUpdate123","subscriber":"InventoryManagerApp","active":true,"message":{"type":"object","code":"200","name":"Success","description":"Order details retrieved successfully."}}