Skip to main content

Get Bill Items

The Tables API is now archived. For up-to-date Pay at Table integrations, please use the Dojo API and EPOS Data API:

The GetBillItems operation retrieves information about the bill items attached to a session from the EPOS. It is not a full bill, because it does not include additional assets like logos and other receipt configuration.

A waiter could make a GetBillItems request in any situation where they need to check the current bill without printing a physical receipt.

At the end of a session, when a table of customers is ready to pay for a meal, a waiter will use a Dojo card machine to subscribe to GetBillItems and send a request to the EPOS system:

  1. The Dojo system subscribes to the GetBillItems operation, providing the session ID and requestor information in the getBillItemsRequest.
  2. If the specified session does not exist, the EPOS responds with a SESSION_NO_SUCH_SESSION error.
  3. If the session exists but no bill is associated with it, the EPOS responds with a BILL_NO_SUCH_BILL error.
  4. If both the session and the bill exist and match, the EPOS responds with a PUB message.
{
"jsonrpc": "2.0",
"id": "123e4567-e89b-12d3-a456-426614174000",
"method": "GetBillItems",
"params": {
"sessionId": "123e4567-e89b-12d3-a456-426614174000",
"requestorInfo": {
"requestorType": "REQUESTOR_TYPE_CARD_MACHINE",
"cardMachineRequestorInfo": {
"terminalId": "123123",
"waiterId": 1
}
}
}
}