SMART cash web-adgang

Error in site JavaScript
Web Service Documentation
Service: SMARTCASH
Method: GetTableItems
Get Sales to a table (items sold)
Parameters
string: brugernavn
username
Parameter is Required
string: kodeord
password
Parameter is Required
string: tableguid
Table guid
Parameter is Required
Possible Return Data

List: ServiceErrors
ErrorNumber (int)
ErrorPosition (string)
ErrorRecordID (string)
ErrorDescription (string)
ErrorRecomendation (string)
Field: TabelTotal
List: ReturnQueue
WEBDETAILS_ITEMLINENO (int)
WEBDETAILS_ITEMTYPE (int)
WEBDETAILS_ITEMNO (int)
WEBDETAILS_ITEMTEXT (string)
WEBDETAILS_ITEMQUANTITY (int)
WEBDETAILS_ITEMPRICE (int)
WEBDETAILS_ITEMDISCOUNT (int)
WEBDETAILS_ITEMTOTAL (int)
WEBDETAILS_ITEMNOTE (string)
WEBDETAILS_ITEMKITCHENORDER (int)
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/GetTableItems

<?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>
    <GetTableItems xmlns="SMARTCASH">
      <brugernavn>value</brugernavn>
      <kodeord>value</kodeord>
      <tableguid>value</tableguid>
    </GetTableItems>
  </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>
    <GetTableItems_response xmlns="SMARTCASH">
      <TabelTotal>value</TabelTotal>
      <ReturnQueue>
        <TabelItemInfo>
          <WEBDETAILS_ITEMLINENO>value</WEBDETAILS_ITEMLINENO>
          <WEBDETAILS_ITEMTYPE>value</WEBDETAILS_ITEMTYPE>
          <WEBDETAILS_ITEMNO>value</WEBDETAILS_ITEMNO>
          <WEBDETAILS_ITEMTEXT>value</WEBDETAILS_ITEMTEXT>
          <WEBDETAILS_ITEMQUANTITY>value</WEBDETAILS_ITEMQUANTITY>
          <WEBDETAILS_ITEMPRICE>value</WEBDETAILS_ITEMPRICE>
          <WEBDETAILS_ITEMDISCOUNT>value</WEBDETAILS_ITEMDISCOUNT>
          <WEBDETAILS_ITEMTOTAL>value</WEBDETAILS_ITEMTOTAL>
          <WEBDETAILS_ITEMNOTE>value</WEBDETAILS_ITEMNOTE>
          <WEBDETAILS_ITEMKITCHENORDER>value</WEBDETAILS_ITEMKITCHENORDER>
        </TabelItemInfo>
        <TabelItemInfo>
          <WEBDETAILS_ITEMLINENO>value</WEBDETAILS_ITEMLINENO>
          <WEBDETAILS_ITEMTYPE>value</WEBDETAILS_ITEMTYPE>
          <WEBDETAILS_ITEMNO>value</WEBDETAILS_ITEMNO>
          <WEBDETAILS_ITEMTEXT>value</WEBDETAILS_ITEMTEXT>
          <WEBDETAILS_ITEMQUANTITY>value</WEBDETAILS_ITEMQUANTITY>
          <WEBDETAILS_ITEMPRICE>value</WEBDETAILS_ITEMPRICE>
          <WEBDETAILS_ITEMDISCOUNT>value</WEBDETAILS_ITEMDISCOUNT>
          <WEBDETAILS_ITEMTOTAL>value</WEBDETAILS_ITEMTOTAL>
          <WEBDETAILS_ITEMNOTE>value</WEBDETAILS_ITEMNOTE>
          <WEBDETAILS_ITEMKITCHENORDER>value</WEBDETAILS_ITEMKITCHENORDER>
        </TabelItemInfo>
      </ReturnQueue>
    </GetTableItems_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>
    <GetTableItems xmlns="SMARTCASH">
      <brugernavn>value</brugernavn>
      <kodeord>value</kodeord>
      <tableguid>value</tableguid>
    </GetTableItems>
  </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>
    <GetTableItems_response xmlns="SMARTCASH">
      <TabelTotal>value</TabelTotal>
      <ReturnQueue>
        <TabelItemInfo>
          <WEBDETAILS_ITEMLINENO>value</WEBDETAILS_ITEMLINENO>
          <WEBDETAILS_ITEMTYPE>value</WEBDETAILS_ITEMTYPE>
          <WEBDETAILS_ITEMNO>value</WEBDETAILS_ITEMNO>
          <WEBDETAILS_ITEMTEXT>value</WEBDETAILS_ITEMTEXT>
          <WEBDETAILS_ITEMQUANTITY>value</WEBDETAILS_ITEMQUANTITY>
          <WEBDETAILS_ITEMPRICE>value</WEBDETAILS_ITEMPRICE>
          <WEBDETAILS_ITEMDISCOUNT>value</WEBDETAILS_ITEMDISCOUNT>
          <WEBDETAILS_ITEMTOTAL>value</WEBDETAILS_ITEMTOTAL>
          <WEBDETAILS_ITEMNOTE>value</WEBDETAILS_ITEMNOTE>
          <WEBDETAILS_ITEMKITCHENORDER>value</WEBDETAILS_ITEMKITCHENORDER>
        </TabelItemInfo>
        <TabelItemInfo>
          <WEBDETAILS_ITEMLINENO>value</WEBDETAILS_ITEMLINENO>
          <WEBDETAILS_ITEMTYPE>value</WEBDETAILS_ITEMTYPE>
          <WEBDETAILS_ITEMNO>value</WEBDETAILS_ITEMNO>
          <WEBDETAILS_ITEMTEXT>value</WEBDETAILS_ITEMTEXT>
          <WEBDETAILS_ITEMQUANTITY>value</WEBDETAILS_ITEMQUANTITY>
          <WEBDETAILS_ITEMPRICE>value</WEBDETAILS_ITEMPRICE>
          <WEBDETAILS_ITEMDISCOUNT>value</WEBDETAILS_ITEMDISCOUNT>
          <WEBDETAILS_ITEMTOTAL>value</WEBDETAILS_ITEMTOTAL>
          <WEBDETAILS_ITEMNOTE>value</WEBDETAILS_ITEMNOTE>
          <WEBDETAILS_ITEMKITCHENORDER>value</WEBDETAILS_ITEMKITCHENORDER>
        </TabelItemInfo>
      </ReturnQueue>
    </GetTableItems_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 /GetTableItems 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

Example Response

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

<?xml version="1.0" encoding="utf-8"?>
<GetTableItems_response xmlns="SMARTCASH">
  <TabelTotal>value</TabelTotal>
  <ReturnQueue>
    <TabelItemInfo>
      <WEBDETAILS_ITEMLINENO>value</WEBDETAILS_ITEMLINENO>
      <WEBDETAILS_ITEMTYPE>value</WEBDETAILS_ITEMTYPE>
      <WEBDETAILS_ITEMNO>value</WEBDETAILS_ITEMNO>
      <WEBDETAILS_ITEMTEXT>value</WEBDETAILS_ITEMTEXT>
      <WEBDETAILS_ITEMQUANTITY>value</WEBDETAILS_ITEMQUANTITY>
      <WEBDETAILS_ITEMPRICE>value</WEBDETAILS_ITEMPRICE>
      <WEBDETAILS_ITEMDISCOUNT>value</WEBDETAILS_ITEMDISCOUNT>
      <WEBDETAILS_ITEMTOTAL>value</WEBDETAILS_ITEMTOTAL>
      <WEBDETAILS_ITEMNOTE>value</WEBDETAILS_ITEMNOTE>
      <WEBDETAILS_ITEMKITCHENORDER>value</WEBDETAILS_ITEMKITCHENORDER>
    </TabelItemInfo>
    <TabelItemInfo>
      <WEBDETAILS_ITEMLINENO>value</WEBDETAILS_ITEMLINENO>
      <WEBDETAILS_ITEMTYPE>value</WEBDETAILS_ITEMTYPE>
      <WEBDETAILS_ITEMNO>value</WEBDETAILS_ITEMNO>
      <WEBDETAILS_ITEMTEXT>value</WEBDETAILS_ITEMTEXT>
      <WEBDETAILS_ITEMQUANTITY>value</WEBDETAILS_ITEMQUANTITY>
      <WEBDETAILS_ITEMPRICE>value</WEBDETAILS_ITEMPRICE>
      <WEBDETAILS_ITEMDISCOUNT>value</WEBDETAILS_ITEMDISCOUNT>
      <WEBDETAILS_ITEMTOTAL>value</WEBDETAILS_ITEMTOTAL>
      <WEBDETAILS_ITEMNOTE>value</WEBDETAILS_ITEMNOTE>
      <WEBDETAILS_ITEMKITCHENORDER>value</WEBDETAILS_ITEMKITCHENORDER>
    </TabelItemInfo>
  </ReturnQueue>
</GetTableItems_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 /GetTableItems?brugernavn=value&kodeord=value&tableguid=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"?>
<GetTableItems_response xmlns="SMARTCASH">
  <TabelTotal>value</TabelTotal>
  <ReturnQueue>
    <TabelItemInfo>
      <WEBDETAILS_ITEMLINENO>value</WEBDETAILS_ITEMLINENO>
      <WEBDETAILS_ITEMTYPE>value</WEBDETAILS_ITEMTYPE>
      <WEBDETAILS_ITEMNO>value</WEBDETAILS_ITEMNO>
      <WEBDETAILS_ITEMTEXT>value</WEBDETAILS_ITEMTEXT>
      <WEBDETAILS_ITEMQUANTITY>value</WEBDETAILS_ITEMQUANTITY>
      <WEBDETAILS_ITEMPRICE>value</WEBDETAILS_ITEMPRICE>
      <WEBDETAILS_ITEMDISCOUNT>value</WEBDETAILS_ITEMDISCOUNT>
      <WEBDETAILS_ITEMTOTAL>value</WEBDETAILS_ITEMTOTAL>
      <WEBDETAILS_ITEMNOTE>value</WEBDETAILS_ITEMNOTE>
      <WEBDETAILS_ITEMKITCHENORDER>value</WEBDETAILS_ITEMKITCHENORDER>
    </TabelItemInfo>
    <TabelItemInfo>
      <WEBDETAILS_ITEMLINENO>value</WEBDETAILS_ITEMLINENO>
      <WEBDETAILS_ITEMTYPE>value</WEBDETAILS_ITEMTYPE>
      <WEBDETAILS_ITEMNO>value</WEBDETAILS_ITEMNO>
      <WEBDETAILS_ITEMTEXT>value</WEBDETAILS_ITEMTEXT>
      <WEBDETAILS_ITEMQUANTITY>value</WEBDETAILS_ITEMQUANTITY>
      <WEBDETAILS_ITEMPRICE>value</WEBDETAILS_ITEMPRICE>
      <WEBDETAILS_ITEMDISCOUNT>value</WEBDETAILS_ITEMDISCOUNT>
      <WEBDETAILS_ITEMTOTAL>value</WEBDETAILS_ITEMTOTAL>
      <WEBDETAILS_ITEMNOTE>value</WEBDETAILS_ITEMNOTE>
      <WEBDETAILS_ITEMKITCHENORDER>value</WEBDETAILS_ITEMKITCHENORDER>
    </TabelItemInfo>
  </ReturnQueue>
</GetTableItems_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/GetTableItems/brugernavnvalue?kodeord=value&tableguid=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"?>
<GetTableItems_response xmlns="SMARTCASH">
  <TabelTotal>value</TabelTotal>
  <ReturnQueue>
    <TabelItemInfo>
      <WEBDETAILS_ITEMLINENO>value</WEBDETAILS_ITEMLINENO>
      <WEBDETAILS_ITEMTYPE>value</WEBDETAILS_ITEMTYPE>
      <WEBDETAILS_ITEMNO>value</WEBDETAILS_ITEMNO>
      <WEBDETAILS_ITEMTEXT>value</WEBDETAILS_ITEMTEXT>
      <WEBDETAILS_ITEMQUANTITY>value</WEBDETAILS_ITEMQUANTITY>
      <WEBDETAILS_ITEMPRICE>value</WEBDETAILS_ITEMPRICE>
      <WEBDETAILS_ITEMDISCOUNT>value</WEBDETAILS_ITEMDISCOUNT>
      <WEBDETAILS_ITEMTOTAL>value</WEBDETAILS_ITEMTOTAL>
      <WEBDETAILS_ITEMNOTE>value</WEBDETAILS_ITEMNOTE>
      <WEBDETAILS_ITEMKITCHENORDER>value</WEBDETAILS_ITEMKITCHENORDER>
    </TabelItemInfo>
    <TabelItemInfo>
      <WEBDETAILS_ITEMLINENO>value</WEBDETAILS_ITEMLINENO>
      <WEBDETAILS_ITEMTYPE>value</WEBDETAILS_ITEMTYPE>
      <WEBDETAILS_ITEMNO>value</WEBDETAILS_ITEMNO>
      <WEBDETAILS_ITEMTEXT>value</WEBDETAILS_ITEMTEXT>
      <WEBDETAILS_ITEMQUANTITY>value</WEBDETAILS_ITEMQUANTITY>
      <WEBDETAILS_ITEMPRICE>value</WEBDETAILS_ITEMPRICE>
      <WEBDETAILS_ITEMDISCOUNT>value</WEBDETAILS_ITEMDISCOUNT>
      <WEBDETAILS_ITEMTOTAL>value</WEBDETAILS_ITEMTOTAL>
      <WEBDETAILS_ITEMNOTE>value</WEBDETAILS_ITEMNOTE>
      <WEBDETAILS_ITEMKITCHENORDER>value</WEBDETAILS_ITEMKITCHENORDER>
    </TabelItemInfo>
  </ReturnQueue>
</GetTableItems_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 /GetTableItems HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/json
Content-Type: application/json
Content-Length: length

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

Example Response

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

{
  "GetTableItems_response" : {
    "TabelTotal" : "value",
    "ReturnQueue" : [
      {
        "WEBDETAILS:ITEMLINENO" : value,
        "WEBDETAILS:ITEMTYPE" : value,
        "WEBDETAILS:ITEMNO" : value,
        "WEBDETAILS:ITEMTEXT" : "value",
        "WEBDETAILS:ITEMQUANTITY" : value,
        "WEBDETAILS:ITEMPRICE" : value,
        "WEBDETAILS:ITEMDISCOUNT" : value,
        "WEBDETAILS:ITEMTOTAL" : value,
        "WEBDETAILS:ITEMNOTE" : "value",
        "WEBDETAILS:ITEMKITCHENORDER" : 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 /GetTableItems?brugernavn=value&kodeord=value&tableguid=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

{
  "GetTableItems_response" : {
    "TabelTotal" : "value",
    "ReturnQueue" : [
      {
        "WEBDETAILS:ITEMLINENO" : value,
        "WEBDETAILS:ITEMTYPE" : value,
        "WEBDETAILS:ITEMNO" : value,
        "WEBDETAILS:ITEMTEXT" : "value",
        "WEBDETAILS:ITEMQUANTITY" : value,
        "WEBDETAILS:ITEMPRICE" : value,
        "WEBDETAILS:ITEMDISCOUNT" : value,
        "WEBDETAILS:ITEMTOTAL" : value,
        "WEBDETAILS:ITEMNOTE" : "value",
        "WEBDETAILS:ITEMKITCHENORDER" : 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/GetTableItems/brugernavnvalue?kodeord=value&tableguid=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

{
  "GetTableItems_response" : {
    "TabelTotal" : "value",
    "ReturnQueue" : [
      {
        "WEBDETAILS:ITEMLINENO" : value,
        "WEBDETAILS:ITEMTYPE" : value,
        "WEBDETAILS:ITEMNO" : value,
        "WEBDETAILS:ITEMTEXT" : "value",
        "WEBDETAILS:ITEMQUANTITY" : value,
        "WEBDETAILS:ITEMPRICE" : value,
        "WEBDETAILS:ITEMDISCOUNT" : value,
        "WEBDETAILS:ITEMTOTAL" : value,
        "WEBDETAILS:ITEMNOTE" : "value",
        "WEBDETAILS:ITEMKITCHENORDER" : value
      }
    ]
  }
}