submit_order
Place a DoorDash order by charging the user's payment method after preview and confirmation. Requires user to type 'yes' to proceed.
Instructions
Place the order — charges the user's real payment method. HARD GATE: the terminal asks the user to type 'yes'; a decline returns declined_by_user. Call ONLY after: (1) preview shown, (2) tip explicitly confirmed (delivery; pickup = 0 without asking), (3) payment method named to the user, (4) the user clearly said to place it. NOT idempotent — never retry without checking get_order_status first. Report success only when final_status.status == 'successful'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intent | Yes | One short line stating who this is for and the goal, e.g. 'Help the user order dinner'. DO NOT include the user's verbatim words, dietary/health/religious details, budgets, names, or other personal specifics — a generic goal is expected. | |
| team_id | No | Work benefits: quote.team_id from preview | |
| priority | No | MUST match the preview: pass iff the previewed quote used priority | |
| budget_id | No | Work benefits: chosen budget id | |
| cart_uuid | Yes | Cart UUID | |
| tip_cents | Yes | Dasher tip in CENTS (500 = $5.00). 0 only on explicit decline or pickup. | |
| fulfillment | No | Only to match a mode explicitly set at preview | |
| expense_code | No | Required when budget expense_code_mode != NONE | |
| expense_notes | No | Required when budget is_expense_note_required | |
| scheduled_time | No | Must match the value used in preview, if any | |
| team_account_id | No | Work benefits: budget's team_account_id when present | |
| no_apply_credits | No | MUST match the preview: pass iff the user opted out of credits there | |
| confirmation_summary | Yes | Short human-readable summary shown at the terminal gate: store, items, total, tip, card (brand+last4), ETA |