Order Ahead Addons¶
Configuration¶
- Sort out OAuth
- Fetch locations to do location mapping
- Push available tables to Tables API for each configured location
- Push current menu to Menu API for each configured location
- Subscribe to
order.pending
webhook. This will notify you when there is an order ready to be pushed to the POS/tablet.
Basic Flow¶
Assumes orders are automatically accepted by POS or external ordering system.
- Handle the incoming
order.pending
webhook. This will contain a list of products the customer has ordered, and the customer will be authorized for this payment already. - If required you might want to validate the order items are still available to order, and that the prices have not changed since the customer placed the order.
- Push the order to the kitchen (POS, tablet, or ordering system).
- Upon success, accept the order using LOKEs API.
- Don't forget to pass in the
refId
, and optionally theterminalId
. This will assist in debugging order problems. - If you don't call accept on the order it will be refunded.
- Don't forget to pass in the
- If unable to push to kitchen then...
- Use the LOKE API to cancel the order.
Using a Tablet or UI to Accept/Reject¶
- Handle the incoming
order.pending
webhook. - Validate the order if required.
- Push the order on the tablet or UI to allow the operator to accept/reject.
- If the user presses accept then...
- Push the order to the kitchen (POS, tablet, or ordering system).
- Upon success, accept the order using LOKEs API
- If the user presses reject then...
- Use the LOKE API to cancel the order.