create_draft_order
Creates a draft lunch order for a student using menu items, prices, and quantities. Requires confirmation before finalizing payment.
Instructions
Creates a draft lunch order for a student. Requires student_id, school_slug, menu_date, and items array. Each item needs menu_item_id, menu_item_name, price_cents, and quantity. The draft is not finalized - call finalize_order to commit the order and deduct payment. This is a FINANCIAL + WRITE operation - always confirm the order details with the user before calling. Idempotent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| menu_date | Yes | YYYY-MM-DD | |
| student_id | Yes | Student ID | |
| school_slug | Yes | School slug |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| items | No | ||
| status | No | ||
| menuDate | No | ||
| studentId | No | ||
| schoolSlug | No | ||
| itemTotalCents | No |