preview_order
Preview order pricing, fees, delivery options, and tip suggestions for a cart before placing the order.
Instructions
Authoritative pricing + logistics for a cart (read-only, no charge): display_summary (show VERBATIM to the user), quote {net_total_before_tip = the real total, line_items fee breakdown, tips_suggestion (cents), delivery_availability ETAs, credits, PIN requirement, work budgets}, and the default card (brand+last4). Re-run after ANY cart change. Pass include_work_benefits when the user mentions work/office/company/team/expense or delivers to a Work address. Budget checks: compare the user's cap against net_total_before_tip (tip adds on top).
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. | |
| priority | No | Request Priority (express) delivery — a paid, faster upgrade. Delivery-only; incompatible with pickup and scheduled_time. Verify quote.delivery_availability.delivery_options[] contains delivery_option_type 'PRIORITY' before promising it; pass the same flag at submit. | |
| cart_uuid | Yes | Cart UUID | |
| fulfillment | No | MUTATES the cart's mode before pricing — only pass when the user explicitly asked to switch | |
| scheduled_time | No | ISO 8601 UTC (e.g. 2026-07-19T23:00:00Z) for scheduled delivery; omit for ASAP | |
| no_apply_credits | No | Opt OUT of applying DoorDash credits (they apply by default — do not prompt about them). Pass ONLY when the user explicitly asks not to use credits; all-or-nothing; pass the same flag at submit. | |
| selected_budget_id | No | Apply a specific work budget id from a prior preview | |
| include_work_benefits | No | Set on ANY work/company/team/expense signal |