submit_order
Places a real DoorDash order and charges the user's payment method after preview and explicit terminal approval; use only after the user confirms the order.
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 the response's lifecycle.order_created is true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cart_uuid": "<cart_uuid>",
"tip_cents": "<tip_cents>",
"confirmation_summary": "<confirmation_summary>",
"intent": "<intent>"
},
"name": "submit_order"
}
}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. | |
| card_id | No | MUST match the preview: pass the same card_id the quote was priced on, so the card charged is the card the user was told about. ASAP orders only. With team_id/budget_id the card covers only what the budget doesn't. | |
| 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 |