List of Orders
GET
v1/managers/store/ordersOrders can be created either by the customers from the storefronts or by the merchants from their dashboard.
Use this endpoint to retrieve a list of orders filtered by specific parameters.
:::note[]
Data Masking for Marketplace Orders
When is_marketplace_order
is true, the order is from an external provider, and certain customer information, such as customer.name
, customer.email
, and customer.phone
, will be masked for privacy. For example, names like "John Doe" become "J*** D***", emails are masked as "t***@.", and phone numbers as "***00". Masked data may not follow proper syntax. Additionally, for marketplace orders, customer.phone
may be null
if not provided.
:::
Request
A query parameter that specifies the type and amount of data returned in the response for the "List of Orders" endpoint. To retrieve a list of orders with essential product information (product ID, name, SKU, price, and quantity) included in the response, it is recommended to set payload_type to 'default'.
pagination, number of page for every call
number of records for every page with max 100 records
Filter by one of the allowed values
Filter by payment method
Enter the customer's id to retrieve only respective orders
example: '2020-01-01T00:00:00.000+0000'
example: '2020-01-01T00:00:00.000+0000'
Sort result in a specific order
The selected method for delivering the order.
The phone number of the customer.
Filter by one or multiple of the allowed values.
Natural language lookup through (customer phone, customer email, order code, or customer name).
created_at, or updated_at
Order referer code.
The unique identifier for the order.
Individual or business.
order source.
Indicates the current payment status of the order.
Filter by cashier id.
Filter by country code.
Shipping address city id.
Shipping address country id.
List order transaction references.
List of order tags ids.
The ID of the applied coupon.
Any of the order's product sku.
Indicates if the order is a gift.
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.
Role of the user.
Authenticates the user or app for API requests. Required for authorized access.
Tracks and validates the user’s current session with the API.
Request samples
Responses
The status of the response.
A list of orders.
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.
The name of the store.
The code representing the shipping method used for the order.
The URL link to the store.
Status of the order.
The code representing the currency used for the order.
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.
Indicates 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 total amount of the order.
The total amount of the order in a human-readable format.
Indicates if the transaction currency is different from the order currency.
The reference number for the transaction.
The amount of the transaction.
The amount of the transaction in a human-readable format.
The date and time when the order was issued.
The payment status of the order.
paid
: Payment has successfully completed.pending
: Payment is still pending or hasn't been made yet.refunded
: Payment has been refunded to the Customer.voided
: Payment has been voided or canceled.
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 "المتجر الإلكتروني".
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.
Indicates 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.
The date and time when the order was last updated.
Any tags associated with the order.
Indicates if the order requires shipping.
The total number of orders.
A breakdown of the number of orders based on their statuses.
Number of orders with 'new' status.
Number of orders being prepared.
Number of orders in delivery.
Number of orders that have been delivered.
Number of orders that have been cancelled.
Number of orders that have been reversed.
Number of orders that are ready.
Number of orders that are processing a reversal.
Settings related to tax.
Color configurations for various store UI elements.
Default background color for buttons.
Default text color for buttons.
Default border color for buttons.
Background color for buttons on hover.
Background color for buttons when pressed.
Text color for buttons when pressed.
Border color for buttons when pressed.
Settings related to the content and appearance of printed invoices.
Indicates if the tax number is active on the printed invoice.
Indicates if the return policy is active on the printed invoice.
Indicates if the products' weight is displayed on the printed invoice.
Indicates if a barcode is displayed on the printed invoice.
Indicates if a QR code is displayed on the printed invoice.
Indicates if the expected delivery time is displayed on the printed invoice.
Indicates if the store address is displayed on the printed invoice.
Indicates if VAT settings are active on the printed invoice.
Indicates if the SKU is displayed on the printed invoice.
Indicates if a thank you message is displayed on the printed invoice.
Indicates if the order status is displayed on the printed invoice.
Indicates if any discount coupon is displayed on the printed invoice.
The URL of the logo displayed on the printed invoice.
The business address of the store displayed on the printed invoice.
The business name of the store displayed on the printed invoice.
The type of business of the store.
The commercial number of the store.
Indicates if a payment stamp is displayed on the printed invoice.
Indicates if order notifications are enabled.
The type of the message.
The code associated with the message.
The name of the message.
A detailed description of the message.
{
"status": "object",
"orders": [
{
"id": 25304285,
"code": "8OVNEhyqcf",
"store_id": 251073,
"order_url": "https://zid.store/osama/o/6IJWXOYLuR/inv",
"store_name": "Osama's Store",
"shipping_method_code": "custom",
"store_url": "https://zid.store/osama/",
"order_status": {
"name": "Delivery in progress",
"code": "delivered"
},
"currency_code": "KWD",
"is_marketplace_order": false,
"customer": {
"id": 0,
"name": "osama",
"email": "example.user@email.com",
"mobile": "+966501234567",
"verified": 0,
"note": "string",
"type": "string"
},
"has_different_consignee": false,
"is_guest_customer": false,
"is_gift_order": false,
"gift_card_details": null,
"is_quick_checkout_order": true,
"order_total": "6.00000000000000",
"order_total_string": "6.00 KWD",
"has_different_transaction_currency": true,
"transaction_reference": "TRN-123456",
"transaction_amount": 60,
"transaction_amount_string": "60.00 SAR",
"issue_date": "04-07-2023 | 12:12 Ù…",
"payment_status": "paid",
"source": "Store",
"source_code": "catalog",
"is_reseller_transaction": false,
"created_at": "2023-07-04 09:12:36",
"updated_at": "2023-07-04 09:14:28",
"tags": [
{}
],
"requires_shipping": true,
"shipping": {
"method": {
"id": 1,
"name": "string",
"code": "zid_cod",
"estimated_delivery_time": "string",
"icon": "string",
"is_system_option": true,
"waybill": null,
"had_errors_while_fetching_waybill": true,
"waybill_tracking_id": null,
"has_waybill_and_packing_list": true,
"tracking": {
"number": null,
"status": null,
"url": null
},
"order_shipping_status": null,
"inventory_address": [
{}
],
"courier": null,
"return_shipment": null,
"address": {
"street": "king Abdulaziz Road",
"district": "Al Olaya District",
"formatted_address": "King Abdulaziz Road, Al Olaya District, Riyadh, Saudi Arabia",
"city": {
"id": "1",
"national_id": "3",
"name": "other",
"priority": "10",
"country_id": "184",
"country_name": "Saudi Arabia",
"country_code": "SA"
}
}
}
},
"payment": {
"method": {
"name": "string",
"code": "zid_cod",
"type": "zid_cod",
"transaction_status": "string",
"transaction_status_name": "string"
}
},
"cod_confirmed": true,
"reverse_order_label_request": null
}
],
"total_order_count": 887,
"total_order_count_per_status": {
"new": 323,
"preparing": 21,
"indelivery": 88,
"delivered": 178,
"cancelled": 135,
"reversed": 1,
"ready": 138,
"reverse_in_progress": 6,
"partially_reversed": 3,
"initial": 0
},
"tax_settings": [
{}
],
"storeColors": {
"btn_default_background_color": "#b053ac",
"btn_default_text_color": "#ffffff",
"btn_default_border_color": "#a04b9c",
"btn_hover_background_color": "#bf5abb",
"btn_pressed_background_color": "#a04b9c",
"btn_pressed_text_color": "#ffffff",
"btn_pressed_border_color": "#a04b9c"
},
"printed_invoice_settings": {
"is_tax_number_active": true,
"is_return_policy_active": true,
"is_products_weight_active": true,
"is_barcode_active": true,
"is_qr_code_active": true,
"is_expected_time_active": true,
"is_store_address_active": true,
"is_vat_settings_active": true,
"is_sku_active": true,
"is_thanks_msg_active": true,
"is_order_status_active": true,
"is_discount_coupon_active": true,
"config_logo": "https://example.com/logo-200x.png",
"store_business_address": "Example Address, Riyadh, Saudi Arabia",
"store_business_name": "ExampleStore",
"store_business_type": "establishment",
"commercial_number": "1234567890",
"is_payment_stamp_active": true,
"is_order_notifications_enabled": true,
"is_product_description_active": false
},
"orders_list_view_settings": {
"order_number_column": true,
"customer_column": 0,
"created_at_column": 1,
"updated_at_column": 1,
"source_column": 1,
"shipping_method_column": 1,
"payment_method_column": 1,
"customer_note_column": 1,
"tags_column": 1,
"order_status_column": 1,
"payment_status_column": 1,
"totals_column": 1,
"action_buttons": true,
"all_columns": 0,
"order_number": 10
},
"message": {
"type": "object",
"code": "200",
"name": "Success",
"description": "Order details retrieved successfully."
}
}