SMART cash web-adgang

Error in site JavaScript
Web Service Documentation
Service: SMARTCASH
Method: GetExtra
Get Extra
Parameters
string: brugernavn
username
Parameter is Required
string: kodeord
password
Parameter is Required
Possible Return Data

List: ServiceErrors
ErrorNumber (int)
ErrorPosition (string)
ErrorRecordID (string)
ErrorDescription (string)
ErrorRecomendation (string)
List: ReturnQueue
TQ_INGREDIENTSNO (int)
TQ_INGREDIENTSNAME (string)
TQ_CATEGORI (string)
TQ_PRICE (int)
TQ_UNIT (string)
TQ_ASEXTRA (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/GetExtra

<?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>
    <GetExtra xmlns="SMARTCASH">
      <brugernavn>value</brugernavn>
      <kodeord>value</kodeord>
    </GetExtra>
  </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>
    <GetExtra_response xmlns="SMARTCASH">
      <ReturnQueue>
        <IngredientsInfo>
          <TQ_INGREDIENTSNO>value</TQ_INGREDIENTSNO>
          <TQ_INGREDIENTSNAME>value</TQ_INGREDIENTSNAME>
          <TQ_CATEGORI>value</TQ_CATEGORI>
          <TQ_PRICE>value</TQ_PRICE>
          <TQ_UNIT>value</TQ_UNIT>
          <TQ_ASEXTRA>value</TQ_ASEXTRA>
        </IngredientsInfo>
        <IngredientsInfo>
          <TQ_INGREDIENTSNO>value</TQ_INGREDIENTSNO>
          <TQ_INGREDIENTSNAME>value</TQ_INGREDIENTSNAME>
          <TQ_CATEGORI>value</TQ_CATEGORI>
          <TQ_PRICE>value</TQ_PRICE>
          <TQ_UNIT>value</TQ_UNIT>
          <TQ_ASEXTRA>value</TQ_ASEXTRA>
        </IngredientsInfo>
      </ReturnQueue>
    </GetExtra_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>
    <GetExtra xmlns="SMARTCASH">
      <brugernavn>value</brugernavn>
      <kodeord>value</kodeord>
    </GetExtra>
  </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>
    <GetExtra_response xmlns="SMARTCASH">
      <ReturnQueue>
        <IngredientsInfo>
          <TQ_INGREDIENTSNO>value</TQ_INGREDIENTSNO>
          <TQ_INGREDIENTSNAME>value</TQ_INGREDIENTSNAME>
          <TQ_CATEGORI>value</TQ_CATEGORI>
          <TQ_PRICE>value</TQ_PRICE>
          <TQ_UNIT>value</TQ_UNIT>
          <TQ_ASEXTRA>value</TQ_ASEXTRA>
        </IngredientsInfo>
        <IngredientsInfo>
          <TQ_INGREDIENTSNO>value</TQ_INGREDIENTSNO>
          <TQ_INGREDIENTSNAME>value</TQ_INGREDIENTSNAME>
          <TQ_CATEGORI>value</TQ_CATEGORI>
          <TQ_PRICE>value</TQ_PRICE>
          <TQ_UNIT>value</TQ_UNIT>
          <TQ_ASEXTRA>value</TQ_ASEXTRA>
        </IngredientsInfo>
      </ReturnQueue>
    </GetExtra_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 /GetExtra HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/xml
Content-Type: application/x-www-form-urlencoded
Content-Length: length

brugernavn=value&kodeord=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"?>
<GetExtra_response xmlns="SMARTCASH">
  <ReturnQueue>
    <IngredientsInfo>
      <TQ_INGREDIENTSNO>value</TQ_INGREDIENTSNO>
      <TQ_INGREDIENTSNAME>value</TQ_INGREDIENTSNAME>
      <TQ_CATEGORI>value</TQ_CATEGORI>
      <TQ_PRICE>value</TQ_PRICE>
      <TQ_UNIT>value</TQ_UNIT>
      <TQ_ASEXTRA>value</TQ_ASEXTRA>
    </IngredientsInfo>
    <IngredientsInfo>
      <TQ_INGREDIENTSNO>value</TQ_INGREDIENTSNO>
      <TQ_INGREDIENTSNAME>value</TQ_INGREDIENTSNAME>
      <TQ_CATEGORI>value</TQ_CATEGORI>
      <TQ_PRICE>value</TQ_PRICE>
      <TQ_UNIT>value</TQ_UNIT>
      <TQ_ASEXTRA>value</TQ_ASEXTRA>
    </IngredientsInfo>
  </ReturnQueue>
</GetExtra_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 /GetExtra?brugernavn=value&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"?>
<GetExtra_response xmlns="SMARTCASH">
  <ReturnQueue>
    <IngredientsInfo>
      <TQ_INGREDIENTSNO>value</TQ_INGREDIENTSNO>
      <TQ_INGREDIENTSNAME>value</TQ_INGREDIENTSNAME>
      <TQ_CATEGORI>value</TQ_CATEGORI>
      <TQ_PRICE>value</TQ_PRICE>
      <TQ_UNIT>value</TQ_UNIT>
      <TQ_ASEXTRA>value</TQ_ASEXTRA>
    </IngredientsInfo>
    <IngredientsInfo>
      <TQ_INGREDIENTSNO>value</TQ_INGREDIENTSNO>
      <TQ_INGREDIENTSNAME>value</TQ_INGREDIENTSNAME>
      <TQ_CATEGORI>value</TQ_CATEGORI>
      <TQ_PRICE>value</TQ_PRICE>
      <TQ_UNIT>value</TQ_UNIT>
      <TQ_ASEXTRA>value</TQ_ASEXTRA>
    </IngredientsInfo>
  </ReturnQueue>
</GetExtra_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/GetExtra/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"?>
<GetExtra_response xmlns="SMARTCASH">
  <ReturnQueue>
    <IngredientsInfo>
      <TQ_INGREDIENTSNO>value</TQ_INGREDIENTSNO>
      <TQ_INGREDIENTSNAME>value</TQ_INGREDIENTSNAME>
      <TQ_CATEGORI>value</TQ_CATEGORI>
      <TQ_PRICE>value</TQ_PRICE>
      <TQ_UNIT>value</TQ_UNIT>
      <TQ_ASEXTRA>value</TQ_ASEXTRA>
    </IngredientsInfo>
    <IngredientsInfo>
      <TQ_INGREDIENTSNO>value</TQ_INGREDIENTSNO>
      <TQ_INGREDIENTSNAME>value</TQ_INGREDIENTSNAME>
      <TQ_CATEGORI>value</TQ_CATEGORI>
      <TQ_PRICE>value</TQ_PRICE>
      <TQ_UNIT>value</TQ_UNIT>
      <TQ_ASEXTRA>value</TQ_ASEXTRA>
    </IngredientsInfo>
  </ReturnQueue>
</GetExtra_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 /GetExtra HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/json
Content-Type: application/json
Content-Length: length

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

Example Response

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

{
  "GetExtra_response" : {
    "ReturnQueue" : [
      {
        "TQ_INGREDIENTSNO" : value,
        "TQ_INGREDIENTSNAME" : "value",
        "TQ_CATEGORI" : "value",
        "TQ_PRICE" : value,
        "TQ_UNIT" : "value",
        "TQ_ASEXTRA" : 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 /GetExtra?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

{
  "GetExtra_response" : {
    "ReturnQueue" : [
      {
        "TQ_INGREDIENTSNO" : value,
        "TQ_INGREDIENTSNAME" : "value",
        "TQ_CATEGORI" : "value",
        "TQ_PRICE" : value,
        "TQ_UNIT" : "value",
        "TQ_ASEXTRA" : 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/GetExtra/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

{
  "GetExtra_response" : {
    "ReturnQueue" : [
      {
        "TQ_INGREDIENTSNO" : value,
        "TQ_INGREDIENTSNAME" : "value",
        "TQ_CATEGORI" : "value",
        "TQ_PRICE" : value,
        "TQ_UNIT" : "value",
        "TQ_ASEXTRA" : value
      }
    ]
  }
}