SMART cash web-adgang

Error in site JavaScript
Web Service Documentation
Service: SMARTCASH
Method: GetTables
Get restaurant tables
Parameters
string: brugernavn
username
Parameter is Required
string: kodeord
password
Parameter is Required
string: tableguid
TabelGuid
Parameter is Optional
int: zone
Zone nr.
Parameter is Optional
Possible Return Data

List: ServiceErrors
ErrorNumber (int)
ErrorPosition (string)
ErrorRecordID (string)
ErrorDescription (string)
ErrorRecomendation (string)
List: ReturnQueue
TQ_TABLEGUID (string)
TQ_TABLENO (int)
TQ_TABLENAME (string)
TQ_BELONGSTODEPARTMENT (int)
TQ_TABLEZONE (int)
TQ_CANBEBOOKED (int)
TQ_TABLESIZE (int)
TQ_RESTAURANTSTATUS (int)
TQ_OVERVIEWPICTURE (int)
TQ_RECEIVEDID (int)
TQ_RESERVATIONSNO (int)
TQ_OPENSALDO (int)
TQ_STARTDATE (string)
TQ_STARTTIME (string)
SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

Example Request

POST /SMARTCASH HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/xml
Content-Type: text/xml
Content-Length: length
SOAPAction: http://sharkspoolhall.dk/GetTables

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetTables xmlns="SMARTCASH">
      <brugernavn>value</brugernavn>
      <kodeord>value</kodeord>
      <tableguid>value</tableguid>
      <zone>value</zone>
    </GetTables>
  </soap:Body>
</soap:Envelope>

Example Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetTables_response xmlns="SMARTCASH">
      <ReturnQueue>
        <TableInfo>
          <TQ_TABLEGUID>value</TQ_TABLEGUID>
          <TQ_TABLENO>value</TQ_TABLENO>
          <TQ_TABLENAME>value</TQ_TABLENAME>
          <TQ_BELONGSTODEPARTMENT>value</TQ_BELONGSTODEPARTMENT>
          <TQ_TABLEZONE>value</TQ_TABLEZONE>
          <TQ_CANBEBOOKED>value</TQ_CANBEBOOKED>
          <TQ_TABLESIZE>value</TQ_TABLESIZE>
          <TQ_RESTAURANTSTATUS>value</TQ_RESTAURANTSTATUS>
          <TQ_OVERVIEWPICTURE>value</TQ_OVERVIEWPICTURE>
          <TQ_RECEIVEDID>value</TQ_RECEIVEDID>
          <TQ_RESERVATIONSNO>value</TQ_RESERVATIONSNO>
          <TQ_OPENSALDO>value</TQ_OPENSALDO>
          <TQ_STARTDATE>value</TQ_STARTDATE>
          <TQ_STARTTIME>value</TQ_STARTTIME>
        </TableInfo>
        <TableInfo>
          <TQ_TABLEGUID>value</TQ_TABLEGUID>
          <TQ_TABLENO>value</TQ_TABLENO>
          <TQ_TABLENAME>value</TQ_TABLENAME>
          <TQ_BELONGSTODEPARTMENT>value</TQ_BELONGSTODEPARTMENT>
          <TQ_TABLEZONE>value</TQ_TABLEZONE>
          <TQ_CANBEBOOKED>value</TQ_CANBEBOOKED>
          <TQ_TABLESIZE>value</TQ_TABLESIZE>
          <TQ_RESTAURANTSTATUS>value</TQ_RESTAURANTSTATUS>
          <TQ_OVERVIEWPICTURE>value</TQ_OVERVIEWPICTURE>
          <TQ_RECEIVEDID>value</TQ_RECEIVEDID>
          <TQ_RESERVATIONSNO>value</TQ_RESERVATIONSNO>
          <TQ_OPENSALDO>value</TQ_OPENSALDO>
          <TQ_STARTDATE>value</TQ_STARTDATE>
          <TQ_STARTTIME>value</TQ_STARTTIME>
        </TableInfo>
      </ReturnQueue>
    </GetTables_response>
  </soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

Example Request

POST /SMARTCASH HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/xml
Content-Type: application/soap+xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
  <soap:Body>
    <GetTables xmlns="SMARTCASH">
      <brugernavn>value</brugernavn>
      <kodeord>value</kodeord>
      <tableguid>value</tableguid>
      <zone>value</zone>
    </GetTables>
  </soap:Body>
</soap:Envelope>

Example Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetTables_response xmlns="SMARTCASH">
      <ReturnQueue>
        <TableInfo>
          <TQ_TABLEGUID>value</TQ_TABLEGUID>
          <TQ_TABLENO>value</TQ_TABLENO>
          <TQ_TABLENAME>value</TQ_TABLENAME>
          <TQ_BELONGSTODEPARTMENT>value</TQ_BELONGSTODEPARTMENT>
          <TQ_TABLEZONE>value</TQ_TABLEZONE>
          <TQ_CANBEBOOKED>value</TQ_CANBEBOOKED>
          <TQ_TABLESIZE>value</TQ_TABLESIZE>
          <TQ_RESTAURANTSTATUS>value</TQ_RESTAURANTSTATUS>
          <TQ_OVERVIEWPICTURE>value</TQ_OVERVIEWPICTURE>
          <TQ_RECEIVEDID>value</TQ_RECEIVEDID>
          <TQ_RESERVATIONSNO>value</TQ_RESERVATIONSNO>
          <TQ_OPENSALDO>value</TQ_OPENSALDO>
          <TQ_STARTDATE>value</TQ_STARTDATE>
          <TQ_STARTTIME>value</TQ_STARTTIME>
        </TableInfo>
        <TableInfo>
          <TQ_TABLEGUID>value</TQ_TABLEGUID>
          <TQ_TABLENO>value</TQ_TABLENO>
          <TQ_TABLENAME>value</TQ_TABLENAME>
          <TQ_BELONGSTODEPARTMENT>value</TQ_BELONGSTODEPARTMENT>
          <TQ_TABLEZONE>value</TQ_TABLEZONE>
          <TQ_CANBEBOOKED>value</TQ_CANBEBOOKED>
          <TQ_TABLESIZE>value</TQ_TABLESIZE>
          <TQ_RESTAURANTSTATUS>value</TQ_RESTAURANTSTATUS>
          <TQ_OVERVIEWPICTURE>value</TQ_OVERVIEWPICTURE>
          <TQ_RECEIVEDID>value</TQ_RECEIVEDID>
          <TQ_RESERVATIONSNO>value</TQ_RESERVATIONSNO>
          <TQ_OPENSALDO>value</TQ_OPENSALDO>
          <TQ_STARTDATE>value</TQ_STARTDATE>
          <TQ_STARTTIME>value</TQ_STARTTIME>
        </TableInfo>
      </ReturnQueue>
    </GetTables_response>
  </soap:Body>
</soap:Envelope>
HTTP POST (XML Response)
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

Example Request

POST /GetTables HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/xml
Content-Type: application/x-www-form-urlencoded
Content-Length: length

brugernavn=value&kodeord=value&tableguid=value&zone=value

Example Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<GetTables_response xmlns="SMARTCASH">
  <ReturnQueue>
    <TableInfo>
      <TQ_TABLEGUID>value</TQ_TABLEGUID>
      <TQ_TABLENO>value</TQ_TABLENO>
      <TQ_TABLENAME>value</TQ_TABLENAME>
      <TQ_BELONGSTODEPARTMENT>value</TQ_BELONGSTODEPARTMENT>
      <TQ_TABLEZONE>value</TQ_TABLEZONE>
      <TQ_CANBEBOOKED>value</TQ_CANBEBOOKED>
      <TQ_TABLESIZE>value</TQ_TABLESIZE>
      <TQ_RESTAURANTSTATUS>value</TQ_RESTAURANTSTATUS>
      <TQ_OVERVIEWPICTURE>value</TQ_OVERVIEWPICTURE>
      <TQ_RECEIVEDID>value</TQ_RECEIVEDID>
      <TQ_RESERVATIONSNO>value</TQ_RESERVATIONSNO>
      <TQ_OPENSALDO>value</TQ_OPENSALDO>
      <TQ_STARTDATE>value</TQ_STARTDATE>
      <TQ_STARTTIME>value</TQ_STARTTIME>
    </TableInfo>
    <TableInfo>
      <TQ_TABLEGUID>value</TQ_TABLEGUID>
      <TQ_TABLENO>value</TQ_TABLENO>
      <TQ_TABLENAME>value</TQ_TABLENAME>
      <TQ_BELONGSTODEPARTMENT>value</TQ_BELONGSTODEPARTMENT>
      <TQ_TABLEZONE>value</TQ_TABLEZONE>
      <TQ_CANBEBOOKED>value</TQ_CANBEBOOKED>
      <TQ_TABLESIZE>value</TQ_TABLESIZE>
      <TQ_RESTAURANTSTATUS>value</TQ_RESTAURANTSTATUS>
      <TQ_OVERVIEWPICTURE>value</TQ_OVERVIEWPICTURE>
      <TQ_RECEIVEDID>value</TQ_RECEIVEDID>
      <TQ_RESERVATIONSNO>value</TQ_RESERVATIONSNO>
      <TQ_OPENSALDO>value</TQ_OPENSALDO>
      <TQ_STARTDATE>value</TQ_STARTDATE>
      <TQ_STARTTIME>value</TQ_STARTTIME>
    </TableInfo>
  </ReturnQueue>
</GetTables_response>
HTTP GET (XML Response)
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

Example Request

GET /GetTables?brugernavn=value&kodeord=value&tableguid=value&zone=value HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/xml

Example Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<GetTables_response xmlns="SMARTCASH">
  <ReturnQueue>
    <TableInfo>
      <TQ_TABLEGUID>value</TQ_TABLEGUID>
      <TQ_TABLENO>value</TQ_TABLENO>
      <TQ_TABLENAME>value</TQ_TABLENAME>
      <TQ_BELONGSTODEPARTMENT>value</TQ_BELONGSTODEPARTMENT>
      <TQ_TABLEZONE>value</TQ_TABLEZONE>
      <TQ_CANBEBOOKED>value</TQ_CANBEBOOKED>
      <TQ_TABLESIZE>value</TQ_TABLESIZE>
      <TQ_RESTAURANTSTATUS>value</TQ_RESTAURANTSTATUS>
      <TQ_OVERVIEWPICTURE>value</TQ_OVERVIEWPICTURE>
      <TQ_RECEIVEDID>value</TQ_RECEIVEDID>
      <TQ_RESERVATIONSNO>value</TQ_RESERVATIONSNO>
      <TQ_OPENSALDO>value</TQ_OPENSALDO>
      <TQ_STARTDATE>value</TQ_STARTDATE>
      <TQ_STARTTIME>value</TQ_STARTTIME>
    </TableInfo>
    <TableInfo>
      <TQ_TABLEGUID>value</TQ_TABLEGUID>
      <TQ_TABLENO>value</TQ_TABLENO>
      <TQ_TABLENAME>value</TQ_TABLENAME>
      <TQ_BELONGSTODEPARTMENT>value</TQ_BELONGSTODEPARTMENT>
      <TQ_TABLEZONE>value</TQ_TABLEZONE>
      <TQ_CANBEBOOKED>value</TQ_CANBEBOOKED>
      <TQ_TABLESIZE>value</TQ_TABLESIZE>
      <TQ_RESTAURANTSTATUS>value</TQ_RESTAURANTSTATUS>
      <TQ_OVERVIEWPICTURE>value</TQ_OVERVIEWPICTURE>
      <TQ_RECEIVEDID>value</TQ_RECEIVEDID>
      <TQ_RESERVATIONSNO>value</TQ_RESERVATIONSNO>
      <TQ_OPENSALDO>value</TQ_OPENSALDO>
      <TQ_STARTDATE>value</TQ_STARTDATE>
      <TQ_STARTTIME>value</TQ_STARTTIME>
    </TableInfo>
  </ReturnQueue>
</GetTables_response>
REST GET (XML Response)
The following is a sample REST request and response. The placeholders shown need to be replaced with actual values.

Example Request

GET /SMARTCASH/GetTables/brugernavnvalue?kodeord=value HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/xml

Example Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<GetTables_response xmlns="SMARTCASH">
  <ReturnQueue>
    <TableInfo>
      <TQ_TABLEGUID>value</TQ_TABLEGUID>
      <TQ_TABLENO>value</TQ_TABLENO>
      <TQ_TABLENAME>value</TQ_TABLENAME>
      <TQ_BELONGSTODEPARTMENT>value</TQ_BELONGSTODEPARTMENT>
      <TQ_TABLEZONE>value</TQ_TABLEZONE>
      <TQ_CANBEBOOKED>value</TQ_CANBEBOOKED>
      <TQ_TABLESIZE>value</TQ_TABLESIZE>
      <TQ_RESTAURANTSTATUS>value</TQ_RESTAURANTSTATUS>
      <TQ_OVERVIEWPICTURE>value</TQ_OVERVIEWPICTURE>
      <TQ_RECEIVEDID>value</TQ_RECEIVEDID>
      <TQ_RESERVATIONSNO>value</TQ_RESERVATIONSNO>
      <TQ_OPENSALDO>value</TQ_OPENSALDO>
      <TQ_STARTDATE>value</TQ_STARTDATE>
      <TQ_STARTTIME>value</TQ_STARTTIME>
    </TableInfo>
    <TableInfo>
      <TQ_TABLEGUID>value</TQ_TABLEGUID>
      <TQ_TABLENO>value</TQ_TABLENO>
      <TQ_TABLENAME>value</TQ_TABLENAME>
      <TQ_BELONGSTODEPARTMENT>value</TQ_BELONGSTODEPARTMENT>
      <TQ_TABLEZONE>value</TQ_TABLEZONE>
      <TQ_CANBEBOOKED>value</TQ_CANBEBOOKED>
      <TQ_TABLESIZE>value</TQ_TABLESIZE>
      <TQ_RESTAURANTSTATUS>value</TQ_RESTAURANTSTATUS>
      <TQ_OVERVIEWPICTURE>value</TQ_OVERVIEWPICTURE>
      <TQ_RECEIVEDID>value</TQ_RECEIVEDID>
      <TQ_RESERVATIONSNO>value</TQ_RESERVATIONSNO>
      <TQ_OPENSALDO>value</TQ_OPENSALDO>
      <TQ_STARTDATE>value</TQ_STARTDATE>
      <TQ_STARTTIME>value</TQ_STARTTIME>
    </TableInfo>
  </ReturnQueue>
</GetTables_response>
HTTP POST (JSON)
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

Example Request

POST /GetTables HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/json
Content-Type: application/json
Content-Length: length

{
  "brugernavn" : "value",
  "kodeord" : "value",
  "tableguid" : "value",
  "zone" : "value"
}

Example Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: length

{
  "GetTables_response" : {
    "ReturnQueue" : [
      {
        "TQ_TABLEGUID" : "value",
        "TQ_TABLENO" : value,
        "TQ_TABLENAME" : "value",
        "TQ_BELONGSTODEPARTMENT" : value,
        "TQ_TABLEZONE" : value,
        "TQ_CANBEBOOKED" : value,
        "TQ_TABLESIZE" : value,
        "TQ_RESTAURANTSTATUS" : value,
        "TQ_OVERVIEWPICTURE" : value,
        "TQ_RECEIVEDID" : value,
        "TQ_RESERVATIONSNO" : value,
        "TQ_OPENSALDO" : value,
        "TQ_STARTDATE" : "value",
        "TQ_STARTTIME" : "value"
      }
    ]
  }
}
HTTP GET (JSON Response)
The following is a sample JSON GET request and response. The placeholders shown need to be replaced with actual values.

Example Request

GET /GetTables?brugernavn=value&kodeord=value HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/json

Example Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: length

{
  "GetTables_response" : {
    "ReturnQueue" : [
      {
        "TQ_TABLEGUID" : "value",
        "TQ_TABLENO" : value,
        "TQ_TABLENAME" : "value",
        "TQ_BELONGSTODEPARTMENT" : value,
        "TQ_TABLEZONE" : value,
        "TQ_CANBEBOOKED" : value,
        "TQ_TABLESIZE" : value,
        "TQ_RESTAURANTSTATUS" : value,
        "TQ_OVERVIEWPICTURE" : value,
        "TQ_RECEIVEDID" : value,
        "TQ_RESERVATIONSNO" : value,
        "TQ_OPENSALDO" : value,
        "TQ_STARTDATE" : "value",
        "TQ_STARTTIME" : "value"
      }
    ]
  }
}
REST GET (JSON Response)
The following is a sample REST request and response. The placeholders shown need to be replaced with actual values.

Example Request

GET /SMARTCASH/GetTables/brugernavnvalue?kodeord=value HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/json

Example Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: length

{
  "GetTables_response" : {
    "ReturnQueue" : [
      {
        "TQ_TABLEGUID" : "value",
        "TQ_TABLENO" : value,
        "TQ_TABLENAME" : "value",
        "TQ_BELONGSTODEPARTMENT" : value,
        "TQ_TABLEZONE" : value,
        "TQ_CANBEBOOKED" : value,
        "TQ_TABLESIZE" : value,
        "TQ_RESTAURANTSTATUS" : value,
        "TQ_OVERVIEWPICTURE" : value,
        "TQ_RECEIVEDID" : value,
        "TQ_RESERVATIONSNO" : value,
        "TQ_OPENSALDO" : value,
        "TQ_STARTDATE" : "value",
        "TQ_STARTTIME" : "value"
      }
    ]
  }
}