Skip to main content
PATCH
Patch Order Cart
This endpoint allows you to modify order contents after the order has been created but before it’s completed. You can remove items, reduce quantities, add new items, or update existing items. This is useful for handling out-of-stock situations, customer requests, or inventory adjustments.
Order modifications should only be made with customer approval and may affect the final order price. Always communicate changes to the customer.

Path Parameters

string
required
The unique identifier of the order to modify

Request Body

The request body should be an array of action objects, each specifying a modification to perform:
string
required
Type of modification: “remove_item”, “reduce_quantity”, “add_item”, “update_item”
string
required
The unique identifier of the order item to modify (required for remove_item, reduce_quantity, update_item)
integer
New quantity for the item (required for reduce_quantity and add_item actions)
string
Product identifier (required for add_item actions)
string
Updated special instructions for the item

Response

string
Updated order identifier
string
Updated order subtotal after modifications
string
Recalculated tax amount
string
Updated original price
string
Delivery platform name
string
Order-level special instructions
object
Customer information remains unchanged
array
Updated fulfillment information with modification logs
array
Updated array of order items after modifications

Request Example

Response Example

remove_item
  • Completely removes an item from the order
  • Requires: order_item_id
  • Use when item is out of stock or customer requests removal
reduce_quantity
  • Reduces the quantity of an existing item
  • Requires: order_item_id, quantity (new quantity, not amount to reduce)
  • Use for partial availability or customer quantity changes
add_item
  • Adds a new item to the order
  • Requires: item_id, quantity
  • Optional: special_instructions
  • Use for customer additions or substitutions
update_item
  • Updates item details without changing quantity
  • Requires: order_item_id
  • Optional: special_instructions, item modifications
  • Use for customization changes
Price Recalculation: The system automatically recalculates taxes, fees, and total price after modifications. Negative subtotals in the response indicate cost reductions.
Best Practice: Always batch multiple modifications into a single request to avoid multiple price recalculations and to maintain order consistency.

Error Responses

Invalid Order Item
Order Not Modifiable
Invalid Quantity
Status Restrictions: Orders can only be modified in certain statuses (pending, accepted, in_progress). Completed, canceled, or delivered orders cannot be modified.

Use Cases

Out of Stock Items
  • Remove unavailable items
  • Reduce quantities for partial availability
  • Add substitute items with customer approval
Customer Requests
  • Add items to existing order
  • Remove items customer no longer wants
  • Modify special instructions
Inventory Adjustments
  • Reduce quantities when stock is lower than expected
  • Remove items due to quality issues
  • Update item specifications
Price Corrections
  • Adjust item quantities for pricing corrections
  • Remove incorrectly priced items
  • Add corrected items