Doordash Checkout
doordash_checkoutFull Description
DO NOT call this tool directly from the model. This tool is only accessible through the shopping cart widget UI. To help users complete a purchase, first use create_product_list to build the cart and display the interactive cart widget, where the user can review items and click the checkout button. The widget will call this tool internally when the user is ready.
Parameters
itemsarrayList of items to checkout. Each item should have 'item_id' and 'quantity' fields. Quantity can be int (e.g., 2 pizzas) or float (e.g., 0.5 lbs of bananas). Optional fields: 'item_name', 'purchase_type'. For weight-based items, set purchase_type='PURCHASE_TYPE_MEASUREMENT'. Example: [{'item_id': '12345', 'quantity': 2, 'item_name': 'Milk'}, {'item_id': '67890', 'quantity': 0.5, 'item_name': 'Bananas', 'purchase_type': 'PURCHASE_TYPE_MEASUREMENT'}]
store_idstringStore ID where the items are from.
cart_idstringOptional existing cart ID from a previous checkout. If provided, items will be deduplicated: items already in cart are skipped, items with higher quantity will add only the delta. This prevents duplicate items when the user modifies the shopping list after initial checkout.
nullshopping_list_created_atstringISO 8601 timestamp when the shopping list was created (e.g., '2024-01-15T10:30:00Z' or '2024-01-15T10:30:00+00:00'). Used to calculate time_to_decision_seconds.
nullshopping_list_idstringShopping list ID (session_id) from create_product_list. Used to track cart acceptance and time to decision.
nulltrace_idstringTrace ID from create_product_list response. Used to correlate checkout with the original shopping list creation for debugging and analytics.
null