Skip to the content
Xeniola Xeniola
Xeniola Xeniola
Developers

An API for your menu, orders and bookings

Your website or ordering app reads the menu, places orders and books tables. Keys you can revoke, creates that are safe to send twice, and signed webhooks.

Two restaurant staff seen from behind look at a laptop on the bar counter

✓A key works for one restaurant only

What the API covers

Menu
GET /api/v1/menu gives dishes, prices and options. GET /api/v1/menu/availability says what is on now.
Orders
POST /api/v1/orders places a takeaway or delivery order. It waits on the order board for staff to accept, unless the key may send orders straight to the kitchen.
Order status
GET /api/v1/orders/{id} follows an order the same key placed.
Delivery quote
GET /api/v1/delivery/quote?pinCode= gives the fee and time for a PIN code.
Bookings
GET /api/v1/reservations/slots lists free slots for a day and a party size. POST /api/v1/reservations books the table.

Every endpoint, with its fields and a Try it button, is in the API reference. The OpenAPI document is there too.

A waiter writes down an order for two guests
Keys

A key for each website or app, with only what it needs

  • ✓Made under Integrations. Choose what the key may do: read the menu, place orders, read order status, quote delivery, book tables. You copy it once, when it is made.
  • ✓Sent from your server. As Authorization: Bearer xen_live_…, never from a browser. Revoking a key refuses its next call, at once. Each key may make 120 calls a minute.
A café worker hands a paper takeaway bag across the counter
Safe to send twice

A retried order is not a second order

  • ✓Idempotency-Key. Every create carries one. Send the same key again and you get the first result back, not a new order or booking.
  • ✓Refusals in words. A refused call answers 422 with error.code, error.message and error.field. Every call is in the request log for 30 days.
Chefs plating a row of dishes at the pass
Webhooks

Hear about paid bills and new bookings as they happen

  • ✓Six events. order.created, order.paid, invoice.issued, invoice.cancelled, reservation.created and delivery.changed.
  • ✓Signed and retried. X-Pos-Signature holds a timestamp and an HMAC-SHA256 of it and the body. A failed send is tried again, up to eight times over about two days. Send a test or replay a delivery from its page.

Your website, the same menu as the till

Change a price once and the API gives the new one.

Open the reference

In every plan

The API and webhooks are in the one price, with every other module.