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
The unique identifier of the order containing the item to update
The unique identifier of the specific order item to update
Request Body
Updated special preparation instructions for this item
Updated product name as displayed in store
Updated product description
Updated product category classification
Updated item size specification
Internal notes for kitchen staff or fulfillment team
Employee ID who made the update (for audit trail)
Response
Indicates whether the update was successful
Confirmation message or error details
The ID of the updated order item
List of fields that were successfully updated
Timestamp when the update was applied
Request Example
Response Example
Update Tracking
Update Tracking
When an order item is updated, the following occurs:
- Field Validation: All provided fields are validated for format and content
- Audit Log: Change is recorded with timestamp and user information
- Fulfillment Update: Kitchen/fulfillment systems are notified of changes
- History Tracking: Previous values are preserved for audit trail
- 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
Common Update Scenarios
Common Update Scenarios
Special Instructions Updates
- Add dietary restrictions or allergies
- Update preparation preferences
- Include delivery instructions
- Fix product name typos
- Update descriptions for clarity
- Correct category classifications
- Add handling instructions
- Include quality control notes
- Specify packing requirements
- Update based on customer requests
- Clarify ambiguous instructions
- Add additional context for staff
Error Responses
Common Error Scenarios
Common Error Scenarios
Order Item Not FoundOrder Not ModifiableInvalid Field ValueValidation 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
Validation Requirements
Validation Requirements
special_instructions
- Maximum length: 500 characters
- Can include basic punctuation and numbers
- No HTML or special formatting allowed
- Maximum length: 200 characters
- Must be unique within the order
- Cannot be empty if provided
- Maximum length: 1000 characters
- Supports basic formatting
- Optional field
- Must match existing category in system
- Case-sensitive matching
- Cannot be null if provided
- Maximum length: 50 characters
- Free-form text field
- Commonly used values: “Small”, “Medium”, “Large”, “1 count”, etc.