Zid Docs
Merchant APIApp APIThemes
Merchant APIApp APIThemes
Help Center
Slack
  1. Merchant API
  • Start Here 🚀
  • Overview to Zid Apps
  • Authorization
  • Responses
  • Webhooks
  • Rate Limiting
  • APIs
    • Orders
      • Update Order by ID
      • Get Order Credit Notes
      • Get Order by ID
      • List of Orders
    • Reverse Orders
      • Reverse Order Reasons
      • Create Reverse Orders
      • Create Reverse Orders Waybill
      • Add Reverse Order Reasons
    • Carts
      • Get Abandoned Cart Details
      • List Abandoned Carts
    • Products
      • Managing Products
        • Get a Product by ID
        • Retrieve a list of products
        • Create a new product
        • Update an existing product.
        • Bulk update of products using their IDs or SKUs
        • Delete a product.
        • Product Setting
      • Digital Vouchers
        • Product Vouchers
        • Order Voucher
        • Add Product Voucher
        • Import Vouchers
        • Export Vouchers
        • Update Product Voucher
        • Remove Product Voucher
      • Product Categories
        • Get Single Category Details
        • Get all categories
        • Create Store Category
        • Update a Store Category
        • Add a product to a certain category
        • Publish/Unpublish a Category
        • Detach Category from All Products
        • Remove Category from Product
      • Product Badge
        • Product Badge
      • Product Attributes
        • Get Product Attributes
        • Get Product Attributes
        • Retrieve a product attribute
        • Add a New Product Attribute
        • Add a New Product Attribute
        • Update a product attribute
        • Delete a product attribute
      • Product Attribute Presets
        • Get attribute presets
        • Create Attribute Preset
        • Update Attribute Preset
        • Delete an attribute preset
      • Product Customizations
        • Add Product Variants
        • Insert Custom Options to a Product
        • Insert Custom User-Input Fields to a Product
      • Product Manual Sorting
        • Set Custom Product Order
        • Reset the manual sorting of all products
      • Product Images
        • Get List of images of a product.
        • Add an image to a product
        • Update a product Image Order
        • Delete a product image
      • Product Notifications
        • Availability Notification Stats
        • Availability Notifications Settings
        • List Availability Notifications
        • Add Availability Notification
        • Save Availability Notifications Settings
        • Manually Send Availability Notification Email
        • Export Availability Notifications
      • Product Import
        • Email All Products to Store Owner
        • Import Products via CSV or xlsx File
      • Product Stock (Multi-Inventory)
        • Get Product Stock by ID
        • List Product Stocks
        • Add Product Stock
        • Update Single Product Stock
        • Bulk Update Product Stocks
      • Product Questions & Answers
        • Get Question
        • Get Answer
        • Get All Questions
        • List Question Answers
        • Create Question
        • Create Answer
        • Update Question
        • Update Answer
        • Delete Question
        • Delete Answer
      • Product Reviews
        • List Reviews
        • New Reviews Total
      • Digital Products
        • Create Downloadable Product
        • Generate an Upload URL
        • Upload File to S3
        • Create Product Downloadables
        • Get Product Downloadables
        • Delete Product Downloadables
        • Get Store Downloadables
        • Create Store Downloadables
        • Delete Store Downloadables
    • Inventories
      • Get Store Location by ID
      • List Store Locations
      • Add a New Location
      • Update a Location by ID
      • Update Products Stock by Location ID
    • Shipping
      • List Store Delivery Options
      • Add Shipping Option
    • Marketing
      • Gift Cards
        • Get Store Settings
        • Add gift card to the cart
        • Update Store Settings
        • Upload gift card designs
        • Remove gift card from the cart
      • Coupons
        • Create a New Coupon
        • List Coupons
        • Get Coupon Details
        • Update Coupon
        • Delete Coupon
      • Bundle Offers
        • Retrieve all Bundle Offers
      • Loyalty Program
        • Loyalty Program Points per Order
        • Store Loyalty Status
        • Info Page
        • Loyalty Program Activation
        • Loyalty Status
        • Set Points Expiration
        • Cashback Rule Method Update
        • Cashback Rule Method Update Status
        • Add Points Redemption Method
        • Update Points Redemption Method
        • Delete Points Redemption Method
        • Toggle Redemption Method Status
        • Show Loyalty Points Info for Specific Customer
        • Customer Profile
        • List Data
        • Customer Points History
        • Info Page - Managers
        • Update Info Page
        • Adjust Customer Points
    • Customers
      • List of Customers
      • Get Customer by ID
    • Store Settings
      • 📄 User Roles and Permissions
      • Get Manager's Profile
      • Get VAT Settings
      • List of Payment Method
    • Countries and Cities
      • Retrieve Store Operating Countries
      • Retrieve Cities by Country ID
      • Countries List
    • Webhook
      • List of Webhooks
      • Create a Webhook
      • Delete a Webhook by OriginalId
      • Delete a Webhook by Subscriber
  • Store Events
    • Order
    • Product
    • Abandoned Cart
    • Customer
    • Product Category
  1. Merchant API

Webhooks

Overview#

Webhooks allow you to receive real-time data updates for various events. These events can range from order creation to customer login activities. This page serves as a comprehensive guide to understanding the supported webhook events, their payloads, and any conditions that can be applied to them.
Currency Handling for Orders
When the store currency, order currency, and the currency of the shipping address (for cash on delivery) are different, partners must convert the order total to the appropriate currency. The order details already provide both the currency type and the conversion rate, making it easy to apply the conversion when necessary. This ensures that the correct amount is processed smoothly, even when multiple currencies are involved.

How to Subscribe#

image.png
To subscribe to these webhook events, follow these steps:
1.
Choose the event(s) you would like to subscribe to from the list of Supported Webhook Events below.
2.
(Optional) If the event supports conditions, check out the Event Conditions section to learn how to populate the conditions field.
3.
Use the Merchant API to make a request to the Create a Webhook endpoint (Link to API documentation).
In case you require an event or a condition that is not yet supported, please send your suggestion to the Zid App Market Support.

Merchant Events#

The tables below provide a list of merchant events, including their names, descriptions, and hyperlinks to the data structure (schema) of each event's payload. Event names that support conditions are linked to the section detailing their supported conditions.

Order Events#

Event NameDescriptionPayload Schema
order.create (Supports conditions)Triggered when a new order is created.Order schema
order.status.update (Supports conditions)Triggered when an order's status is updated.Order schema
order.payment_status.updateTriggered when an order's payment status changes to paid or unpaid. Note that unpaid includes pending, refunded, and voided statuses.Order schema

Product Events#

Event NameDescriptionPayload Schema
product.createTriggered when a new product is created.Product schema
product.updateTriggered when a product's details are updated.Product schema
product.publishTriggered when a product is published.Product schema
product.deleteTriggered when a product is deleted.Product deleted schema

Abandoned Cart Events#

Event NameDescriptionPayload Schema
abandoned_cart.createdTriggered when a shopping cart is abandoned.Abandoned Cart schema
abandoned_cart.completedTriggered when an abandoned cart is completed.Abandoned Cart schema

Customer Events#

Event NameDescriptionPayload Schema
customer.createTriggered when a new customer account is created.Customer schema
customer.updateTriggered when a customer's details are updated.Customer schema
customer.merchant.updateTriggered when a merchant's details related to a customer are updated.Payload
customer.loginTriggered when a customer logs in.Customer schema

Product Category Events#

Event NameDescriptionPayload Schema
category.createTriggered when a new category is created.Category schema
category.updateTriggered when a category's details are updated.Category schema
category.deleteTriggered when a category is deleted.Category schema

Event Conditions#

The conditions field in the request body allows you to specify additional criteria for your webhook subscription. By setting conditions, you can filter the events that trigger the webhook. For instance, you may want to receive notifications only when an order's status changes to 'delivered' or if the payment method is 'Cash On Delivery'.
Note: Conditions are currently supported only for the order.create and order.status.update events.

Supported Conditions#

Condition KeyData TypeDescriptionPossible Values
delivery_option_idIntegerThe delivery option ID in Zid.Any valid delivery option ID
statusStringFilters the event based on the status of the order.new, preparing, ready, inDelivery, delivered, cancelled
payment_methodStringFilters the event based on the payment method used.Cash On Delivery, Credit Card, Bank Transfer

Example Usage#

To set conditions, include the conditions field in the request body when creating or updating a webhook subscription. Here's an example:
{
  "conditions": {
    "delivery_option_id": "55",
    "payment_method": "Cash On Delivery"
  }
}
Modified at 2025-03-18 08:12:18
Previous
Responses
Next
Rate Limiting
Built with