Skip to main content

Cashier

7 API calls in this section.

List Tables (Cashier)​

Restaurant Menu / Cashier
GET/restaurant/cashier/tables

Show the tables at a restaurant location in the cashier workspace.

Query parameters

ParameterTypeDescription
location_idstring

Example: {{location_id}}

pagestring

Example: 1

limitstring

Example: 10

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Staging
Request
curl
1curl --globoff --request GET "https://staging-api.ondi.io/functions/v1/restaurant/cashier/tables?location_id=${LOCATION_ID}&page=1&limit=10" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"

Response examples

No saved response example. Use Try it to inspect a staging response.

List Dine-In Orders (Cashier)​

Restaurant Menu / Cashier
GET/restaurant/cashier/orders/dine-in

Browse dine-in orders at a location, with status and pagination filters for the cashier view.

Query parameters

ParameterTypeDescription
location_idstring

Example: {{location_id}}

statusstring—
pagestring

Example: 1

limitstring

Example: 10

appendstring

Example: false

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Staging
Request
curl
1curl --globoff --request GET "https://staging-api.ondi.io/functions/v1/restaurant/cashier/orders/dine-in?location_id=${LOCATION_ID}&status=&page=1&limit=10&append=false" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"

Response examples

No saved response example. Use Try it to inspect a staging response.

List Takeout Orders (Cashier)​

Restaurant Menu / Cashier
GET/restaurant/cashier/orders/takeout

Browse takeout orders at a location for cashier processing.

Query parameters

ParameterTypeDescription
location_idstring

Example: {{location_id}}

statusstring—
pagestring

Example: 1

limitstring

Example: 10

appendstring

Example: false

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Staging
Request
curl
1curl --globoff --request GET "https://staging-api.ondi.io/functions/v1/restaurant/cashier/orders/takeout?location_id=${LOCATION_ID}&status=&page=1&limit=10&append=false" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"

Response examples

No saved response example. Use Try it to inspect a staging response.

List Delivery Orders (Cashier)​

Restaurant Menu / Cashier
GET/restaurant/cashier/orders/delivery

Returns delivery orders including delivery_status_timeline

[{ status, from_status, at }].

Query parameters

ParameterTypeDescription
location_idstring

Example: {{location_id}}

statusstring—
pagestring

Example: 1

limitstring

Example: 10

appendstring

Example: false

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Staging
Request
curl
1curl --globoff --request GET "https://staging-api.ondi.io/functions/v1/restaurant/cashier/orders/delivery?location_id=${LOCATION_ID}&status=&page=1&limit=10&append=false" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"

Response examples

No saved response example. Use Try it to inspect a staging response.

Get Order Detail (Cashier)​

Restaurant Menu / Cashier
GET/restaurant/cashier/orders/:orderId

Returns order detail including delivery_status_timeline

[{ status, from_status, at }].

Path parameters

ParameterTypeDescription
orderIdRequiredstring

Dynamic path value from the request URL.

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Staging
Request
curl
1curl --globoff --request GET "https://staging-api.ondi.io/functions/v1/restaurant/cashier/orders/${ORDERID}" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"

Response examples

No saved response example. Use Try it to inspect a staging response.

Mark Pay-At-Counter Order Paid​

Restaurant Menu / Cashier
POST/restaurant/cashier/orders/:orderId/mark-paid

Record payment for an order using pay-at-counter. A pending order becomes approved; an order using another payment method is rejected.

Path parameters

ParameterTypeDescription
orderIdRequiredstring

Dynamic path value from the request URL.

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Staging
Request
curl
1curl --globoff --request POST "https://staging-api.ondi.io/functions/v1/restaurant/cashier/orders/${ORDERID}/mark-paid" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"

Response examples

No saved response example. Use Try it to inspect a staging response.

Close Session​

Restaurant Menu / Cashier
POST/restaurant/cashier/sessions/:sessionId/close

Close a dine-in session and record its closing time.

Path parameters

ParameterTypeDescription
sessionIdRequiredstring

Dynamic path value from the request URL.

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Staging
Request
curl
1curl --globoff --request POST "https://staging-api.ondi.io/functions/v1/restaurant/cashier/sessions/${SESSIONID}/close" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"

Response examples

No saved response example. Use Try it to inspect a staging response.