Draft a scheduled pre-order
draft_preorderDrafts a pre-order for a time slot, for PICKUP (default) or courier DELIVERY (method: delivery, with deliveryAddress or savedLocationId; the slot must offer delivery and the venue must deliver, and the delivery fee is paid to the rider on delivery). Nothing is placed or reserved: it checks the slot against the items (lead time, capacity, items sold that day), prices the order with choices, and returns the summary: slot and ready time, items, total, what is due now and what on collection. The slot comes from list_preorder_slots (slotInstanceId). Returns a draftId for place_preorder. Requires the connected WaitApp account. payment: on_collection (default; the guest pays the venue when collecting) or online (the amount due now is paid by the guest on WaitApp's payment page after the order is placed; the assistant sends and approves no payment); some venues require online. guestPhone is required: the guest and venue use it to find the order. One slot per order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| method | No | pickup | |
| payment | No | ||
| guestName | Yes | Who collects, or receives, the order | |
| guestPhone | Yes | ||
| restaurantId | Yes | ||
| slotInstanceId | Yes | From list_preorder_slots | |
| deliveryAddress | No | For delivery: the full address. Not needed when savedLocationId is given | |
| savedLocationId | No | For delivery: one of the person's saved locations (see list_saved_locations) |