Skip to main content

Get Session

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

The GetSession operation requests information about a single session. The session can be currently active, or it can be a previous, finished session. To retrieve information about multiple specified sessions, use ListSessions.

All parameters included in the GetSession request are mandatory.

  1. Receive a getSessionRequest message from Dojo.
  2. If the specified session does not exist, the EPOS should send an Error response with the code SESSION_NO_SUCH_SESSION.
  3. Otherwise, if the session exists, the EPOS should respond with a getSessionResponse message.
{
"jsonrpc": "2.0",
"id": "434f4e2f-6cde-48b3-8c77-050e25a77955",
"method": "GetSession",
"params": {
"sessionId": "c1d071aa-fc82-47cb-8ffd-d873915dbc04",
"requestorInfo": {
"requestorType": "REQUESTOR_TYPE_CARD_MACHINE",
"cardMachineRequestorInfo": {
"terminalId": "123123",
"waiterId": 1
}
}
}
}