Zid Docs
Apps
ThemesPayments
Apps
ThemesPayments
Help Center
Slack
  1. Reverse Orders
  • πŸ—‚οΈ Overview
  • πŸš€ Start Here
  • Create your First App
  • Responses
  • Rate Limiting
  • Authorization
  • Embedded Apps
  • StoreFront Events
  • Zid MUI
  • Zid SDKs
  • Our custom MCP server
  • Merchant APIs
    • Account
      • Me
        • Me
        • Profile
      • Store
        • Store
        • Branding
        • Localization
        • Social
        • Operations
        • Business
        • Upload Logo Image
        • Delete Logo Image
        • Upload Icon Image
        • Delete Icon Image
        • Upload Cover Image
        • Delete Cover Image
    • Orders
      • Validate Order Request
      • Create Order
      • Change Order Status
      • Add Order Comment
      • View Order
      • List Orders
      • List Custom Order Statuses
      • List Order Credit Notes
    • Reverse Orders
      • Create Reverse Orders
        POST
      • Create Reverse Orders Waybill
        POST
      • Add Reverse Order Reasons
        POST
      • List Reverse Reasons
        GET
      • Calculate Reverse Totals
        POST
      • Create refund for reverse order
        POST
      • Upload bank transfer receipt
        POST
      • Update return products
        PUT
      • Order Details – View for Return
        GET
    • Abandoned Carts
      • List Carts
      • View Cart
    • Products
      • Managing Products
        • Create Product Types
        • Create Product
        • List Products
        • View Product
        • List Product Settings
        • Update Product
        • Bulk Update Products
        • Delete Product
      • Digital Vouchers
        • List Vouchers
        • Order Vouchers
        • Create Voucher
        • Import Vouchers
        • Export Vouchers
        • Update Voucher
        • Remove Voucher
      • Product Categories
        • List Categories
        • View Category
        • Create Category
        • Create Subcategory
        • Update Category
        • Assign Product to Category
        • Bulk Assign Products to Category
        • Publish Category
        • Detach Category from All Products
        • Remove Product from Category
      • Product Badge
        • List Badges
      • Product Attributes
        • List Attributes
        • View Attribute
        • Create Attribute
        • Update Attribute
        • Delete Attribute
      • Product Attribute Presets
        • List Presets
        • Create Preset
        • Update Preset
        • Delete Preset
      • Product Variants
        • Create Variants
        • Create Custom Option
        • Update Custom Option
        • Delete Custom Option Field
        • Create Custom Input Field
        • Update Custom Input Field
        • Delete Custom Input Field
      • Product Sorting
        • Set Manual Product Order
        • Reset Manual Product Order
      • Product Images
        • List Images
        • Upload Image
        • Update Image Order
        • Delete Image
      • Product Availability Notifications
        • Notification Stats
        • Noticiation Settings
        • List Notifications
        • Create Notification
        • Update Settings
        • Send Notification Email
        • Export Notifications
      • Product Export
        • Email All Products to Store Owner
        • Import Products via CSV or xlsx File
      • Product Stock
        • Retrieve Product Stock
        • List Product Stock Records
        • Create Product Stock
        • Update Product Stock
        • Bulk Update Product Stock Records
      • Product Questions & Answers
        • Retrieve Product Question
        • Retrieve Product Answer
        • List Product Questions
        • List Answers for Question
        • Create Product Question
        • Create Product Answer
        • Update Product Question
        • Update Product Answer
        • Delete Product Question
        • Delete Product Answer
      • Product Reviews
        • List Reviews
        • Count Reviews
      • Digital Products
        • Create Downloadable Product
        • Generate Upload URL
        • Upload File to S3
        • Create Product Downloadable
        • Get Product Downloadables
        • Delete Product Downloadable
        • List Store Downloadables
        • Create Store Downloadable
        • Delete Store Downloadable
    • Inventories
      • Create Location
      • Update Location
      • Update Product Stock for Location
      • List Locations
      • View Location
    • Shipping
      • List Store Shipping Methods
    • Marketing
      • Coupons
        • List Coupons
        • View Coupon
        • Create Coupon
        • Generate Bulk Coupons
        • Duplicate Coupon
        • Duplicate Bulk Coupons
        • Update Coupon Note
        • Update Coupon
        • Update Bulk Coupons
        • Update Coupon Status
        • Update Bulk Coupons Status
        • Delete Coupon
        • Delete Bulk Coupons
      • Bundle Offers
        • List Bundle Offers
      • Loyalty Program
        • Loyalty Program Status
        • Loyalty Program Details
        • Loyalty Program Info
        • Customer Loyalty Summary
        • Customer Points History
        • Activate Loyalty Program
        • Set Points Expiration Rules
        • Update Cashback Rule
        • Create Points Redemption Method
        • Update Points Redemption Method
        • Delete Points Redemption Method
        • Adjust Customer Points
      • Discount Rules
    • Customers
      • Customer Tags
        • List Customer Tags
        • Add Customer Tag
        • Ω’Update Customer Tag
        • Delete Customer Tag
      • List Customers
      • View Customer
      • Primary Customer List
      • FInd Customer By Phone Number
      • Customer Profile
      • Add Customer
      • Update Customer
      • Delete Customer
      • Add Bulk Customers
      • Import Customers
    • Store Settings
      • πŸ“„ User Roles and Permissions
      • Retrieve Store Manager Profile
      • Retrieve VAT Settings
      • List Payment Methods
      • List Store Operating Countries
    • Countries and Cities
      • List Countries
      • List Cities for Country
  • Webhooks
    • Overview
    • Webhook Health Tracking
    • Events
      • Order
      • Product
      • Abandoned Cart
      • Customer
      • Product Category
    • APIs
      • Health Summary
      • Broken Webhooks
      • Recover Broken Webhooks
      • List Webhooks
      • Create Webhook
      • Delete Webhook
      • Delete Webhook By subscriber
  • App Management
    • Events
    • APIs
      • Subscription Details
      • Update Usage-Based Charges
  1. Reverse Orders

Update return products

PUT
https://api.zid.sa/v1/managers/store/reverse-orders/products
Updates the received status and condition quantities for products included in a reverse order.
This endpoint is used after a reverse order has been created and the returned products are physically processed.
It allows the store to specify how many items were:
Received in good condition
Not received
Received but damaged
These values are critical for:
Final refund reconciliation
Inventory adjustments
Return auditing

⚠️ Important#

This endpoint does not create a reverse order.
It only updates quantities for products already included in an existing reverse order.
Stock and refund calculations depend on the correctness of these values.

⚠️ Validation Rules & Business Logic#

Each product must belong to the specified reverse order
For each product:
received_quantity + not_received_quantity + damaged_quantity
≀ reversed_quantity
At least one quantity must be greater than 0
Quantities must be non-negative integers
Updates are atomic, if one product fails validation, the entire request fails

πŸ”„ Typical Workflow Position#

1.
Create reverse order
2.
Calculate refund totals
3.
Create refund
4.
Update received/damaged quantities (this endpoint)
5.
Generate return waybill
6.
Finalize refund & stock updates

Request

Header Params

Body Params application/jsonRequired

Examples

Responses

🟒200OK
application/json
Bodyapplication/json

🟠401Unauthorized
πŸ”΄500Internal Server error
🟠422Validation errors
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.zid.sa/v1/managers/store/reverse-orders/products' \
--header 'Authorization: {{Autherization}}' \
--header 'X-MANAGER-TOKEN: {{Access-Token}}' \
--header 'Accept-Language: en' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
    "order_reverse_id": "64d0f002-0185-4fd1-94d2-e3a86be622c9",
    "products": [
        {
            "id": "af9e0150-1c56-4a1b-87e9-846d6a0acf19",
            "received_quantity": 0,
            "not_received_quantity": 0,
            "damaged_quantity": 1
        }
    ]
}'
Response Response Example
200 - Success
{
    "status": "object",
    "order_reverse": {
        "id": "64d0f002-0185-4fd1-94d2-e3a86be622c9",
        "store_id": "d297fb8b-c322-412e-a2f4-ffa96dc57022",
        "order_id": 64086815,
        "is_partial": 0,
        "consignee_name": "Jane Smith",
        "consignee_mobile": "+966500000005",
        "consignee_city": {
            "id": 1,
            "country_id": 184,
            "zone_id": 2879,
            "name": "Riyadh",
            "ar_name": "Ψ§Ω„Ψ±ΩŠΨ§ΨΆ",
            "code": null,
            "status": 1,
            "priority": 10,
            "created_at": null,
            "updated_at": "2021-05-26T13:04:05.000000Z",
            "deleted_at": null,
            "national_address_city_id": 3,
            "governorate_ar_name": "Ψ§Ω…Ψ§Ψ±Ψ© Ω…Ω†Ψ·Ω‚Ψ© Ψ§Ω„Ψ±ΩŠΨ§ΨΆ",
            "governorate_en_name": "Riyadh Principality",
            "region_id": 1,
            "region_ar_name": "Ψ§Ω„Ψ±ΩŠΨ§ΨΆ",
            "region_en_name": "Riyadh",
            "country": {
                "id": 184,
                "name": "Saudi Arabia",
                "ar_name": "Ψ§Ω„Ψ³ΨΉΩˆΨ―ΩŠΨ©",
                "country_code": "+966",
                "iso_code_2": "SA",
                "iso_code_3": "SAU",
                "address_format": "",
                "postcode_required": 0,
                "status": 1,
                "currency_code": "SAR",
                "tax_percentage": null,
                "is_supported_by_zid": 1,
                "priority": 1,
                "created_at": "2019-09-25T18:43:01.000000Z",
                "updated_at": "2019-09-25T18:43:01.000000Z"
            }
        },
        "consignee_address_1": "456 Commerce Avenue",
        "consignee_address_2": "Suite 301",
        "inventory_address_id": null,
        "inventory_location_id": "8ee590fed02d4c509184f628bb8b115a",
        "inventory": {
            "deleted": null,
            "id": "8ee590fed02d4c509184f628bb8b115a",
            "created_at": "2023-09-21T10:11:10.135964Z",
            "updated_at": "2025-10-13T14:55:15.609712Z",
            "name": {
                "ar": "Ψ§Ω„Ψ±ΩŠΨ§ΨΆ - فرع ΨΉΨ¨Ψ― Ψ§Ω„ΨΉΨ²ΩŠΨ²"
            },
            "type": "PHYSICAL",
            "coordinates": {
                "type": "Point",
                "coordinates": [
                    46.66803359985352,
                    24.77208405941104
                ]
            },
            "is_default": 0,
            "is_private": 0,
            "is_enabled": 1,
            "fulfillment_priority": 9,
            "meta": null,
            "city_id": 1,
            "store_id": "d297fb8b-c322-412e-a2f4-ffa96dc57022",
            "full_address": "6137 King Abdul Aziz Branch Rd, An Nafal, Riyadh 13312, Saudi Arabia",
            "channels": [
                "pos",
                "catalog"
            ],
            "district": "King Abdul Aziz",
            "street": "نفال",
            "short_address": null
        },
        "reason": [
            {
                "id": "ebcfd40a-7c2f-4ed4-b30f-3fd142388ad7",
                "name": "Customer canceled"
            }
        ],
        "shipping_method": null,
        "waybill": null,
        "products": [
            {
                "id": "af9e0150-1c56-4a1b-87e9-846d6a0acf19",
                "order_reverse_id": "64d0f002-0185-4fd1-94d2-e3a86be622c9",
                "order_product_id": 110168319,
                "product_uuid": "003140e29d8e462db823373407746871",
                "quantity": 1,
                "reversed_quantity": 1,
                "received_quantity": 0,
                "not_received_quantity": 0,
                "damaged_quantity": 1,
                "product": {
                    "id": "003140e29d8e462db823373407746871",
                    "structure": "standalone",
                    "store_id": 3,
                    "name": "Ψ·Ω‚Ω… سفر Ω„Ω„Ψ­ΩˆΨ§Ψ¬Ψ¨ سوبرسΨͺΨ§Ψ± Ω…Ω† بنفΨͺ",
                    "quantity": null,
                    "is_infinite": true,
                    "slug": "Ψ·Ω‚Ω…-سفر-Ω„Ω„Ψ­ΩˆΨ§Ψ¬Ψ¨-سوبرسΨͺΨ§Ψ±-Ω…Ω†-بنفΨͺ",
                    "sku": "Z.217795.169603646831188",
                    "price": "199.5600",
                    "sale_price": null,
                    "parent_id": null,
                    "is_published": 1,
                    "is_draft": 0,
                    "old_id": null,
                    "upc": null,
                    "rating": null,
                    "revision": 1,
                    "product_class_id": null,
                    "display_order": 32766,
                    "has_been_modified": 1,
                    "created_at": "2025-04-03T00:11:39.826154Z",
                    "updated_at": "2026-02-02T14:07:49.155764Z",
                    "deleted": null,
                    "popularity_order": null,
                    "cost": "0.0000",
                    "weight": null,
                    "popularity_points": 26,
                    "requires_shipping": 1,
                    "weight_display_unit": "kg",
                    "is_taxable": true,
                    "purchase_restrictions": {
                        "max_quantity_per_cart": null,
                        "min_quantity_per_cart": null,
                        "sale_price_period_end": null,
                        "availability_period_end": null,
                        "sale_price_period_start": null,
                        "availability_period_start": null
                    },
                    "meta": [],
                    "short_description": null,
                    "badge": null,
                    "related_products_settings": "AUTO_GENERATED",
                    "related_products_title": null,
                    "barcode": null,
                    "product_class": null
                },
                "product_class": null,
                "order_product": {
                    "id": 110168319,
                    "order_id": 64086815,
                    "reseller_meta": null,
                    "product_id": 0,
                    "product_uuid": "003140e29d8e462db823373407746871",
                    "sku": "Z.217795.169603646831188",
                    "name": "Ψ·Ω‚Ω… سفر Ω„Ω„Ψ­ΩˆΨ§Ψ¬Ψ¨ سوبرسΨͺΨ§Ψ± Ω…Ω† بنفΨͺ",
                    "custom_fields": null,
                    "model": "",
                    "quantity": 1,
                    "requires_shipping": 1,
                    "weight": null,
                    "cost": 0,
                    "price": "199.55999896568000",
                    "additions_price": "0.00000000000000",
                    "total": "199.55999896568000",
                    "net_price": "173.53043388320000",
                    "net_sale_price": null,
                    "net_additions_price": "0.00000000000000",
                    "gross_sale_price": null,
                    "gross_additions_price": "0.00000000000000",
                    "gross_price": "199.55999896568000",
                    "tax_percentage": "0.15000000000000",
                    "tax_amount": "26.02956508248000",
                    "is_taxable": true,
                    "is_discounted": false,
                    "meta": null,
                    "reward": 0,
                    "created_at": "2026-01-28T16:52:59.000000Z",
                    "updated_at": "2026-01-28T16:52:59.000000Z",
                    "deleted_at": null,
                    "external_product_id": null,
                    "is_external_product": false,
                    "net_unit_price": "173.53043388320000",
                    "gross_unit_price": "199.55999896568000",
                    "undiscounted_net_unit_price": "173.53",
                    "undiscounted_gross_unit_price": "199.56",
                    "undiscounted_net_total": "173.53",
                    "undiscounted_gross_total": "199.56",
                    "unit_discount_amount": "0.00000000000000",
                    "unit_discount_percentage": "0.00000000000000",
                    "subtotal_discounts": []
                },
                "created_at": "2026-01-31T13:04:20.000000Z",
                "updated_at": "2026-02-02T14:13:04.000000Z"
            }
        ],
        "reverse_total": 199.56,
        "refund_total": 0,
        "refund": {
            "id": "67534651-6ab3-415b-af61-d0a0ed103449",
            "amount": "199.56",
            "payment_method": "zid_bank_transfer",
            "reference": null,
            "notes": "Refund processed via bank transfer",
            "receipt_link": "https://zid-platform.s3-accelerate.amazonaws.com/public/refunds/bank_transfer_receipts/kasYsnXTGE2Oxsp4dn86bE38HLvip5POwKF60soV.jpg",
            "created_at": "2026-02-02T13:48:03.000000Z",
            "updated_at": "2026-02-02T13:48:03.000000Z"
        },
        "available_refund_payment_methods": [
            {
                "name": "Bank Transfer",
                "code": "zid_bank_transfer"
            }
        ],
        "shipment_status": null
    },
    "message": {
        "type": "object",
        "code": null,
        "name": null,
        "description": null
    }
}
Modified atΒ 2026-02-09 07:44:17
Previous
Upload bank transfer receipt
Next
Order Details – View for Return
Built with