order_lunch
Place a school lunch order for your student by selecting a menu item and date, with payment from your wallet. Confirm order details before submitting.
Instructions
Places a lunch order for a student the authenticated user is a guardian of. Requires menu_item_id (from get_daily_menu) and menu_date (YYYY-MM-DD). Optionally specify student_id (defaults to the user's first student if only one). Payment is deducted from the wallet. This is a FINANCIAL + WRITE operation - always confirm the order details (student, item, date, quantity) with the user before calling. Idempotent: duplicate calls with the same idempotency context will not create duplicate orders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | No | Number of servings (default 1) | |
| menu_date | Yes | YYYY-MM-DD | |
| student_id | No | Student ID (must be your own student; from get_user_info) | |
| menu_item_id | Yes | Menu item ID from get_daily_menu |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| items | No | ||
| status | No | ||
| menuDate | No | ||
| studentId | No | ||
| schoolSlug | No | ||
| itemTotalCents | No |