Skip to main content

List Sessions

Pay at Table integrations are currently standalone from Pay at Counter and Online payments. This is because the current version of the Tables API uses an asynchronous WebSocket protocol for its messaging.

The ListSessions operation requests a list of multiple sessions.

If filtering parameters have been specified, the response from the EPOS should contain only those sessions that satisfy all specified filters. If no sessions match the filters, the EPOS will return an empty list. If no parameters are set, the response will include all sessions stored on the EPOS.

  1. Receive a listSessionsRequest from Dojo.
  2. The EPOS should respond with a listSessionsResponse.

In the following example, the isPayable and hasTable booleans are set to true, while isFinished is set to false. This indicates that the request is searching for sessions that are seated, have ordered items, but have not yet paid for their meals.

{
"jsonrpc": "2.0",
"id": "9420313f-91ff-49b9-af9e-33977426daaa",
"method": "ListSessions",
"params": {
"isFinished": false,
"hasTable": true,
"isPayable": true,
"tableNames": [],
"requestorInfo": {
"requestorType": "REQUESTOR_TYPE_CARD_MACHINE",
"cardMachineRequestorInfo": {
"terminalId": [],
"waiterId": 1
}
}
}
}