Zid Docs
  1. MCP
Zid Docs
  • 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
        • Order Notes
      • 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
          • List Product Reviews
        • 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
          • Change Review Status
          • Bulk Change all Review Statuses
          • Delete Review
          • Import Product Reviews
          • Reply to Review
          • Delete Reply
          • Update Reply to Review
        • 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
          • Customer Wallet
          • Customer Points
          • Loyalty Program Points per Order
          • Store Loyalty Status
          • Redemption Methods
          • Cashback Rules
          • Add Redemption to Cart
          • Remove Redemption from Cart
          • 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
          • List Data
          • Customer Points History
          • Info Page - Managers
          • Update Info Page
          • Adjust Customer Points
      • Customers
        • Customer Profile
        • 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
  • Payment API
    • Merchant Activation
    • Submitting
    • Gateway Error Codes
    • Webhooks
      • Link Merchant Event
      • Payment Paid Event
      • Refund Event
    • Payment
      • Embedded Payment
      • Execute Payment Request
      • Get payment status
      • Direct Payment
    • ApplePay
      • ApplePay Checkout
      • On Payment Authorized
      • Register ApplePay Domain
      • On Providing Merchant Validation
    • Refund
      • Request Refund
  • Apps
    • Create your First App
    • Embedded Apps
    • App Scripts
    • App Events
    • App Subscription
      • Get Subscription Details
      • Update Usage-Based Charges
  • Themes
    • 🚨 Important Update: Zid Themes
    • Adding Video URL Feature to Third-Party Themes
    • Landing Page Development
    • Getting Started with Zid Themes
      • Introduction to Theme Development
      • Manage your Themes
      • Building Themes in Zid
      • Theme File Structure
      • Twig Syntax and Features
      • Zid Theme Packager
    • Templates
      • Layout
      • Home Page
      • Products
      • Cart
      • Store Language and Currency
    • Settings Schema
      • Text
      • Number
      • Text-Area
      • Select
      • Radio Buttons
      • Checkbox
      • Range
      • Color
      • Image
      • Product
      • Category
      • List
      • Fieldset
    • Code Snippets
      • Apple Pay Quick Checkout
      • Custom CSS Injection
      • Displaying the Store's Business Center Logo
      • Customizing Copyright Text
      • Store's Main Navigation Menu
      • Customer Wishlist
      • Store Social Media
      • Products
        • Products Badges
        • Product Ratings
        • Remaining Product Stock
        • Sold Items Count
        • Product Filtration by Attributes
        • Grouped Products
        • Product Questions & Answers
        • Product Restock Notfication
      • SEO
        • Images alt text
        • Themes SEO Marketing Tags
      • Marketing
        • Metafields
        • Gift Feature
        • Loyalty Program
    • Zid Themes Library: API Integration
      • Products
      • Product Categories
      • Cart
      • Blog
      • Customer
      • Store Settings
    • Data Reference
      • Locals
      • Store
      • Cart
      • Product
      • Products List
      • Category
      • Categories List
      • Session
      • FAQs
      • Customer
      • Blogs
      • Page
      • Main Menu
      • Main Navigation Menu
      • Request
      • Orders
      • Addresses
      • Store Payment Methods
      • Store Shipping Methods
      • Store Banks
      • Asset URL
      • Header Meta Tags
      • Loyalty pogram Wallet
    • Themes CLI
      • CLI Authentication
      • Theme Create
      • Theme Package
      • Theme Update
      • Themes List
      • Theme Preview
  • MCP
    • Orders
    • Orders 1
  1. MCP

Orders

This guide explains how to use the Zid MCP tools for managing orders, returns, and related data in your Zid store. Each tool is callable from your MCP environment and supports flexible filtering, localization, and integration into dashboards or workflows.

1. mcp_Zid_ListOrders – List Orders#

Purpose:
Retrieve a paginated list of orders from your Zid store, with advanced filtering options.
Use Cases:
Display recent orders in your admin dashboard.
Filter by status (e.g., "new", "delivered").
Search by customer, date, or payment method.
Parameters:
NameTypeDescription
pagenumberPagination page (default: 1)
perPagenumberItems per page (default: 10, max: 100)
orderStatusstringFilter (new, preparing, ready, etc.)
paymentMethodstringPayment type (zid_cod, zid_credit_card, etc.)
customerIdnumberFilter by customer ID
dateFrom / dateTostringDate range (YYYY-MM-DD)
sortBystringSort direction (asc, desc)
searchTermstringSearch by name/order number
languagestringen or ar
Examples:

2. mcp_Zid_GetOrderDetails – Get Order Details#

Purpose:
Fetch complete details of a specific order including items, customer info, shipping, and payment.
Parameters:
NameTypeDescription
orderIdnumber or stringThe order’s unique ID
languagestringen or ar
Example:

3. mcp_Zid_action_UpdateOrderStatus – Update Order Status#

Purpose:
Change the status of an order (e.g., mark as "preparing", "delivered").
Parameters:
NameTypeDescription
orderIdnumber or stringTarget order ID
orderStatusstringNew status
inventoryAddressIdstring (optional)Inventory location
trackingNumberstring (optional)Shipment tracking code
trackingUrlstring (optional)Shipment tracking link
waybillUrlstring (optional)Waybill document URL
languagestringen or ar
Examples:

4. mcp_Zid_GetOrderCreditNotes – Get Credit Notes#

Purpose:
List all credit notes (refunds, adjustments) for a specific order.
Parameters:
NameTypeDescription
orderIdnumber or stringOrder ID
languagestringen or ar
Example:

5. mcp_Zid_GetOrderVouchers – Get Order Vouchers#

Purpose:
List all vouchers (gift cards, codes) tied to a specific order.
Parameters:
NameTypeDescription
orderIdstringOrder ID
pagenumberPage number (default: 1)
pageSizenumberItems per page (default: 15, max: 100)
languagestringen or ar
Example:

6. mcp_Zid_GetReverseOrderReasons – Get Return Reasons#

Purpose:
Retrieve available reasons for reverse orders (returns/refunds).
Parameters:
NameTypeDescription
languagestringen or ar (optional)
Example:

7. mcp_Zid_action_AddReverseOrderReason – Add Return Reason#

Purpose:
Add a custom reason to the list of return/refund reasons.
Parameters:
NameTypeDescription
namestringReason text
languagestringen or ar
Example:

8. mcp_Zid_action_CreateReverseOrder – Create Reverse Order#

Purpose:
Initiate a reverse order (return/refund) for an existing order.
Parameters:
NameTypeDescription
orderIdnumberOriginal order ID
consigneeNamestringReturn recipient name
consigneeMobilestringRecipient mobile
consigneeCityIdnumberCity ID
consigneeAddress1stringAddress line 1
consigneeAddress2string (optional)Address line 2
inventoryLocationIdstring (optional)Inventory location
reasonstring[]Reason(s)
languagestringen or ar
Example:

9. mcp_Zid_action_CreateReverseOrderWaybill – Generate Return Waybill#

Purpose:
Create a return shipping waybill for the reverse order.
Parameters:
NameTypeDescription
orderIdnumberOriginal order ID
isStandaloneZidshipWaybillboolean (optional)Defaults to true
languagestringen or ar
Example:

Summary Table#

ToolPurposeKey Params
ListOrdersList/filter ordersorderStatus, dateFrom, searchTerm
GetOrderDetailsView full order infoorderId
UpdateOrderStatusChange order stateorderId, orderStatus
GetOrderCreditNotesView refundsorderId
GetOrderVouchersView gift cards/codesorderId, page
GetReverseOrderReasonsShow return reasons(optional) language
AddReverseOrderReasonAdd a return reasonname
CreateReverseOrderSubmit a returnorderId, reason, consignee info
CreateReverseOrderWaybillGenerate return labelorderId

Modified atΒ 2025-07-23 14:06:40
Previous
MCP
Next
Orders 1
Built with