SMART cash web-adgang

Error in site JavaScript
Web Service Documentation
Service: SMARTCASH
Method: AddJournal
Add til journalen i POS
Parameters
string: brugernavn
username
Parameter is Required
string: kodeord
password
Parameter is Required
Group: WebOrderHead
WEBHEADER_ORDERTODEPARTMENT (int)
WEBHEADER_WEBSUPPLIERID (string)
WEBHEADER_TABELGUID (string)
WEBHEADER_DEBITORGUID (string)
WEBHEADER_WAITERGUID (string)
WEBHEADER_ORDERITEMSCOUNT (int)
WEBHEADER_ORDERTOTAL (int)
WEBHEADER_ORDERPLACEDBYTERMINAL (string)
WEBHEADER_MOBILENO (int)
WEBHEADER_EMAILADR (string)
WEBHEADER_CREDITCARDNO (int)
WEBHEADER_EXPIERYEAR (int)
WEBHEADER_EXPIERMONTH (int)
WEBHEADER_KEEPTAPOPEN (int)
WEBHEADER_READYFORPICKUPSMS (int)
WEBHEADER_WO_CUSTOMERNAME (string)
WEBHEADER_WO_AGE (int)
WEBHEADER_WO_SEX (int)
WEBHEADER_WO_NUMBEROFVISIT (int)
WEBHEADER_WO_AVGAMOUNT (int)
WEBHEADER_WO_TOTALAMOUNT (int)
WEBHEADER_WO_TYPEPAYMENT (string)
WEBHEADER_WO_NUMBERSPLIT (int)
WEBHEADER_WO_PAYMENTSTATUS (string)
WEBHEADER_WO_GATEWAYTRANSID (string)
WEBHEADER_WO_DISCOUNT (int)
WEBHEADER_WO_TIPS (int)
WEBHEADER_WO_ORDERTOTAL (int)
Parameter is Optional
List: WebOrderDetail
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)
WebOrderDetail
Parameter is Optional
List: ExtraInfo
WEBMSG_ITEMLINENO (int)
WEBMSG_MESSTYPE (int)
WEBMSG_NUMBER (int)
WEBMSG_TEXT (string)
Take out,Ektra, Message
Parameter is Optional
Possible Return Data

List: ServiceErrors
ErrorNumber (int)
ErrorPosition (string)
ErrorRecordID (string)
ErrorDescription (string)
ErrorRecomendation (string)
Field: weborder
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/AddJournal

<?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>
    <AddJournal xmlns="SMARTCASH">
      <brugernavn>value</brugernavn>
      <kodeord>value</kodeord>
      <WebOrderHead>
        <WEBHEADER_ORDERTODEPARTMENT>value</WEBHEADER_ORDERTODEPARTMENT>
        <WEBHEADER_WEBSUPPLIERID>value</WEBHEADER_WEBSUPPLIERID>
        <WEBHEADER_TABELGUID>value</WEBHEADER_TABELGUID>
        <WEBHEADER_DEBITORGUID>value</WEBHEADER_DEBITORGUID>
        <WEBHEADER_WAITERGUID>value</WEBHEADER_WAITERGUID>
        <WEBHEADER_ORDERITEMSCOUNT>value</WEBHEADER_ORDERITEMSCOUNT>
        <WEBHEADER_ORDERTOTAL>value</WEBHEADER_ORDERTOTAL>
        <WEBHEADER_ORDERPLACEDBYTERMINAL>value</WEBHEADER_ORDERPLACEDBYTERMINAL>
        <WEBHEADER_MOBILENO>value</WEBHEADER_MOBILENO>
        <WEBHEADER_EMAILADR>value</WEBHEADER_EMAILADR>
        <WEBHEADER_CREDITCARDNO>value</WEBHEADER_CREDITCARDNO>
        <WEBHEADER_EXPIERYEAR>value</WEBHEADER_EXPIERYEAR>
        <WEBHEADER_EXPIERMONTH>value</WEBHEADER_EXPIERMONTH>
        <WEBHEADER_KEEPTAPOPEN>value</WEBHEADER_KEEPTAPOPEN>
        <WEBHEADER_READYFORPICKUPSMS>value</WEBHEADER_READYFORPICKUPSMS>
        <WEBHEADER_WO_CUSTOMERNAME>value</WEBHEADER_WO_CUSTOMERNAME>
        <WEBHEADER_WO_AGE>value</WEBHEADER_WO_AGE>
        <WEBHEADER_WO_SEX>value</WEBHEADER_WO_SEX>
        <WEBHEADER_WO_NUMBEROFVISIT>value</WEBHEADER_WO_NUMBEROFVISIT>
        <WEBHEADER_WO_AVGAMOUNT>value</WEBHEADER_WO_AVGAMOUNT>
        <WEBHEADER_WO_TOTALAMOUNT>value</WEBHEADER_WO_TOTALAMOUNT>
        <WEBHEADER_WO_TYPEPAYMENT>value</WEBHEADER_WO_TYPEPAYMENT>
        <WEBHEADER_WO_NUMBERSPLIT>value</WEBHEADER_WO_NUMBERSPLIT>
        <WEBHEADER_WO_PAYMENTSTATUS>value</WEBHEADER_WO_PAYMENTSTATUS>
        <WEBHEADER_WO_GATEWAYTRANSID>value</WEBHEADER_WO_GATEWAYTRANSID>
        <WEBHEADER_WO_DISCOUNT>value</WEBHEADER_WO_DISCOUNT>
        <WEBHEADER_WO_TIPS>value</WEBHEADER_WO_TIPS>
        <WEBHEADER_WO_ORDERTOTAL>value</WEBHEADER_WO_ORDERTOTAL>
      </WebOrderHead>

      <WebOrderDetail_list>
        <WebOrderDetail>
          <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>
        </WebOrderDetail>
        <WebOrderDetail>
          <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>
        </WebOrderDetail>
      </WebOrderDetail_list>

      <ExtraInfo_list>
        <ExtraInfo>
          <WEBMSG_ITEMLINENO>value</WEBMSG_ITEMLINENO>
          <WEBMSG_MESSTYPE>value</WEBMSG_MESSTYPE>
          <WEBMSG_NUMBER>value</WEBMSG_NUMBER>
          <WEBMSG_TEXT>value</WEBMSG_TEXT>
        </ExtraInfo>
        <ExtraInfo>
          <WEBMSG_ITEMLINENO>value</WEBMSG_ITEMLINENO>
          <WEBMSG_MESSTYPE>value</WEBMSG_MESSTYPE>
          <WEBMSG_NUMBER>value</WEBMSG_NUMBER>
          <WEBMSG_TEXT>value</WEBMSG_TEXT>
        </ExtraInfo>
      </ExtraInfo_list>

    </AddJournal>
  </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>
    <AddJournal_response xmlns="SMARTCASH">
      <weborder>value</weborder>
    </AddJournal_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>
    <AddJournal xmlns="SMARTCASH">
      <brugernavn>value</brugernavn>
      <kodeord>value</kodeord>
      <WebOrderHead>
        <WEBHEADER_ORDERTODEPARTMENT>value</WEBHEADER_ORDERTODEPARTMENT>
        <WEBHEADER_WEBSUPPLIERID>value</WEBHEADER_WEBSUPPLIERID>
        <WEBHEADER_TABELGUID>value</WEBHEADER_TABELGUID>
        <WEBHEADER_DEBITORGUID>value</WEBHEADER_DEBITORGUID>
        <WEBHEADER_WAITERGUID>value</WEBHEADER_WAITERGUID>
        <WEBHEADER_ORDERITEMSCOUNT>value</WEBHEADER_ORDERITEMSCOUNT>
        <WEBHEADER_ORDERTOTAL>value</WEBHEADER_ORDERTOTAL>
        <WEBHEADER_ORDERPLACEDBYTERMINAL>value</WEBHEADER_ORDERPLACEDBYTERMINAL>
        <WEBHEADER_MOBILENO>value</WEBHEADER_MOBILENO>
        <WEBHEADER_EMAILADR>value</WEBHEADER_EMAILADR>
        <WEBHEADER_CREDITCARDNO>value</WEBHEADER_CREDITCARDNO>
        <WEBHEADER_EXPIERYEAR>value</WEBHEADER_EXPIERYEAR>
        <WEBHEADER_EXPIERMONTH>value</WEBHEADER_EXPIERMONTH>
        <WEBHEADER_KEEPTAPOPEN>value</WEBHEADER_KEEPTAPOPEN>
        <WEBHEADER_READYFORPICKUPSMS>value</WEBHEADER_READYFORPICKUPSMS>
        <WEBHEADER_WO_CUSTOMERNAME>value</WEBHEADER_WO_CUSTOMERNAME>
        <WEBHEADER_WO_AGE>value</WEBHEADER_WO_AGE>
        <WEBHEADER_WO_SEX>value</WEBHEADER_WO_SEX>
        <WEBHEADER_WO_NUMBEROFVISIT>value</WEBHEADER_WO_NUMBEROFVISIT>
        <WEBHEADER_WO_AVGAMOUNT>value</WEBHEADER_WO_AVGAMOUNT>
        <WEBHEADER_WO_TOTALAMOUNT>value</WEBHEADER_WO_TOTALAMOUNT>
        <WEBHEADER_WO_TYPEPAYMENT>value</WEBHEADER_WO_TYPEPAYMENT>
        <WEBHEADER_WO_NUMBERSPLIT>value</WEBHEADER_WO_NUMBERSPLIT>
        <WEBHEADER_WO_PAYMENTSTATUS>value</WEBHEADER_WO_PAYMENTSTATUS>
        <WEBHEADER_WO_GATEWAYTRANSID>value</WEBHEADER_WO_GATEWAYTRANSID>
        <WEBHEADER_WO_DISCOUNT>value</WEBHEADER_WO_DISCOUNT>
        <WEBHEADER_WO_TIPS>value</WEBHEADER_WO_TIPS>
        <WEBHEADER_WO_ORDERTOTAL>value</WEBHEADER_WO_ORDERTOTAL>
      </WebOrderHead>

      <WebOrderDetail_list>
        <WebOrderDetail>
          <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>
        </WebOrderDetail>
        <WebOrderDetail>
          <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>
        </WebOrderDetail>
      </WebOrderDetail_list>

      <ExtraInfo_list>
        <ExtraInfo>
          <WEBMSG_ITEMLINENO>value</WEBMSG_ITEMLINENO>
          <WEBMSG_MESSTYPE>value</WEBMSG_MESSTYPE>
          <WEBMSG_NUMBER>value</WEBMSG_NUMBER>
          <WEBMSG_TEXT>value</WEBMSG_TEXT>
        </ExtraInfo>
        <ExtraInfo>
          <WEBMSG_ITEMLINENO>value</WEBMSG_ITEMLINENO>
          <WEBMSG_MESSTYPE>value</WEBMSG_MESSTYPE>
          <WEBMSG_NUMBER>value</WEBMSG_NUMBER>
          <WEBMSG_TEXT>value</WEBMSG_TEXT>
        </ExtraInfo>
      </ExtraInfo_list>

    </AddJournal>
  </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>
    <AddJournal_response xmlns="SMARTCASH">
      <weborder>value</weborder>
    </AddJournal_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 /AddJournal 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"?>
<AddJournal_response xmlns="SMARTCASH">
  <weborder>value</weborder>
</AddJournal_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 /AddJournal?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"?>
<AddJournal_response xmlns="SMARTCASH">
  <weborder>value</weborder>
</AddJournal_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/AddJournal/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"?>
<AddJournal_response xmlns="SMARTCASH">
  <weborder>value</weborder>
</AddJournal_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 /AddJournal HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/json
Content-Type: application/json
Content-Length: length

{
  "brugernavn" : "value",
  "kodeord" : "value",
  "WebOrderHead" : {
    "WEBHEADER:ORDERTODEPARTMENT" : value,
    "WEBHEADER:WEBSUPPLIERID" : "value",
    "WEBHEADER:TABELGUID" : "value",
    "WEBHEADER:DEBITORGUID" : "value",
    "WEBHEADER:WAITERGUID" : "value",
    "WEBHEADER:ORDERITEMSCOUNT" : value,
    "WEBHEADER:ORDERTOTAL" : value,
    "WEBHEADER:ORDERPLACEDBYTERMINAL" : "value",
    "WEBHEADER:MOBILENO" : value,
    "WEBHEADER:EMAILADR" : "value",
    "WEBHEADER:CREDITCARDNO" : value,
    "WEBHEADER:EXPIERYEAR" : value,
    "WEBHEADER:EXPIERMONTH" : value,
    "WEBHEADER:KEEPTAPOPEN" : value,
    "WEBHEADER:READYFORPICKUPSMS" : value,
    "WEBHEADER:WO_CUSTOMERNAME" : "value",
    "WEBHEADER:WO_AGE" : value,
    "WEBHEADER:WO_SEX" : value,
    "WEBHEADER:WO_NUMBEROFVISIT" : value,
    "WEBHEADER:WO_AVGAMOUNT" : value,
    "WEBHEADER:WO_TOTALAMOUNT" : value,
    "WEBHEADER:WO_TYPEPAYMENT" : "value",
    "WEBHEADER:WO_NUMBERSPLIT" : value,
    "WEBHEADER:WO_PAYMENTSTATUS" : "value",
    "WEBHEADER:WO_GATEWAYTRANSID" : "value",
    "WEBHEADER:WO_DISCOUNT" : value,
    "WEBHEADER:WO_TIPS" : value,
    "WEBHEADER:WO_ORDERTOTAL" : value
  },
  "WebOrderDetail" : [
    {
      "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
    }
  ],
  "ExtraInfo" : [
    {
      "WEBMSG:ITEMLINENO" : value,
      "WEBMSG:MESSTYPE" : value,
      "WEBMSG:NUMBER" : value,
      "WEBMSG:TEXT" : "value"
    }
  ]
}

Example Response

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

{
  "AddJournal_response" : {
    "weborder" : "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 /AddJournal?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

{
  "AddJournal_response" : {
    "weborder" : "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/AddJournal/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

{
  "AddJournal_response" : {
    "weborder" : "value"
  }
}