API reference

Version 1.0.0. Base address https://api.pentaorder.com. Send Authorization: Bearer po_live_… with every request. Bodies and answers are JSON; money is integer minor units with a currency.

Machine-readable: openapi.json (OpenAPI 3.1). Errors are { "error": { "code", "message" } } with a message you can show to restaurant staff. Common answers: 401 key missing or revoked, 402 plan doesn't include the API, 403 key lacks the permission, 404 not found, 409 the order can't make that change, 429 too many requests (see retry-after).

Account

get/v1/api/me

Check a key. The restaurant and permissions of the key you sent. Zapier uses this to test a connection.

Any valid key
Answer 200: Me
FieldTypeNotes
restaurantobject
Fields
FieldTypeNotes
idstring
namestring
slugstring
keyobject
Fields
FieldTypeNotes
idstring (uuid)
namestring
prefixstring
scopesarray of "orders:read" | "orders:write" | "menu:read" | "menu:write" | "customers:read" | "locations:read" | "locations:write" | "webhooks:manage"

Locations

get/v1/api/locations

List locations. Every location of the restaurant.

Permission: locations:read
Answer 200: array of Location
FieldTypeNotes
idstring (uuid)
namestring
slugstring
statusstring
timezonestring
currencystring
addressobject
Fields
FieldTypeNotes
line1string
line2 optionalstring
citystring
postcodestring
phonestring or null

get/v1/api/locations/{locationId}/status

Get store status. Which services are paused and how many busy minutes are added to every quote.

Permission: locations:read

Parameters

locationId pathstring (uuid)Required. The location's id
Answer 200: LocationStatus
FieldTypeNotes
locationIdstring (uuid)
pausedUntilobject
busyExtraMinutesinteger

patch/v1/api/locations/{locationId}/status

Pause or set busy. Pause delivery, collection or dine-in for a number of minutes (null resumes now), or set busy minutes.

Permission: locations:write

Parameters

locationId pathstring (uuid)Required. The location's id

Body

FieldTypeNotes
pause optionalobject
Fields
FieldTypeNotes
service"delivery" | "collection" | "dine_in"
minutesinteger or null
busyExtraMinutes optionalinteger0 to 120.
Answer 200: LocationStatus
FieldTypeNotes
locationIdstring (uuid)
pausedUntilobject
busyExtraMinutesinteger

Orders

get/v1/api/orders

List orders. Orders newest first. Card orders appear once paid. Filter by location, state or time.

Permission: orders:read

Parameters

locationId querystring (uuid)
state query"placed" | "accepted" | "preparing" | "ready" | "out_for_delivery" | "completed" | "rejected" | "cancelled"
since querystring (date-time)
limit queryintegerDefault 50. 1 to 100.
Answer 200: array of Order
FieldTypeNotes
idstring (uuid)
numberinteger
locationIdstring (uuid)
state"placed" | "accepted" | "preparing" | "ready" | "out_for_delivery" | "completed" | "rejected" | "cancelled"
fulfilment"delivery" | "collection" | "dine_in"
channel"website" | "app" | "widget" | "qr_table" | "phone" | "kiosk" | "marketplace"
placedAtstringISO 8601 date and time
acceptedAtstring or null
readyAtstring or null
completedAtstring or null
scheduledForstring or null
prepMinutesinteger or null
paymentMethod"card" | "cash" | "pay_at_counter"
paymentStatusstring
subtotalobject
Fields
FieldTypeNotes
amountinteger
currencystringUp to 3 characters.
discountobject
Fields
FieldTypeNotes
amountinteger
currencystringUp to 3 characters.
feesobject
Fields
FieldTypeNotes
amountinteger
currencystringUp to 3 characters.
taxobject
Fields
FieldTypeNotes
amountinteger
currencystringUp to 3 characters.
tipobject
Fields
FieldTypeNotes
amountinteger
currencystringUp to 3 characters.
totalobject
Fields
FieldTypeNotes
amountinteger
currencystringUp to 3 characters.
customerobject
Fields
FieldTypeNotes
idstring (uuid) or null
namestring
phonestring or null
emailstring or null
deliveryAddressobject or null
tableLabelstring or null
notestring or null
linesarray of object
Fields
FieldTypeNotes
itemIdstring (uuid) or null
namestring
variantNamestring
quantityinteger
unitPriceobject
lineTotalobject
modifiersarray of string
allergensarray of string
notestring or null

get/v1/api/orders/{orderId}

Get an order. One order with its lines, allergens and totals.

Permission: orders:read

Parameters

orderId pathstring (uuid)Required. The order's id
Answer 200: Order
FieldTypeNotes
idstring (uuid)
numberinteger
locationIdstring (uuid)
state"placed" | "accepted" | "preparing" | "ready" | "out_for_delivery" | "completed" | "rejected" | "cancelled"
fulfilment"delivery" | "collection" | "dine_in"
channel"website" | "app" | "widget" | "qr_table" | "phone" | "kiosk" | "marketplace"
placedAtstringISO 8601 date and time
acceptedAtstring or null
readyAtstring or null
completedAtstring or null
scheduledForstring or null
prepMinutesinteger or null
paymentMethod"card" | "cash" | "pay_at_counter"
paymentStatusstring
subtotalobject
Fields
FieldTypeNotes
amountinteger
currencystringUp to 3 characters.
discountobject
Fields
FieldTypeNotes
amountinteger
currencystringUp to 3 characters.
feesobject
Fields
FieldTypeNotes
amountinteger
currencystringUp to 3 characters.
taxobject
Fields
FieldTypeNotes
amountinteger
currencystringUp to 3 characters.
tipobject
Fields
FieldTypeNotes
amountinteger
currencystringUp to 3 characters.
totalobject
Fields
FieldTypeNotes
amountinteger
currencystringUp to 3 characters.
customerobject
Fields
FieldTypeNotes
idstring (uuid) or null
namestring
phonestring or null
emailstring or null
deliveryAddressobject or null
tableLabelstring or null
notestring or null
linesarray of object
Fields
FieldTypeNotes
itemIdstring (uuid) or null
namestring
variantNamestring
quantityinteger
unitPriceobject
lineTotalobject
modifiersarray of string
allergensarray of string
notestring or null

patch/v1/api/orders/{orderId}/state

Change an order's state. Send an event: accept (with prepMinutes), reject (with reason), start_preparing, mark_ready, dispatch, complete, cancel or recall. Changes follow the same rules as the order tablet; an impossible change answers 409.

Permission: orders:write

Parameters

orderId pathstring (uuid)Required. The order's id

Body

FieldTypeNotes
event"accept" | "reject" | "start_preparing" | "mark_ready" | "dispatch" | "return_to_kitchen" | "complete" | "cancel" | "recall"
prepMinutes optionalinteger1 to 240.
reason optionalstringUp to 300 characters.
Answer 200: Order
FieldTypeNotes
idstring (uuid)
numberinteger
locationIdstring (uuid)
state"placed" | "accepted" | "preparing" | "ready" | "out_for_delivery" | "completed" | "rejected" | "cancelled"
fulfilment"delivery" | "collection" | "dine_in"
channel"website" | "app" | "widget" | "qr_table" | "phone" | "kiosk" | "marketplace"
placedAtstringISO 8601 date and time
acceptedAtstring or null
readyAtstring or null
completedAtstring or null
scheduledForstring or null
prepMinutesinteger or null
paymentMethod"card" | "cash" | "pay_at_counter"
paymentStatusstring
subtotalobject
Fields
FieldTypeNotes
amountinteger
currencystringUp to 3 characters.
discountobject
Fields
FieldTypeNotes
amountinteger
currencystringUp to 3 characters.
feesobject
Fields
FieldTypeNotes
amountinteger
currencystringUp to 3 characters.
taxobject
Fields
FieldTypeNotes
amountinteger
currencystringUp to 3 characters.
tipobject
Fields
FieldTypeNotes
amountinteger
currencystringUp to 3 characters.
totalobject
Fields
FieldTypeNotes
amountinteger
currencystringUp to 3 characters.
customerobject
Fields
FieldTypeNotes
idstring (uuid) or null
namestring
phonestring or null
emailstring or null
deliveryAddressobject or null
tableLabelstring or null
notestring or null
linesarray of object
Fields
FieldTypeNotes
itemIdstring (uuid) or null
namestring
variantNamestring
quantityinteger
unitPriceobject
lineTotalobject
modifiersarray of string
allergensarray of string
notestring or null

get/v1/api/menu

Get the menu. Categories and dishes with prices (minor units), the 14 UK allergens and sold-out status.

Permission: menu:read
Answer 200: Menu
FieldTypeNotes
currencystring
categoriesarray of object
Fields
FieldTypeNotes
idstring (uuid)
namestring
itemIdsarray of string (uuid)
itemsarray of object
Fields
FieldTypeNotes
idstring (uuid)
namestring
descriptionstring or null
imageUrlstring or null
allergensarray of "celery" | "gluten" | "crustaceans" | "eggs" | "fish" | "lupin" | "milk" | "molluscs" | "mustard" | "tree_nuts" | "peanuts" | "sesame" | "soya" | "sulphites"
dietaryarray of string
soldOutboolean
soldOutUntilstring or null
variantsarray of object

patch/v1/api/menu/items/{itemId}/availability

Mark a dish sold out or back on. Sold out "today" comes back at 05:00 tomorrow; "indefinitely" stays off until turned back on.

Permission: menu:write

Parameters

itemId pathstring (uuid)Required. The dish's id

Body

FieldTypeNotes
isAvailableboolean
until optional"today" | "indefinitely"Default "indefinitely".
Answer 200: ItemAvailability
FieldTypeNotes
idstring (uuid)
soldOutboolean
soldOutUntilstring or null

Customers

get/v1/api/customers

List customers. Customers newest first. Email is included only if the customer agreed to email, and phone only if they agreed to texts or WhatsApp.

Permission: customers:read

Parameters

limit queryintegerDefault 100. 1 to 200.
since querystring (date-time)
Answer 200: array of Customer
FieldTypeNotes
idstring (uuid)
namestring
emailstring or null
phonestring or null
consentobject
Fields
FieldTypeNotes
emailboolean
smsboolean
whatsappboolean
createdAtstringISO 8601 date and time

Webhooks

get/v1/api/webhooks

List webhook endpoints. Every webhook endpoint of the restaurant.

Permission: webhooks:manage
Answer 200: array of WebhookEndpoint
FieldTypeNotes
idstring (uuid)
urlstring
eventsarray of "order.created" | "order.accepted" | "order.preparing" | "order.ready" | "order.out_for_delivery" | "order.completed" | "order.cancelled" | "order.rejected" | "menu.item.updated" | "customer.created"
activeboolean
descriptionstring
createdAtstringISO 8601 date and time

post/v1/api/webhooks

Subscribe to events. Add an https endpoint for one or more events. The response holds the signing secret, shown only once.

Permission: webhooks:manage

Body

FieldTypeNotes
urlstring (uri)Up to 500 characters.
eventsarray of "order.created" | "order.accepted" | "order.preparing" | "order.ready" | "order.out_for_delivery" | "order.completed" | "order.cancelled" | "order.rejected" | "menu.item.updated" | "customer.created"
description optionalstringDefault "Added through the API". Up to 120 characters.
Answer 201: WebhookSubscription
FieldTypeNotes
idstring (uuid)
urlstring
eventsarray of "order.created" | "order.accepted" | "order.preparing" | "order.ready" | "order.out_for_delivery" | "order.completed" | "order.cancelled" | "order.rejected" | "menu.item.updated" | "customer.created"
activeboolean
descriptionstring
createdAtstringISO 8601 date and time
secretstring

delete/v1/api/webhooks/{webhookId}

Unsubscribe. Remove a webhook endpoint. Deliveries still queued for it are dropped.

Permission: webhooks:manage

Parameters

webhookId pathstring (uuid)Required. The webhook endpoint's id
Answer 200: object
FieldTypeNotes
deleted optionalboolean

Next: receive events with webhooks.