Currency Handling for OrdersWhen 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.
The unique identifier for the order.
The code associated with the order.
The unique identifier for the store where the order was placed.
The URL link to the order's invoice.
Example:https://zid.store/osama/o/6IJWXOYLuR/inv
shipping_method_code
string
optionalThe code representing the shipping method used for the order.
The URL link to the store.
Example:https://zid.store/osama/
order_status
object (OrderStatus)
optionalThe human-readable status name of the order. This string is displayed on the order's page and the Merchant dashboard.
Example:Delivery in progress
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.
cancelled
: The order has been cancelled.
15.
denied
: The order has been denied.
16.
canceledReversal
: The reversal of the order has been canceled.
Allowed values:newfailedrefundedreversedchargebackexpiredprocessedvoidedreadyprocessingReversepreparinginDeliverydeliveredcancelleddeniedcanceledReversal
The code representing the currency used for the order.
is_marketplace_order
boolean
optionalThe 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.
customer
object (OrderCustomer)
optionalThe unique identifier of the customer who placed the order.
The name of the customer. (Masked if is_marketplace_order is true)
The email address of the customer. (Masked if is_marketplace_order is true)
Example:example.user@email.com
The phone number of the customer. (Masked if is_marketplace_order is true)
Any note for the customer.
Indicates if the customer’s account is verified. (1 for verified, 0 otherwise)
Specifies the type of customer, such as "individual" or "business."
shipping
object (OrderShipping)
optionalmethod
object (OrderShippingMethod)
optionaladdress
object (OrderShippingAddress)
optionalis_external_product
boolean
optionalSet to null if is_external_product is true.
Set to null if is_external_product is true.
A unique stock-keeping unit identifier for the product.
Example:Z.3.1726750799757576
The barcode number associated with the product.
custom_fields
array[string]
requiredAn array of custom attributes or metadata associated with the product.
net_price_with_additions
string
optionalprice_with_additions
string
optionalThe net sale price of the product after discounts.
The gross sale price of the product before discounts.
The product price before any discounts or adjustments.
The total value for the product line before adjustments.
gross_additions_price
null
requiredThe gross price of additional items associated with the product.
The percentage of tax applied to the product.
tax_amount_string_per_item
string
requiredThe tax amount per item as a formatted string.
An array of image URLs for the product with various sizes (e.g., thumbnail, small, medium, large).
has_different_consignee
boolean
optionalIndicates if the consignee is different from the customer.
Indicates if the order was placed by a guest customer.
Indicates if the order is a gift.
Details of any gift card associated with the order.
The design of the gift card.
A message associated with the gift card.
Example:Happy Birthday, Ahmed! Wishing you all the best.
A link to any media associated with the gift card, such as an image or video.
Example:https://example.com/gift_card_image.jpg
The name of the person receiving the gift card.
The name of the person sending the gift card.
is_quick_checkout_order
boolean
requiredndicates whether the order was placed using a quick checkout feature.
The total amount of the order.
The total amount of the order in a human-readable format.
has_different_transaction_currency
boolean
optionalIndicates if the transaction currency is different from the order currency.
transaction_reference
string
optionalThe reference number for the transaction.
The amount of the transaction.
transaction_amount_string
string
optionalThe amount of the transaction in a human-readable format.
The date and time when the order was issued.
Example:04-07-2023 | 12:12 م
payment_status
enum<string>
optionalThe 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
is_potential_fraud
boolean
requiredFlags the order as potentially fraudulent.
payment_status_change
object
optionalIndicates 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. The previous payment status of the order (e.g., 'unpaid').
Allowed values:paidunpaid
The updated payment status of the order (e.g., 'paid').
Allowed values:paidunpaid
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
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
is_reseller_transaction
boolean
optionalIndicates if the order was made by a reseller intending to sell the products to end consumers, rather than for personal use.
The date and time when the order was created.
Example:2023-07-04 09:12:36
The date and time when the order was last updated.
Example:2023-07-04 09:14:28
Specifies if the order is part of an on-demand request.
Any tags associated with the order.
Indicates if the order requires shipping.
should_merchant_set_shipping_method
boolean
requiredDetermines whether the merchant must set the shipping method manually.
payment
object (OrderPayment)
optionalmethod
object (OrderPaymentMethod)
optionalinvoice
array[object (InvoiceDetail) {4}]
optionalA list of invoice details related to the payment.
Indicates if the Cash On Delivery (COD) payment is confirmed.
reverse_order_label_request
string | null
optionalAny request for a reverse order label.
customer_note
string | null
optionalAny note provided by the customer regarding the order.
gift_message
string | null
optionalAny gift message associated with the order.
Example:كل عام وأنتم بخير
payment_link
string | null
optionalThe link for payment, if applicable.
Example:https://payment.example.sa/order/123456
The weight of the order in grams.
weight_cost_details
object
optionalDetails about the cost of the weight of the order.
The total weight of the order in grams.
weight_total_string
string
optionalThe total weight of the order in a human-readable format.
The cost associated with the weight of the order.
The cost associated with the weight of the order in a human-readable format.
currency
object (OrderCurrency)
optionalorder_store_currency
object
optionalAn array of additional options or configurations applied to the product. (e.g., color, size)
Any coupon code applied to the order.
The total number of products in the order.
products_sum_total_string
string
optionalThe total sum of all products in the order in a human-readable format.
The language used to diplay the order's page.
histories
array[object (OrderHistory) {8}]
optionalA list of historical records associated with the order.
order_status_id
enum<integer>
optionalThe 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
The name of the order status.
The unique identifier of the entity/person who changed the order status.
The type of entity/person who changed the order status (e.g., customer, manager).
Details about the entity/person who changed the order status.
A comment or note about the order history event.
created_at
string <date-time>
optionalThe timestamp when the order history event was created.
Example:2023-07-04 09:12:36
humanized_created_at
string
optionalA human-readable representation of the time elapsed since the order history event was created.
Indicates if the order was previously canceled or closed and has since been reopened or reactivated.
A human-readable string describing the return policy of the order.
Example:Returns are accepted within 14 days of receipt.
The number of packages in the order.
The address of the inventory for the order.
Example:123 King Fahd Road, Al Olaya, Riyadh 12212, Saudi Arabia
expected_shipping_method_type
null
requiredSpecifies the expected type of shipping method for the order.
reseller_meta
string | null
optionalMetadata associated with the reseller.
zidship_ticket_number
null
requiredA unique reference number for tracking orders via Zidship.
The number of edits made to the order after its creation.
Timestamp indicating when the order was delivered.
URL to the downloadable PDF invoice for the order.
Example:https://zid-testing-907587157081.s3-accelerate.amazonaws.com/pdf/order_44834593.pdf
The ID of the previous order, if any.
The ID of the next order, if any.
is_order_notifications_enabled
boolean
optionalIndicates if order notifications are enabled.
Any comments or notes about the order.
Example:This is a VIP customer. Handle with extra care.