Skip to main content
PATCH
Update Order Items
This endpoint allows you to update specific details of an order item after the order has been created. You can modify special instructions, update product descriptions, change categories, or adjust item specifications without affecting quantity or pricing.
This endpoint is designed for updating item metadata and preparation instructions. For quantity changes or item removal, use the Patch Order Cart endpoint instead.

Path Parameters

string
required
The unique identifier of the order containing the item to update
string
required
The unique identifier of the specific order item to update

Request Body

string
Updated special preparation instructions for this item
string
Updated product name as displayed in store
string
Updated product description
string
Updated product category classification
string
Updated item size specification
string
Internal notes for kitchen staff or fulfillment team
string
Employee ID who made the update (for audit trail)

Response

boolean
Indicates whether the update was successful
string
Confirmation message or error details
string
The ID of the updated order item
array
List of fields that were successfully updated
string
Timestamp when the update was applied

Request Example

Response Example

When an order item is updated, the following occurs:
  1. Field Validation: All provided fields are validated for format and content
  2. Audit Log: Change is recorded with timestamp and user information
  3. Fulfillment Update: Kitchen/fulfillment systems are notified of changes
  4. History Tracking: Previous values are preserved for audit trail
  5. Status Check: Order status is verified to ensure modifications are allowed
Immutable Fields: Certain fields like quantity, pricing, and core product identifiers cannot be updated through this endpoint. Use the appropriate order modification endpoints for those changes.
Best Practice: Always include the updated_by field to maintain a clear audit trail of who made changes to the order.

Use Cases

Special Instructions Updates
  • Add dietary restrictions or allergies
  • Update preparation preferences
  • Include delivery instructions
Product Information Corrections
  • Fix product name typos
  • Update descriptions for clarity
  • Correct category classifications
Fulfillment Notes
  • Add handling instructions
  • Include quality control notes
  • Specify packing requirements
Customer Service Adjustments
  • Update based on customer requests
  • Clarify ambiguous instructions
  • Add additional context for staff

Error Responses

Order Item Not Found
Order Not Modifiable
Invalid Field Value
Validation Error
Status Restrictions: Order items can only be updated when the order is in modifiable status (pending, accepted, in_progress). Completed or canceled orders cannot be modified.
Character Limits: Special instructions and descriptions have character limits. Ensure your updates stay within these bounds to avoid validation errors.

Field Validation Rules

special_instructions
  • Maximum length: 500 characters
  • Can include basic punctuation and numbers
  • No HTML or special formatting allowed
store_item_name
  • Maximum length: 200 characters
  • Must be unique within the order
  • Cannot be empty if provided
store_item_description
  • Maximum length: 1000 characters
  • Supports basic formatting
  • Optional field
store_item_category
  • Must match existing category in system
  • Case-sensitive matching
  • Cannot be null if provided
store_item_size
  • Maximum length: 50 characters
  • Free-form text field
  • Commonly used values: “Small”, “Medium”, “Large”, “1 count”, etc.