Place order (real purchase)
place_orderPlace an order from the current basket after previewing with confirm:false, then submit with confirm:true to charge cash or a saved payment token.
Instructions
Submit the shop's server-side basket as a REAL efood order. This charges your chosen payment method and cannot be undone from here. Safety: call with confirm:false (default) first — it validates against the delivery address and returns a summary (items, total, fees, min-order); only call confirm:true after the user has explicitly approved. Card details cannot be entered here — pay with cash on delivery or a saved payment token (see get_payment_methods).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to actually submit. Omit/false to preview only. | |
| address_id | Yes | Delivery address id (from get_addresses). | |
| delivery_type | No | Fulfilment type (default "delivery"). | |
| payment_token | No | Saved payment token, if paying by card. | |
| restaurant_id | Yes | Shop/restaurant id whose basket to order. | |
| payment_method | No | Payment method, e.g. "cash" or "card" (default "cash"). |