GET v{version}/OnlineOrders/GetOpenTables

Allows for the the Pos to be queried for live bill data

Request Information

URI Parameters

Name Type Description Additional information
SiteID integer

None.

TableStatus Collection of TableStatusEnum

None.

version string

None.

Body Parameters

None.

Response Information

Resource Description

OpenTablesResult
Name Type Description Additional information
SiteID integer

None.

Tables Collection of TableItem

None.

IsSuccess boolean

None.

Message string

None.

Response Formats

application/json, text/json

Sample:
{
  "SiteID": 1,
  "Tables": [
    {
      "TableNo": 1,
      "TableName": "sample string 2",
      "TableStatus": 0,
      "Transactions": {
        "1": 2.0,
        "3": 4.0
      }
    },
    {
      "TableNo": 1,
      "TableName": "sample string 2",
      "TableStatus": 0,
      "Transactions": {
        "1": 2.0,
        "3": 4.0
      }
    }
  ],
  "IsSuccess": true,
  "Message": "sample string 3"
}

application/xml, text/xml

Sample:
<OpenTablesResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.API.Core.Models.OnlinePayment">
  <IsSuccess>true</IsSuccess>
  <Message>sample string 3</Message>
  <SiteID>1</SiteID>
  <Tables>
    <TableItem>
      <TableName>sample string 2</TableName>
      <TableNo>1</TableNo>
      <TableStatus>TableEmpty</TableStatus>
      <Transactions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfintdecimal>
          <d4p1:Key>1</d4p1:Key>
          <d4p1:Value>2</d4p1:Value>
        </d4p1:KeyValueOfintdecimal>
        <d4p1:KeyValueOfintdecimal>
          <d4p1:Key>3</d4p1:Key>
          <d4p1:Value>4</d4p1:Value>
        </d4p1:KeyValueOfintdecimal>
      </Transactions>
    </TableItem>
    <TableItem>
      <TableName>sample string 2</TableName>
      <TableNo>1</TableNo>
      <TableStatus>TableEmpty</TableStatus>
      <Transactions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfintdecimal>
          <d4p1:Key>1</d4p1:Key>
          <d4p1:Value>2</d4p1:Value>
        </d4p1:KeyValueOfintdecimal>
        <d4p1:KeyValueOfintdecimal>
          <d4p1:Key>3</d4p1:Key>
          <d4p1:Value>4</d4p1:Value>
        </d4p1:KeyValueOfintdecimal>
      </Transactions>
    </TableItem>
  </Tables>
</OpenTablesResult>