Orders
List orders
The orders placed through the API, newest first, a page at a time.
/public/v1/ordersLists the orders the API placed at the venues the key reaches, whichever of the venue's keys placed them: an order placed with a key that has since been replaced is still listed. Orders the venue hid from its own order list are left out; they can still be read by id. Each item is the same body GET /orders/{orderId} returns.
Read a page at a time: while nextCursor is not null, ask again with cursor set to it. The list is newest first, so an order placed while you are paging moves every later page along by one: an order can then appear on two pages, never on none.
Parameters
venueIdstring · uuidQuery parameterOnly this venue's orders. A headquarter's key can name one of its branches; leave it out to list the orders of every venue the key reaches.
statusstringQuery parameterWhich orders: open (neither closed nor cancelled, the default), closed or all.
Default: Open
Values:OpenClosedAll
cursorintegerQuery parameterThe page to read, counted from 1. Take it from nextCursor of the previous page.
Default: 1
pageSizeintegerQuery parameterOrders per page: 1 to 100, 50 by default.
Default: 50
Accept-LanguagestringHeaderThe language of userMessage in an error: tr (the default), en, de, fr, it, es, ar or ru. The first language in the header decides, without its region (en-US reads as en) and without weighing q values; a language Cibusy does not offer is answered in Turkish. It does not choose the language of a menu: that is lang on the menu call.
Responses
One page of orders.
INVALID_PAGE_NUMBER, INVALID_PAGE_SIZE, or VALIDATION_ERROR for a status that is not one of the three.
The X-Api-Key header is missing (PUBLIC_API_KEY_MISSING), or the key is invalid or has been revoked (PUBLIC_API_KEY_INVALID).
PUBLIC_API_SCOPE_MISSING: the key was not made with the "Can send orders" permission.
PUBLIC_API_VENUE_NOT_FOUND: venueId is not a venue this key can reach.
The key's budget of about 120 requests a minute is spent; wait Retry-After seconds.
Retry-AfterSeconds to wait. The next one-minute window opens within it.
The data of a successful answer
One page of the orders placed through the API, newest first.
itemsobject[]The page's orders. At most pageSize of them; empty past the last page.
Fields of Order
idstring · uuidThe order's id. Use it with GET /orders/{orderId}.
numberintegerThe number the venue calls the order by, counted from 1 within the venue. Show it to the customer; it is the one printed on the kitchen ticket. Unique within one venue only.
venueIdstring · uuidThe venue the order was placed at.
typestringHow the order reaches the diner.
DineIn- At a table: the round is added to the table's open bill, or opens one.
Takeaway- Takeaway: the customer collects it at the venue.
Delivery- Delivery: the venue brings it to the customer.
statusstringWhere the order has got to, worked out from the order's lines and its bill on every read.
Received- The venue has the order and the kitchen has not started.
Preparing- The kitchen has started on at least one line.
Ready- Every line is ready or already served.
Served- Every line on it is served.
OnTheWay- A delivery has left the venue.
Completed- The venue closed the bill.
Cancelled- The order was voided, or every line on it was struck off.
paymentStatusstringHow much of the bill has been paid at the venue.
Unpaid- Nothing has been paid at the venue.
PartiallyPaid- Part of the bill has been paid.
Paid- The bill is settled.
tableobjectnullableThe table, for a dine-in order. null for a takeaway or a delivery.
Fields of Order table
idstring · uuidThe table's id, as GET /venues/{venueId}/tables lists it.
namestringThe table's name.
customerobjectnullableWho the order is for, for a takeaway or a delivery. null for a dine-in order, and for an order nobody took the customer's details for.
Fields of Customer details
namestringnullableThe customer's name.
phonestringnullableThe customer's phone number, in international form.
addressstringnullableWhere a delivery goes.
paymentMethodstringnullableHow the customer said they would pay, if they said. null otherwise.
Cash- Cash.
Card- Card.
MealCard- Meal card.
notestringnullableThe note for the kitchen the order was placed with. null when there was none.
linesobject[]Every line on the order, including lines other people put on a table's bill and lines since cancelled. For a dine-in order that joined a bill that was already open, the lines of the whole bill are here: the addedLineIds of the placement answer say which of them that call wrote.
Fields of Order line
idstring · uuidThe line's id. Stays the same for as long as the line is on the order.
productIdstring · uuidThe product, as the menu lists it.
productNamestringThe product's name in the venue's own words.
portionIdstring · uuidnullableThe portion ordered, as the menu lists it.
portionNamestringnullableThe portion's name as it read when the order was placed.
quantityintegerHow many of it.
unitPricenumberThe price of one unit, extras included, as it was when the order was placed.
totalnumberWhat the line comes to: unitPrice × quantity, before campaigns. 0 for a cancelled line and for one the venue gave away.
statusstringWhere the line has got to in the kitchen.
Pending- Waiting in the kitchen.
Preparing- Being prepared.
Ready- Ready.
Served- Served.
Cancelled- Cancelled. The lines of a cancelled order read this way too.
extrasobject[]The extras on each unit.
Fields of Line extra
idstring · uuidThe extra, as the menu lists it.
namestringThe extra's name.
pricenumberWhat it cost per unit when the order was placed.
removedIngredientsobject[]The ingredients left out of each unit.
Fields of Removed ingredient
idstring · uuidThe ingredient, as the menu lists it.
namestringThe ingredient's name.
notestringnullableThe note for the kitchen about this line. null when there was none.
orderedAtstring · date-timeWhen the line was put on the order, in UTC.
totalsobjectWhat the order comes to, and how much of it is paid.
Fields of Totals
subtotalnumberThe lines at menu price with their extras, before campaigns. Cancelled lines are not counted.
discountnumberWhat the venue's campaigns and discounts take off.
serviceFeenumberThe venue's service fee, charged on the food after campaigns. 0 when the venue charges none.
totalnumberWhat the order comes to.
paidnumberHow much of it has been paid at the venue.
remainingnumberHow much is still owed. 0 once the bill is paid.
currencystringThe currency of every amount, an ISO 4217 code. Always TRY.
createdAtstring · date-timeWhen the order was placed, in UTC.
closedAtstring · date-timenullableWhen the venue closed the order, in UTC. null while it is open, and for a cancelled order.
nextCursorintegernullableThe cursor to send for the next page, or null when this is the last. A cursor is a page number, counted from 1.