Skip to content

Order Ahead Addons

Configuration

  1. Sort out OAuth
  2. Fetch locations to do location mapping
  3. Push available tables to Tables API for each configured location
  4. Push current menu to Menu API for each configured location
  5. 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.

  1. 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.
  2. 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.
  3. Push the order to the kitchen (POS, tablet, or ordering system).
  4. Upon success, accept the order using LOKEs API.
    • Don't forget to pass in the refId, and optionally the terminalId. This will assist in debugging order problems.
    • If you don't call accept on the order it will be refunded.
  5. If unable to push to kitchen then...

Using a Tablet or UI to Accept/Reject

  1. Handle the incoming order.pending webhook.
  2. Validate the order if required.
  3. Push the order on the tablet or UI to allow the operator to accept/reject.
  4. 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
  5. If the user presses reject then...
    • Use the LOKE API to cancel the order.