SMART cash web-adgang

Error in site JavaScript
Web Service Documentation
Service: RESERVATION
Method: GetBookings
Get booking
Parameters
string: brugernavn
brugernavn
Parameter is Required
string: kodeord
kodeord
Parameter is Required
string: guid
guid
Parameter is Optional
int: Reservationsnr
Reservations Nr.
Parameter is Optional
string: email
email adresse
Parameter is Optional
int: mobil
mobil nummer
Parameter is Optional
Possible Return Data

List: ServiceErrors
ErrorNumber (int)
ErrorPosition (string)
ErrorRecordID (string)
ErrorDescription (string)
ErrorRecomendation (string)
List: ReturnQueue
BQ_GUID (string)
BQ_RESERVATIONSNR (int)
BQ_EMAIL (string)
BQ_MOBILENR (int)
BQ_NAME (string)
BQ_COMMENT (string)
BQ_NEWSLETTER (string)
BQ_CUSTOMERS (int)
BQ_TABLENO (int)
BQ_ZONE (int)
BQ_FROMDATO (string)
BQ_FROMTIME (string)
BQ_TODATO (string)
BQ_TOTIME (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 /RESERVATION HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/xml
Content-Type: text/xml
Content-Length: length
SOAPAction: http://sharkspoolhall.dk/GetBookings

<?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>
    <GetBookings xmlns="">
      <brugernavn>value</brugernavn>
      <kodeord>value</kodeord>
      <guid>value</guid>
      <Reservationsnr>value</Reservationsnr>
      <email>value</email>
      <mobil>value</mobil>
    </GetBookings>
  </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>
    <GetBookings_response xmlns="">
      <ReturnQueue>
        <BookingQueue>
          <BQ_GUID>value</BQ_GUID>
          <BQ_RESERVATIONSNR>value</BQ_RESERVATIONSNR>
          <BQ_EMAIL>value</BQ_EMAIL>
          <BQ_MOBILENR>value</BQ_MOBILENR>
          <BQ_NAME>value</BQ_NAME>
          <BQ_COMMENT>value</BQ_COMMENT>
          <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
          <BQ_CUSTOMERS>value</BQ_CUSTOMERS>
          <BQ_TABLENO>value</BQ_TABLENO>
          <BQ_ZONE>value</BQ_ZONE>
          <BQ_FROMDATO>value</BQ_FROMDATO>
          <BQ_FROMTIME>value</BQ_FROMTIME>
          <BQ_TODATO>value</BQ_TODATO>
          <BQ_TOTIME>value</BQ_TOTIME>
        </BookingQueue>
        <BookingQueue>
          <BQ_GUID>value</BQ_GUID>
          <BQ_RESERVATIONSNR>value</BQ_RESERVATIONSNR>
          <BQ_EMAIL>value</BQ_EMAIL>
          <BQ_MOBILENR>value</BQ_MOBILENR>
          <BQ_NAME>value</BQ_NAME>
          <BQ_COMMENT>value</BQ_COMMENT>
          <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
          <BQ_CUSTOMERS>value</BQ_CUSTOMERS>
          <BQ_TABLENO>value</BQ_TABLENO>
          <BQ_ZONE>value</BQ_ZONE>
          <BQ_FROMDATO>value</BQ_FROMDATO>
          <BQ_FROMTIME>value</BQ_FROMTIME>
          <BQ_TODATO>value</BQ_TODATO>
          <BQ_TOTIME>value</BQ_TOTIME>
        </BookingQueue>
      </ReturnQueue>
    </GetBookings_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>
    <GetBookings xmlns="">
      <brugernavn>value</brugernavn>
      <kodeord>value</kodeord>
      <guid>value</guid>
      <Reservationsnr>value</Reservationsnr>
      <email>value</email>
      <mobil>value</mobil>
    </GetBookings>
  </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>
    <GetBookings_response xmlns="">
      <ReturnQueue>
        <BookingQueue>
          <BQ_GUID>value</BQ_GUID>
          <BQ_RESERVATIONSNR>value</BQ_RESERVATIONSNR>
          <BQ_EMAIL>value</BQ_EMAIL>
          <BQ_MOBILENR>value</BQ_MOBILENR>
          <BQ_NAME>value</BQ_NAME>
          <BQ_COMMENT>value</BQ_COMMENT>
          <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
          <BQ_CUSTOMERS>value</BQ_CUSTOMERS>
          <BQ_TABLENO>value</BQ_TABLENO>
          <BQ_ZONE>value</BQ_ZONE>
          <BQ_FROMDATO>value</BQ_FROMDATO>
          <BQ_FROMTIME>value</BQ_FROMTIME>
          <BQ_TODATO>value</BQ_TODATO>
          <BQ_TOTIME>value</BQ_TOTIME>
        </BookingQueue>
        <BookingQueue>
          <BQ_GUID>value</BQ_GUID>
          <BQ_RESERVATIONSNR>value</BQ_RESERVATIONSNR>
          <BQ_EMAIL>value</BQ_EMAIL>
          <BQ_MOBILENR>value</BQ_MOBILENR>
          <BQ_NAME>value</BQ_NAME>
          <BQ_COMMENT>value</BQ_COMMENT>
          <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
          <BQ_CUSTOMERS>value</BQ_CUSTOMERS>
          <BQ_TABLENO>value</BQ_TABLENO>
          <BQ_ZONE>value</BQ_ZONE>
          <BQ_FROMDATO>value</BQ_FROMDATO>
          <BQ_FROMTIME>value</BQ_FROMTIME>
          <BQ_TODATO>value</BQ_TODATO>
          <BQ_TOTIME>value</BQ_TOTIME>
        </BookingQueue>
      </ReturnQueue>
    </GetBookings_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 /GetBookings HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/xml
Content-Type: application/x-www-form-urlencoded
Content-Length: length

brugernavn=value&kodeord=value&guid=value&Reservationsnr=value&email=value&mobil=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"?>
<GetBookings_response xmlns="">
  <ReturnQueue>
    <BookingQueue>
      <BQ_GUID>value</BQ_GUID>
      <BQ_RESERVATIONSNR>value</BQ_RESERVATIONSNR>
      <BQ_EMAIL>value</BQ_EMAIL>
      <BQ_MOBILENR>value</BQ_MOBILENR>
      <BQ_NAME>value</BQ_NAME>
      <BQ_COMMENT>value</BQ_COMMENT>
      <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
      <BQ_CUSTOMERS>value</BQ_CUSTOMERS>
      <BQ_TABLENO>value</BQ_TABLENO>
      <BQ_ZONE>value</BQ_ZONE>
      <BQ_FROMDATO>value</BQ_FROMDATO>
      <BQ_FROMTIME>value</BQ_FROMTIME>
      <BQ_TODATO>value</BQ_TODATO>
      <BQ_TOTIME>value</BQ_TOTIME>
    </BookingQueue>
    <BookingQueue>
      <BQ_GUID>value</BQ_GUID>
      <BQ_RESERVATIONSNR>value</BQ_RESERVATIONSNR>
      <BQ_EMAIL>value</BQ_EMAIL>
      <BQ_MOBILENR>value</BQ_MOBILENR>
      <BQ_NAME>value</BQ_NAME>
      <BQ_COMMENT>value</BQ_COMMENT>
      <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
      <BQ_CUSTOMERS>value</BQ_CUSTOMERS>
      <BQ_TABLENO>value</BQ_TABLENO>
      <BQ_ZONE>value</BQ_ZONE>
      <BQ_FROMDATO>value</BQ_FROMDATO>
      <BQ_FROMTIME>value</BQ_FROMTIME>
      <BQ_TODATO>value</BQ_TODATO>
      <BQ_TOTIME>value</BQ_TOTIME>
    </BookingQueue>
  </ReturnQueue>
</GetBookings_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 /GetBookings?brugernavn=value&kodeord=value&guid=value&Reservationsnr=value&email=value&mobil=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"?>
<GetBookings_response xmlns="">
  <ReturnQueue>
    <BookingQueue>
      <BQ_GUID>value</BQ_GUID>
      <BQ_RESERVATIONSNR>value</BQ_RESERVATIONSNR>
      <BQ_EMAIL>value</BQ_EMAIL>
      <BQ_MOBILENR>value</BQ_MOBILENR>
      <BQ_NAME>value</BQ_NAME>
      <BQ_COMMENT>value</BQ_COMMENT>
      <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
      <BQ_CUSTOMERS>value</BQ_CUSTOMERS>
      <BQ_TABLENO>value</BQ_TABLENO>
      <BQ_ZONE>value</BQ_ZONE>
      <BQ_FROMDATO>value</BQ_FROMDATO>
      <BQ_FROMTIME>value</BQ_FROMTIME>
      <BQ_TODATO>value</BQ_TODATO>
      <BQ_TOTIME>value</BQ_TOTIME>
    </BookingQueue>
    <BookingQueue>
      <BQ_GUID>value</BQ_GUID>
      <BQ_RESERVATIONSNR>value</BQ_RESERVATIONSNR>
      <BQ_EMAIL>value</BQ_EMAIL>
      <BQ_MOBILENR>value</BQ_MOBILENR>
      <BQ_NAME>value</BQ_NAME>
      <BQ_COMMENT>value</BQ_COMMENT>
      <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
      <BQ_CUSTOMERS>value</BQ_CUSTOMERS>
      <BQ_TABLENO>value</BQ_TABLENO>
      <BQ_ZONE>value</BQ_ZONE>
      <BQ_FROMDATO>value</BQ_FROMDATO>
      <BQ_FROMTIME>value</BQ_FROMTIME>
      <BQ_TODATO>value</BQ_TODATO>
      <BQ_TOTIME>value</BQ_TOTIME>
    </BookingQueue>
  </ReturnQueue>
</GetBookings_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/GetBookings/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"?>
<GetBookings_response xmlns="">
  <ReturnQueue>
    <BookingQueue>
      <BQ_GUID>value</BQ_GUID>
      <BQ_RESERVATIONSNR>value</BQ_RESERVATIONSNR>
      <BQ_EMAIL>value</BQ_EMAIL>
      <BQ_MOBILENR>value</BQ_MOBILENR>
      <BQ_NAME>value</BQ_NAME>
      <BQ_COMMENT>value</BQ_COMMENT>
      <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
      <BQ_CUSTOMERS>value</BQ_CUSTOMERS>
      <BQ_TABLENO>value</BQ_TABLENO>
      <BQ_ZONE>value</BQ_ZONE>
      <BQ_FROMDATO>value</BQ_FROMDATO>
      <BQ_FROMTIME>value</BQ_FROMTIME>
      <BQ_TODATO>value</BQ_TODATO>
      <BQ_TOTIME>value</BQ_TOTIME>
    </BookingQueue>
    <BookingQueue>
      <BQ_GUID>value</BQ_GUID>
      <BQ_RESERVATIONSNR>value</BQ_RESERVATIONSNR>
      <BQ_EMAIL>value</BQ_EMAIL>
      <BQ_MOBILENR>value</BQ_MOBILENR>
      <BQ_NAME>value</BQ_NAME>
      <BQ_COMMENT>value</BQ_COMMENT>
      <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
      <BQ_CUSTOMERS>value</BQ_CUSTOMERS>
      <BQ_TABLENO>value</BQ_TABLENO>
      <BQ_ZONE>value</BQ_ZONE>
      <BQ_FROMDATO>value</BQ_FROMDATO>
      <BQ_FROMTIME>value</BQ_FROMTIME>
      <BQ_TODATO>value</BQ_TODATO>
      <BQ_TOTIME>value</BQ_TOTIME>
    </BookingQueue>
  </ReturnQueue>
</GetBookings_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 /GetBookings HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/json
Content-Type: application/json
Content-Length: length

{
  "brugernavn" : "value",
  "kodeord" : "value",
  "guid" : "value",
  "Reservationsnr" : "value",
  "email" : "value",
  "mobil" : "value"
}

Example Response

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

{
  "GetBookings_response" : {
    "ReturnQueue" : [
      {
        "BQ_GUID" : "value",
        "BQ_RESERVATIONSNR" : value,
        "BQ_EMAIL" : "value",
        "BQ_MOBILENR" : value,
        "BQ_NAME" : "value",
        "BQ_COMMENT" : "value",
        "BQ_NEWSLETTER" : "value",
        "BQ_CUSTOMERS" : value,
        "BQ_TABLENO" : value,
        "BQ_ZONE" : value,
        "BQ_FROMDATO" : "value",
        "BQ_FROMTIME" : "value",
        "BQ_TODATO" : "value",
        "BQ_TOTIME" : "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 /GetBookings?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

{
  "GetBookings_response" : {
    "ReturnQueue" : [
      {
        "BQ_GUID" : "value",
        "BQ_RESERVATIONSNR" : value,
        "BQ_EMAIL" : "value",
        "BQ_MOBILENR" : value,
        "BQ_NAME" : "value",
        "BQ_COMMENT" : "value",
        "BQ_NEWSLETTER" : "value",
        "BQ_CUSTOMERS" : value,
        "BQ_TABLENO" : value,
        "BQ_ZONE" : value,
        "BQ_FROMDATO" : "value",
        "BQ_FROMTIME" : "value",
        "BQ_TODATO" : "value",
        "BQ_TOTIME" : "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/GetBookings/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

{
  "GetBookings_response" : {
    "ReturnQueue" : [
      {
        "BQ_GUID" : "value",
        "BQ_RESERVATIONSNR" : value,
        "BQ_EMAIL" : "value",
        "BQ_MOBILENR" : value,
        "BQ_NAME" : "value",
        "BQ_COMMENT" : "value",
        "BQ_NEWSLETTER" : "value",
        "BQ_CUSTOMERS" : value,
        "BQ_TABLENO" : value,
        "BQ_ZONE" : value,
        "BQ_FROMDATO" : "value",
        "BQ_FROMTIME" : "value",
        "BQ_TODATO" : "value",
        "BQ_TOTIME" : "value"
      }
    ]
  }
}