Update Lunch Order Draft
update_lunch_order_draftUpdate an unpaid lunch draft order by replacing its items or serving date before finalization. Requires the draft order ID and ownership to modify contents.
Instructions
Replaces the items and/or menu_date of an unpaid draft order before it is finalized - the caller must own the draft and it must still be in draft status (order_id from create_lunch_order_draft). Pass the complete items list: it replaces the draft's items wholesale and the total is recomputed from price times quantity. Only draft orders can be updated; once finalized, use cancel_my_lunch_order. WRITE - confirm the new contents with the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Replacement line items (menu_item_id from get_lunch_menu + quantity); replaces all existing items when provided | |
| order_id | Yes | Draft order ID from create_lunch_order_draft - must still be in draft status | |
| menu_date | No | New date the lunch is served, YYYY-MM-DD |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Order status (draft) | |
| orderId | No | Updated draft order ID |