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 Field Type Notes restaurantobject Fields Field Type Notes idstring namestring slugstring
keyobject Fields Field Type Notes 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 Field Type Notes idstring (uuid) namestring slugstring statusstring timezonestring currencystring addressobject Fields Field Type Notes line1string line2 optional string 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 path string (uuid) Required. The location's id
Answer 200: LocationStatus Field Type Notes 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 path string (uuid) Required. The location's id
Body Field Type Notes pause optional object Fields Field Type Notes service"delivery" | "collection" | "dine_in" minutesinteger or null
busyExtraMinutes optional integer 0 to 120.
Answer 200: LocationStatus Field Type Notes 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 query string (uuid) state query "placed" | "accepted" | "preparing" | "ready" | "out_for_delivery" | "completed" | "rejected" | "cancelled" since query string (date-time) limit query integer Default 50. 1 to 100.
Answer 200: array of Order Field Type Notes 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" placedAtstring ISO 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 Field Type Notes amountinteger currencystring Up to 3 characters.
discountobject Fields Field Type Notes amountinteger currencystring Up to 3 characters.
feesobject Fields Field Type Notes amountinteger currencystring Up to 3 characters.
taxobject Fields Field Type Notes amountinteger currencystring Up to 3 characters.
tipobject Fields Field Type Notes amountinteger currencystring Up to 3 characters.
totalobject Fields Field Type Notes amountinteger currencystring Up to 3 characters.
customerobject Fields Field Type Notes idstring (uuid) or null namestring phonestring or null emailstring or null
deliveryAddressobject or null tableLabelstring or null notestring or null linesarray of object Fields Field Type Notes 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 path string (uuid) Required. The order's id
Answer 200: Order Field Type Notes 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" placedAtstring ISO 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 Field Type Notes amountinteger currencystring Up to 3 characters.
discountobject Fields Field Type Notes amountinteger currencystring Up to 3 characters.
feesobject Fields Field Type Notes amountinteger currencystring Up to 3 characters.
taxobject Fields Field Type Notes amountinteger currencystring Up to 3 characters.
tipobject Fields Field Type Notes amountinteger currencystring Up to 3 characters.
totalobject Fields Field Type Notes amountinteger currencystring Up to 3 characters.
customerobject Fields Field Type Notes idstring (uuid) or null namestring phonestring or null emailstring or null
deliveryAddressobject or null tableLabelstring or null notestring or null linesarray of object Fields Field Type Notes 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 path string (uuid) Required. The order's id
Body Field Type Notes event"accept" | "reject" | "start_preparing" | "mark_ready" | "dispatch" | "return_to_kitchen" | "complete" | "cancel" | "recall" prepMinutes optional integer 1 to 240. reason optional string Up to 300 characters.
Answer 200: Order Field Type Notes 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" placedAtstring ISO 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 Field Type Notes amountinteger currencystring Up to 3 characters.
discountobject Fields Field Type Notes amountinteger currencystring Up to 3 characters.
feesobject Fields Field Type Notes amountinteger currencystring Up to 3 characters.
taxobject Fields Field Type Notes amountinteger currencystring Up to 3 characters.
tipobject Fields Field Type Notes amountinteger currencystring Up to 3 characters.
totalobject Fields Field Type Notes amountinteger currencystring Up to 3 characters.
customerobject Fields Field Type Notes idstring (uuid) or null namestring phonestring or null emailstring or null
deliveryAddressobject or null tableLabelstring or null notestring or null linesarray of object Fields Field Type Notes itemIdstring (uuid) or null namestring variantNamestring quantityinteger unitPriceobject lineTotalobject modifiersarray of string allergensarray of string notestring 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 query integer Default 100. 1 to 200. since query string (date-time)
Answer 200: array of Customer Field Type Notes idstring (uuid) namestring emailstring or null phonestring or null consentobject Fields Field Type Notes emailboolean smsboolean whatsappboolean
createdAtstring ISO 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 Field Type Notes 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 createdAtstring ISO 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 Field Type Notes 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 optional string Default "Added through the API". Up to 120 characters.
Answer 201: WebhookSubscription Field Type Notes 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 createdAtstring ISO 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 path string (uuid) Required. The webhook endpoint's id
Answer 200: object Field Type Notes deleted optional boolean
Next: receive events with webhooks .