Order modifications should only be made with customer approval and may affect the final order price. Always communicate changes to the customer.
Path Parameters
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:Type of modification: “remove_item”, “reduce_quantity”, “add_item”, “update_item”
The unique identifier of the order item to modify (required for remove_item, reduce_quantity, update_item)
New quantity for the item (required for reduce_quantity and add_item actions)
Product identifier (required for add_item actions)
Updated special instructions for the item
Response
Updated order identifier
Updated order subtotal after modifications
Recalculated tax amount
Updated original price
Delivery platform name
Order-level special instructions
Customer information remains unchanged
Updated fulfillment information with modification logs
Updated array of order items after modifications
Request Example
Response Example
Available Action Types
Available Action Types
remove_item
- Completely removes an item from the order
- Requires: order_item_id
- Use when item is out of stock or customer requests removal
- 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
- Adds a new item to the order
- Requires: item_id, quantity
- Optional: special_instructions
- Use for customer additions or substitutions
- 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
Common Error Scenarios
Common Error Scenarios
Invalid Order ItemOrder Not ModifiableInvalid 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
Common Modification Scenarios
Common Modification Scenarios
Out of Stock Items
- Remove unavailable items
- Reduce quantities for partial availability
- Add substitute items with customer approval
- Add items to existing order
- Remove items customer no longer wants
- Modify special instructions
- Reduce quantities when stock is lower than expected
- Remove items due to quality issues
- Update item specifications
- Adjust item quantities for pricing corrections
- Remove incorrectly priced items
- Add corrected items