Zid Docs
Merchant APIApp APIThemes
Merchant APIApp APIThemes
Help Center
Slack
  1. Store Events
  • 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. Store Events

Order

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.
Email Handling in Webhook Payloads for Shipping Partners
Some webhook payloads may include placeholder email addresses that are not deliverable. These addresses are operational placeholders and will not reach customers.
Order
id
integer 
optional
The unique identifier for the order.
Example:
25304285
code
string 
optional
The code associated with the order.
Example:
8OVNEhyqcf
store_id
integer 
optional
The unique identifier for the store where the order was placed.
Example:
251073
order_url
string 
optional
The URL link to the order's invoice.
Example:
https://zid.store/osama/o/6IJWXOYLuR/inv
store_name
string 
optional
The name of the store.
Example:
Osama's Store
shipping_method_code
string 
optional
The code representing the shipping method used for the order.
Example:
custom
store_url
string 
optional
The URL link to the store.
Example:
https://zid.store/osama/
order_status
object (OrderStatus) 
optional
name
string 
required
The human-readable status name of the order. This string is displayed on the order's page and the Merchant dashboard.
Example:
Delivery in progress
code
enum<string> 
required
The status code of the order. Each code represents a specific state of the order:
1.
new: The order has been recently created.
2.
failed: The order transaction failed.
3.
refunded: The order has been refunded (typically by the merchant).
4.
reversed: The order payment has been reversed (typically by the payment provider or the bank).
5.
chargeback: A chargeback has been initiated for the order.
6.
expired: The order has expired due to non-payment.
7.
processed: The order has been processed.
8.
voided: The order has been voided.
9.
ready: The order is ready for shipment.
10.
reverse_in_progress: The order is in the process of being reversed.
11.
preparing: The order is being prepared for shipment.
12.
indelivery: The order is currently in delivery.
13.
delivered: The order has been delivered.
14.
canceled: The order has been canceled.
15.
denied: The order has been denied.
16.
canceledReversal: The reversal of the order has been canceled.
Allowed values:
newfailedrefundedreversedchargebackexpiredprocessedvoidedreadyprocessingReversepreparinginDeliverydeliveredcanceleddeniedcanceledReversal
Example:
delivered
currency_code
string 
optional
The code representing the currency used for the order.
Example:
KWD
is_marketplace_order
boolean 
optional
The is_marketplace_order property indicates whether the order originates from a marketplace. When set to true, it signifies that the order was placed through a third-party marketplace platform rather than directly through the store's website.
Default:
false
customer
object (OrderCustomer) 
optional
id
string 
required
The unique identifier of the customer who placed the order.
Example:
2083543
name
string 
optional
The name of the customer. (Masked if is_marketplace_order is true)
Example:
Osama
email
string 
optional
The email address of the customer. (Masked if is_marketplace_order is true)
Example:
example.user@email.com
mobile
string 
optional
The phone number of the customer. (Masked if is_marketplace_order is true)
Example:
+966501234567
note
string 
optional
Any note for the customer.
Example:
" "
verified
string 
required
Indicates if the customer’s account is verified. (1 for verified, 0 otherwise)
Example:
1
type
string 
required
Specifies the type of customer, such as "individual" or "business."
Example:
individual
shipping
object (OrderShipping) 
optional
method
object (OrderShippingMethod) 
optional
address
object (OrderShippingAddress) 
optional
products
object 
optional
is_external_product
boolean 
optional
Default:
true
id
null 
optional
Set to null if is_external_product is true.
parent_id
null 
optional
Set to null if is_external_product is true.
parent_name
string 
optional
Example:
سماعات بلوتوث
sku
string 
required
A unique stock-keeping unit identifier for the product.
Example:
Z.3.1726750799757576
barcode
null 
required
The barcode number associated with the product.
custom_fields
array[string]
required
An array of custom attributes or metadata associated with the product.
quantity
string 
optional
Example:
2
weight
string 
optional
Example:
150
net_price_with_additions
string 
optional
Example:
50
price_with_additions
string 
optional
Example:
55
net_sale_price
null 
required
The net sale price of the product after discounts.
gross_sale_price
null 
required
The gross sale price of the product before discounts.
price_before
null 
required
The product price before any discounts or adjustments.
total_before
null 
required
The total value for the product line before adjustments.
gross_additions_price
null 
required
The gross price of additional items associated with the product.
tax_percentage
string 
required
The percentage of tax applied to the product.
Example:
0.12
tax_amount_string_per_item
string 
required
The tax amount per item as a formatted string.
Example:
0.000 KWD
images
array[string]
required
An array of image URLs for the product with various sizes (e.g., thumbnail, small, medium, large).
has_different_consignee
boolean 
optional
Indicates if the consignee is different from the customer.
Example:
false
is_guest_customer
boolean 
optional
Indicates if the order was placed by a guest customer.
Example:
false
is_gift_order
boolean 
optional
Indicates if the order is a gift.
Example:
false
gift_card_details
object 
optional
Details of any gift card associated with the order.
card_design
string 
optional
The design of the gift card.
Example:
Birthday Theme
gift_message
string 
optional
A message associated with the gift card.
Example:
Happy Birthday, Ahmed! Wishing you all the best.
media_link
string 
optional
A link to any media associated with the gift card, such as an image or video.
Example:
https://example.com/gift_card_image.jpg
receiver_name
string 
optional
The name of the person receiving the gift card.
Example:
Ahmed Al-Salem
sender_name
string 
optional
The name of the person sending the gift card.
Example:
Fatima Al-Rashed
is_quick_checkout_order
boolean 
required
ndicates whether the order was placed using a quick checkout feature.
Default:
false
order_total
string 
optional
The total amount of the order.
Example:
6.00000000000000
order_total_string
string 
optional
The total amount of the order in a human-readable format.
Example:
6.00 KWD
has_different_transaction_currency
boolean 
optional
Indicates if the transaction currency is different from the order currency.
Example:
true
transaction_reference
string 
optional
The reference number for the transaction.
Example:
TRN-123456
transaction_amount
number 
optional
The amount of the transaction.
Example:
60
transaction_amount_string
string 
optional
The amount of the transaction in a human-readable format.
Example:
60.00 SAR
issue_date
string 
optional
The date and time when the order was issued.
Example:
04-07-2023 | 12:12 م
payment_status
enum<string> 
optional
The payment status of the order.
1.
paid: Payment has successfully completed.
2.
pending: Payment is still pending or hasn't been made yet.
3.
refunded: Payment has been refunded to the Customer.
4.
voided: Payment has been voided or canceled.
Allowed values:
paidpendingrefundedvoided
Example:
paid
is_potential_fraud
boolean 
required
Flags the order as potentially fraudulent.
Default:
false
payment_status_change
object 
optional
Indicates the most recent change in the payment status of the order,
by specifiying the previous (old) and the updated (new) payment statuses.
This field is particularly relevant for webhook events like order.payment_status.update.
The new status will be paid for successful payments.
The unpaid status represents any payment status other than paid,
including pending, refunded, and voided.
This categorization aligns with the merchant's view of payment statuses
on the Merchant Dashboard.
old
enum<string> 
optional
The previous payment status of the order (e.g., 'unpaid').
Allowed values:
paidunpaid
new
enum<string> 
optional
The updated payment status of the order (e.g., 'paid').
Allowed values:
paidunpaid
source
enum<string> 
optional
The human-readable name indicating the source where the order was created. This field is localized and provides a description of the sale channel, e.g., "Store" or "المتجر الإلكتروني".
Allowed values:
MazeedMazeed ServicesMerchant AdminOrder ApiStoreStore AppZidPOSOthers
Example:
Store
source_code
enum<string> 
optional
The code indicating the source or channel of the order. This can be one of several predefined values:
pos: Point of Sale (typically used in physical stores).
catalog: Order was made through a product catalog or online storefront.
md. Order was made from the Merchant Dashboard.
mazeed_marketplace: Order was made through Mazeed.
mazeed: Order was made at the Merchant's Store, but the Customer was redirected from Mazeed to the Merchant's Store.
mobile_app: Order was made through the store's mobile application.
api: Order was made through an API call, typically from third-party integrations or apps.
Allowed values:
poscatalogmdmazeedmazeed_marketplacemobile_appapi
Example:
catalog
is_reseller_transaction
boolean 
optional
Indicates if the order was made by a reseller intending to sell the products to end consumers, rather than for personal use.
Example:
false
created_at
string 
optional
The date and time when the order was created.
Example:
2023-07-04 09:12:36
updated_at
string 
optional
The date and time when the order was last updated.
Example:
2023-07-04 09:14:28
is_on_demand
boolean 
required
Specifies if the order is part of an on-demand request.
Default:
false
tags
array[string]
optional
Any tags associated with the order.
requires_shipping
boolean 
optional
Indicates if the order requires shipping.
Example:
true
should_merchant_set_shipping_method
boolean 
required
Determines whether the merchant must set the shipping method manually.
Default:
false
payment
object (OrderPayment) 
optional
method
object (OrderPaymentMethod) 
optional
invoice
array[object (InvoiceDetail) {4}] 
optional
A list of invoice details related to the payment.
cod_confirmed
boolean 
optional
Indicates if the Cash On Delivery (COD) payment is confirmed.
Example:
false
reverse_order_label_request
string  | null 
optional
Any request for a reverse order label.
Example:
null
customer_note
string  | null 
optional
Any note provided by the customer regarding the order.
Example:
أحتاج تغليف هدية
gift_message
string  | null 
optional
Any gift message associated with the order.
Example:
كل عام وأنتم بخير
payment_link
string  | null 
optional
The link for payment, if applicable.
Example:
https://payment.example.sa/order/123456
weight
number 
optional
The weight of the order in grams.
Example:
500
weight_cost_details
object 
optional
Details about the cost of the weight of the order.
weight_total
integer 
optional
The total weight of the order in grams.
Example:
150
weight_total_string
string 
optional
The total weight of the order in a human-readable format.
Example:
150 gm
cost
string 
optional
The cost associated with the weight of the order.
Example:
1.000 KWD
cost_string
string 
optional
The cost associated with the weight of the order in a human-readable format.
Example:
1 KWD
currency
object (OrderCurrency) 
optional
order_currency
object 
optional
order_store_currency
object 
optional
options
array[string]
required
An array of additional options or configurations applied to the product. (e.g., color, size)
coupon
string 
optional
Any coupon code applied to the order.
Example:
SUMMER20
products_count
integer 
optional
The total number of products in the order.
Example:
1
products_sum_total_string
string 
optional
The total sum of all products in the order in a human-readable format.
Example:
30.00 SAR
language
string 
optional
The language used to diplay the order's page.
Example:
ar
histories
array[object (OrderHistory) {8}] 
optional
A list of historical records associated with the order.
order_status_id
enum<integer> 
optional
The unique identifier for the order status. Each ID corresponds to a specific status code of the order:
1.
1: Corresponds to new (The order has been recently created).
2.
2: Corresponds to preparing (The order is being prepared for shipment).
3.
3: Corresponds to inDelivery.
4.
5: Corresponds to delivered.
5.
7: Corresponds to canceled.
6.
12: Corresponds to reversed (The order payment has been reversed).
7.
17: Corresponds to ready (The order is ready for shipment).
8.
18: Corresponds to processingReverse (The order is in the process of being reversed).
For a detailed description of each status code, please refer to the OrderStatus schema.
Allowed values:
12357121718
order_status_name
string 
optional
The name of the order status.
Example:
جديد
changed_by_id
integer 
optional
The unique identifier of the entity/person who changed the order status.
Example:
37
changed_by_type
string 
optional
The type of entity/person who changed the order status (e.g., customer, manager).
Example:
عميل
changed_by_details
object 
optional
Details about the entity/person who changed the order status.
comment
string 
optional
A comment or note about the order history event.
Example:
تم إنشاء الطلب .
created_at
string <date-time>
optional
The timestamp when the order history event was created.
Example:
2023-07-04 09:12:36
humanized_created_at
string 
optional
A human-readable representation of the time elapsed since the order history event was created.
Example:
منذ شهر
is_reactivated
boolean 
optional
Indicates if the order was previously canceled or closed and has since been reopened or reactivated.
Example:
false
return_policy
string 
optional
A human-readable string describing the return policy of the order.
Example:
Returns are accepted within 14 days of receipt.
packages_count
integer 
optional
The number of packages in the order.
Example:
1
inventory_address
string 
optional
The address of the inventory for the order.
Example:
123 King Fahd Road, Al Olaya, Riyadh 12212, Saudi Arabia
expected_shipping_method_type
null 
required
Specifies the expected type of shipping method for the order.
reseller_meta
string  | null 
optional
Metadata associated with the reseller.
Example:
null
zidship_ticket_number
null 
required
A unique reference number for tracking orders via Zidship.
edits_count
string 
required
The number of edits made to the order after its creation.
Example:
0
delivered_at
null 
required
Timestamp indicating when the order was delivered.
invoice_link
string 
required
URL to the downloadable PDF invoice for the order.
Example:
https://zid-testing-907587157081.s3-accelerate.amazonaws.com/pdf/order_44834593.pdf
previous_order
integer 
optional
The ID of the previous order, if any.
Example:
23874634
next_order
integer  | null 
optional
The ID of the next order, if any.
Example:
null
invoice_settings
object 
optional
is_order_notifications_enabled
boolean 
optional
Indicates if order notifications are enabled.
Example:
true
comment
string 
optional
Any comments or notes about the order.
Example:
This is a VIP customer. Handle with extra care.
Modified at 2025-02-13 13:13:12
Previous
Delete a Webhook by Subscriber
Next
Product
Built with