SMART cash web-adgang

Error in site JavaScript
Web Service Documentation
Service: RESERVATION
Method: AddBookingPool
Add tabel booking
Parameters
string: brugernavn
username
Parameter is Required
string: kodeord
password
Parameter is Required
int: zone
zone
Parameter is Required
string: email
Email adresse
Parameter is Optional
int: mobilenr
mobil number
Parameter is Required
string: guestname
gæst navn
Parameter is Required
string: comment
kommentar
Parameter is Optional
int: newsletter
nyhedsbrev
Parameter is Optional
string: reservationstartdate
dato for reservation
Parameter is Required
string: reservationstarttime
reservation start tidspunkt
Parameter is Required
string: Bookingsminutes
Bookingsminutes
Parameter is Required
int: BordNr1
0
Parameter is Required
int: BordNr2
0
Parameter is Optional
int: BordNr3
0
Parameter is Optional
int: BordNr4
0
Parameter is Optional
int: BordNr5
0
Parameter is Optional
int: BordNr6
0
Parameter is Optional
int: BordNr7
0
Parameter is Optional
int: BordNr8
0
Parameter is Optional
int: BordNr9
0
Parameter is Optional
Possible Return Data

List: ServiceErrors
ErrorNumber (int)
ErrorPosition (string)
ErrorRecordID (string)
ErrorDescription (string)
ErrorRecomendation (string)
Field: reservationnr
Field: BookedTables
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 /RESERVATION HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/xml
Content-Type: text/xml
Content-Length: length
SOAPAction: http://sharkspoolhall.dk/AddBookingPool

<?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>
    <AddBookingPool xmlns="">
      <brugernavn>value</brugernavn>
      <kodeord>value</kodeord>
      <zone>value</zone>
      <email>value</email>
      <mobilenr>value</mobilenr>
      <guestname>value</guestname>
      <comment>value</comment>
      <newsletter>value</newsletter>
      <reservationstartdate>value</reservationstartdate>
      <reservationstarttime>value</reservationstarttime>
      <Bookingsminutes>value</Bookingsminutes>
      <BordNr1>value</BordNr1>
      <BordNr2>value</BordNr2>
      <BordNr3>value</BordNr3>
      <BordNr4>value</BordNr4>
      <BordNr5>value</BordNr5>
      <BordNr6>value</BordNr6>
      <BordNr7>value</BordNr7>
      <BordNr8>value</BordNr8>
      <BordNr9>value</BordNr9>
    </AddBookingPool>
  </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>
    <AddBookingPool_response xmlns="">
      <reservationnr>value</reservationnr>
      <BookedTables>value</BookedTables>
    </AddBookingPool_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 /RESERVATION 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>
    <AddBookingPool xmlns="">
      <brugernavn>value</brugernavn>
      <kodeord>value</kodeord>
      <zone>value</zone>
      <email>value</email>
      <mobilenr>value</mobilenr>
      <guestname>value</guestname>
      <comment>value</comment>
      <newsletter>value</newsletter>
      <reservationstartdate>value</reservationstartdate>
      <reservationstarttime>value</reservationstarttime>
      <Bookingsminutes>value</Bookingsminutes>
      <BordNr1>value</BordNr1>
      <BordNr2>value</BordNr2>
      <BordNr3>value</BordNr3>
      <BordNr4>value</BordNr4>
      <BordNr5>value</BordNr5>
      <BordNr6>value</BordNr6>
      <BordNr7>value</BordNr7>
      <BordNr8>value</BordNr8>
      <BordNr9>value</BordNr9>
    </AddBookingPool>
  </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>
    <AddBookingPool_response xmlns="">
      <reservationnr>value</reservationnr>
      <BookedTables>value</BookedTables>
    </AddBookingPool_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 /AddBookingPool HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/xml
Content-Type: application/x-www-form-urlencoded
Content-Length: length

brugernavn=value&kodeord=value&zone=value&email=value&mobilenr=value&guestname=value&comment=value&newsletter=value&reservationstartdate=value&reservationstarttime=value&Bookingsminutes=value&BordNr1=value&BordNr2=value&BordNr3=value&BordNr4=value&BordNr5=value&BordNr6=value&BordNr7=value&BordNr8=value&BordNr9=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"?>
<AddBookingPool_response xmlns="">
  <reservationnr>value</reservationnr>
  <BookedTables>value</BookedTables>
</AddBookingPool_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 /AddBookingPool?brugernavn=value&kodeord=value&zone=value&email=value&mobilenr=value&guestname=value&comment=value&newsletter=value&reservationstartdate=value&reservationstarttime=value&Bookingsminutes=value&BordNr1=value&BordNr2=value&BordNr3=value&BordNr4=value&BordNr5=value&BordNr6=value&BordNr7=value&BordNr8=value&BordNr9=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"?>
<AddBookingPool_response xmlns="">
  <reservationnr>value</reservationnr>
  <BookedTables>value</BookedTables>
</AddBookingPool_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 /RESERVATION/AddBookingPool/brugernavnvalue?kodeord=value&zone=value&mobilenr=value&guestname=value&reservationstartdate=value&reservationstarttime=value&Bookingsminutes=value&BordNr1=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"?>
<AddBookingPool_response xmlns="">
  <reservationnr>value</reservationnr>
  <BookedTables>value</BookedTables>
</AddBookingPool_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 /AddBookingPool HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/json
Content-Type: application/json
Content-Length: length

{
  "brugernavn" : "value",
  "kodeord" : "value",
  "zone" : "value",
  "email" : "value",
  "mobilenr" : "value",
  "guestname" : "value",
  "comment" : "value",
  "newsletter" : "value",
  "reservationstartdate" : "value",
  "reservationstarttime" : "value",
  "Bookingsminutes" : "value",
  "BordNr1" : "value",
  "BordNr2" : "value",
  "BordNr3" : "value",
  "BordNr4" : "value",
  "BordNr5" : "value",
  "BordNr6" : "value",
  "BordNr7" : "value",
  "BordNr8" : "value",
  "BordNr9" : "value"
}

Example Response

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

{
  "AddBookingPool_response" : {
    "reservationnr" : "value",
    "BookedTables" : "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 /AddBookingPool?brugernavn=value&kodeord=value&zone=value&mobilenr=value&guestname=value&reservationstartdate=value&reservationstarttime=value&Bookingsminutes=value&BordNr1=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

{
  "AddBookingPool_response" : {
    "reservationnr" : "value",
    "BookedTables" : "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 /RESERVATION/AddBookingPool/brugernavnvalue?kodeord=value&zone=value&mobilenr=value&guestname=value&reservationstartdate=value&reservationstarttime=value&Bookingsminutes=value&BordNr1=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

{
  "AddBookingPool_response" : {
    "reservationnr" : "value",
    "BookedTables" : "value"
  }
}