SMART cash web-adgang

Error in site JavaScript
Web Service Documentation
Service: RESERVATION
Method: ListBookings
List all bookings
Parameters
string: brugernavn
brugernavn
Parameter is Required
string: kodeord
kodeord
Parameter is Required
int: zone
zone
Parameter is Optional
string: FraDato
boookings from date
Parameter is Required
string: Tildato
bookings tol dato
Parameter is Optional
Possible Return Data

List: ServiceErrors
ErrorNumber (int)
ErrorPosition (string)
ErrorRecordID (string)
ErrorDescription (string)
ErrorRecomendation (string)
List: ReturnQueue
BQ_ID (int)
BQ_GUID (string)
BQ_ZONE (int)
BQ_BORDNR (int)
BQ_STARTDATE (string)
BQ_STARTTIME (string)
BQ_ENDDATE (string)
BQ_ENDTIME (string)
BQ_GUESTNAME (string)
BQ_NUMBERSOFGUESTS (int)
BQ_EMAIL (string)
BQ_MOBILENR (int)
BQ_COMMENT (string)
BQ_NEWSLETTER (int)
BQ_OPRETTETDATO (string)
BQ_OPRETTETKL (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/ListBookings

<?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>
    <ListBookings xmlns="">
      <brugernavn>value</brugernavn>
      <kodeord>value</kodeord>
      <zone>value</zone>
      <FraDato>value</FraDato>
      <Tildato>value</Tildato>
    </ListBookings>
  </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>
    <ListBookings_response xmlns="">
      <ReturnQueue>
        <BookingListQueue>
          <BQ_ID>value</BQ_ID>
          <BQ_GUID>value</BQ_GUID>
          <BQ_ZONE>value</BQ_ZONE>
          <BQ_BORDNR>value</BQ_BORDNR>
          <BQ_STARTDATE>value</BQ_STARTDATE>
          <BQ_STARTTIME>value</BQ_STARTTIME>
          <BQ_ENDDATE>value</BQ_ENDDATE>
          <BQ_ENDTIME>value</BQ_ENDTIME>
          <BQ_GUESTNAME>value</BQ_GUESTNAME>
          <BQ_NUMBERSOFGUESTS>value</BQ_NUMBERSOFGUESTS>
          <BQ_EMAIL>value</BQ_EMAIL>
          <BQ_MOBILENR>value</BQ_MOBILENR>
          <BQ_COMMENT>value</BQ_COMMENT>
          <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
          <BQ_OPRETTETDATO>value</BQ_OPRETTETDATO>
          <BQ_OPRETTETKL>value</BQ_OPRETTETKL>
        </BookingListQueue>
        <BookingListQueue>
          <BQ_ID>value</BQ_ID>
          <BQ_GUID>value</BQ_GUID>
          <BQ_ZONE>value</BQ_ZONE>
          <BQ_BORDNR>value</BQ_BORDNR>
          <BQ_STARTDATE>value</BQ_STARTDATE>
          <BQ_STARTTIME>value</BQ_STARTTIME>
          <BQ_ENDDATE>value</BQ_ENDDATE>
          <BQ_ENDTIME>value</BQ_ENDTIME>
          <BQ_GUESTNAME>value</BQ_GUESTNAME>
          <BQ_NUMBERSOFGUESTS>value</BQ_NUMBERSOFGUESTS>
          <BQ_EMAIL>value</BQ_EMAIL>
          <BQ_MOBILENR>value</BQ_MOBILENR>
          <BQ_COMMENT>value</BQ_COMMENT>
          <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
          <BQ_OPRETTETDATO>value</BQ_OPRETTETDATO>
          <BQ_OPRETTETKL>value</BQ_OPRETTETKL>
        </BookingListQueue>
      </ReturnQueue>
    </ListBookings_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>
    <ListBookings xmlns="">
      <brugernavn>value</brugernavn>
      <kodeord>value</kodeord>
      <zone>value</zone>
      <FraDato>value</FraDato>
      <Tildato>value</Tildato>
    </ListBookings>
  </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>
    <ListBookings_response xmlns="">
      <ReturnQueue>
        <BookingListQueue>
          <BQ_ID>value</BQ_ID>
          <BQ_GUID>value</BQ_GUID>
          <BQ_ZONE>value</BQ_ZONE>
          <BQ_BORDNR>value</BQ_BORDNR>
          <BQ_STARTDATE>value</BQ_STARTDATE>
          <BQ_STARTTIME>value</BQ_STARTTIME>
          <BQ_ENDDATE>value</BQ_ENDDATE>
          <BQ_ENDTIME>value</BQ_ENDTIME>
          <BQ_GUESTNAME>value</BQ_GUESTNAME>
          <BQ_NUMBERSOFGUESTS>value</BQ_NUMBERSOFGUESTS>
          <BQ_EMAIL>value</BQ_EMAIL>
          <BQ_MOBILENR>value</BQ_MOBILENR>
          <BQ_COMMENT>value</BQ_COMMENT>
          <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
          <BQ_OPRETTETDATO>value</BQ_OPRETTETDATO>
          <BQ_OPRETTETKL>value</BQ_OPRETTETKL>
        </BookingListQueue>
        <BookingListQueue>
          <BQ_ID>value</BQ_ID>
          <BQ_GUID>value</BQ_GUID>
          <BQ_ZONE>value</BQ_ZONE>
          <BQ_BORDNR>value</BQ_BORDNR>
          <BQ_STARTDATE>value</BQ_STARTDATE>
          <BQ_STARTTIME>value</BQ_STARTTIME>
          <BQ_ENDDATE>value</BQ_ENDDATE>
          <BQ_ENDTIME>value</BQ_ENDTIME>
          <BQ_GUESTNAME>value</BQ_GUESTNAME>
          <BQ_NUMBERSOFGUESTS>value</BQ_NUMBERSOFGUESTS>
          <BQ_EMAIL>value</BQ_EMAIL>
          <BQ_MOBILENR>value</BQ_MOBILENR>
          <BQ_COMMENT>value</BQ_COMMENT>
          <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
          <BQ_OPRETTETDATO>value</BQ_OPRETTETDATO>
          <BQ_OPRETTETKL>value</BQ_OPRETTETKL>
        </BookingListQueue>
      </ReturnQueue>
    </ListBookings_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 /ListBookings 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&FraDato=value&Tildato=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"?>
<ListBookings_response xmlns="">
  <ReturnQueue>
    <BookingListQueue>
      <BQ_ID>value</BQ_ID>
      <BQ_GUID>value</BQ_GUID>
      <BQ_ZONE>value</BQ_ZONE>
      <BQ_BORDNR>value</BQ_BORDNR>
      <BQ_STARTDATE>value</BQ_STARTDATE>
      <BQ_STARTTIME>value</BQ_STARTTIME>
      <BQ_ENDDATE>value</BQ_ENDDATE>
      <BQ_ENDTIME>value</BQ_ENDTIME>
      <BQ_GUESTNAME>value</BQ_GUESTNAME>
      <BQ_NUMBERSOFGUESTS>value</BQ_NUMBERSOFGUESTS>
      <BQ_EMAIL>value</BQ_EMAIL>
      <BQ_MOBILENR>value</BQ_MOBILENR>
      <BQ_COMMENT>value</BQ_COMMENT>
      <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
      <BQ_OPRETTETDATO>value</BQ_OPRETTETDATO>
      <BQ_OPRETTETKL>value</BQ_OPRETTETKL>
    </BookingListQueue>
    <BookingListQueue>
      <BQ_ID>value</BQ_ID>
      <BQ_GUID>value</BQ_GUID>
      <BQ_ZONE>value</BQ_ZONE>
      <BQ_BORDNR>value</BQ_BORDNR>
      <BQ_STARTDATE>value</BQ_STARTDATE>
      <BQ_STARTTIME>value</BQ_STARTTIME>
      <BQ_ENDDATE>value</BQ_ENDDATE>
      <BQ_ENDTIME>value</BQ_ENDTIME>
      <BQ_GUESTNAME>value</BQ_GUESTNAME>
      <BQ_NUMBERSOFGUESTS>value</BQ_NUMBERSOFGUESTS>
      <BQ_EMAIL>value</BQ_EMAIL>
      <BQ_MOBILENR>value</BQ_MOBILENR>
      <BQ_COMMENT>value</BQ_COMMENT>
      <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
      <BQ_OPRETTETDATO>value</BQ_OPRETTETDATO>
      <BQ_OPRETTETKL>value</BQ_OPRETTETKL>
    </BookingListQueue>
  </ReturnQueue>
</ListBookings_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 /ListBookings?brugernavn=value&kodeord=value&zone=value&FraDato=value&Tildato=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"?>
<ListBookings_response xmlns="">
  <ReturnQueue>
    <BookingListQueue>
      <BQ_ID>value</BQ_ID>
      <BQ_GUID>value</BQ_GUID>
      <BQ_ZONE>value</BQ_ZONE>
      <BQ_BORDNR>value</BQ_BORDNR>
      <BQ_STARTDATE>value</BQ_STARTDATE>
      <BQ_STARTTIME>value</BQ_STARTTIME>
      <BQ_ENDDATE>value</BQ_ENDDATE>
      <BQ_ENDTIME>value</BQ_ENDTIME>
      <BQ_GUESTNAME>value</BQ_GUESTNAME>
      <BQ_NUMBERSOFGUESTS>value</BQ_NUMBERSOFGUESTS>
      <BQ_EMAIL>value</BQ_EMAIL>
      <BQ_MOBILENR>value</BQ_MOBILENR>
      <BQ_COMMENT>value</BQ_COMMENT>
      <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
      <BQ_OPRETTETDATO>value</BQ_OPRETTETDATO>
      <BQ_OPRETTETKL>value</BQ_OPRETTETKL>
    </BookingListQueue>
    <BookingListQueue>
      <BQ_ID>value</BQ_ID>
      <BQ_GUID>value</BQ_GUID>
      <BQ_ZONE>value</BQ_ZONE>
      <BQ_BORDNR>value</BQ_BORDNR>
      <BQ_STARTDATE>value</BQ_STARTDATE>
      <BQ_STARTTIME>value</BQ_STARTTIME>
      <BQ_ENDDATE>value</BQ_ENDDATE>
      <BQ_ENDTIME>value</BQ_ENDTIME>
      <BQ_GUESTNAME>value</BQ_GUESTNAME>
      <BQ_NUMBERSOFGUESTS>value</BQ_NUMBERSOFGUESTS>
      <BQ_EMAIL>value</BQ_EMAIL>
      <BQ_MOBILENR>value</BQ_MOBILENR>
      <BQ_COMMENT>value</BQ_COMMENT>
      <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
      <BQ_OPRETTETDATO>value</BQ_OPRETTETDATO>
      <BQ_OPRETTETKL>value</BQ_OPRETTETKL>
    </BookingListQueue>
  </ReturnQueue>
</ListBookings_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/ListBookings/brugernavnvalue?kodeord=value&FraDato=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"?>
<ListBookings_response xmlns="">
  <ReturnQueue>
    <BookingListQueue>
      <BQ_ID>value</BQ_ID>
      <BQ_GUID>value</BQ_GUID>
      <BQ_ZONE>value</BQ_ZONE>
      <BQ_BORDNR>value</BQ_BORDNR>
      <BQ_STARTDATE>value</BQ_STARTDATE>
      <BQ_STARTTIME>value</BQ_STARTTIME>
      <BQ_ENDDATE>value</BQ_ENDDATE>
      <BQ_ENDTIME>value</BQ_ENDTIME>
      <BQ_GUESTNAME>value</BQ_GUESTNAME>
      <BQ_NUMBERSOFGUESTS>value</BQ_NUMBERSOFGUESTS>
      <BQ_EMAIL>value</BQ_EMAIL>
      <BQ_MOBILENR>value</BQ_MOBILENR>
      <BQ_COMMENT>value</BQ_COMMENT>
      <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
      <BQ_OPRETTETDATO>value</BQ_OPRETTETDATO>
      <BQ_OPRETTETKL>value</BQ_OPRETTETKL>
    </BookingListQueue>
    <BookingListQueue>
      <BQ_ID>value</BQ_ID>
      <BQ_GUID>value</BQ_GUID>
      <BQ_ZONE>value</BQ_ZONE>
      <BQ_BORDNR>value</BQ_BORDNR>
      <BQ_STARTDATE>value</BQ_STARTDATE>
      <BQ_STARTTIME>value</BQ_STARTTIME>
      <BQ_ENDDATE>value</BQ_ENDDATE>
      <BQ_ENDTIME>value</BQ_ENDTIME>
      <BQ_GUESTNAME>value</BQ_GUESTNAME>
      <BQ_NUMBERSOFGUESTS>value</BQ_NUMBERSOFGUESTS>
      <BQ_EMAIL>value</BQ_EMAIL>
      <BQ_MOBILENR>value</BQ_MOBILENR>
      <BQ_COMMENT>value</BQ_COMMENT>
      <BQ_NEWSLETTER>value</BQ_NEWSLETTER>
      <BQ_OPRETTETDATO>value</BQ_OPRETTETDATO>
      <BQ_OPRETTETKL>value</BQ_OPRETTETKL>
    </BookingListQueue>
  </ReturnQueue>
</ListBookings_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 /ListBookings HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/json
Content-Type: application/json
Content-Length: length

{
  "brugernavn" : "value",
  "kodeord" : "value",
  "zone" : "value",
  "FraDato" : "value",
  "Tildato" : "value"
}

Example Response

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

{
  "ListBookings_response" : {
    "ReturnQueue" : [
      {
        "BQ_ID" : value,
        "BQ_GUID" : "value",
        "BQ_ZONE" : value,
        "BQ_BORDNR" : value,
        "BQ_STARTDATE" : "value",
        "BQ_STARTTIME" : "value",
        "BQ_ENDDATE" : "value",
        "BQ_ENDTIME" : "value",
        "BQ_GUESTNAME" : "value",
        "BQ_NUMBERSOFGUESTS" : value,
        "BQ_EMAIL" : "value",
        "BQ_MOBILENR" : value,
        "BQ_COMMENT" : "value",
        "BQ_NEWSLETTER" : value,
        "BQ_OPRETTETDATO" : "value",
        "BQ_OPRETTETKL" : "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 /ListBookings?brugernavn=value&kodeord=value&FraDato=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

{
  "ListBookings_response" : {
    "ReturnQueue" : [
      {
        "BQ_ID" : value,
        "BQ_GUID" : "value",
        "BQ_ZONE" : value,
        "BQ_BORDNR" : value,
        "BQ_STARTDATE" : "value",
        "BQ_STARTTIME" : "value",
        "BQ_ENDDATE" : "value",
        "BQ_ENDTIME" : "value",
        "BQ_GUESTNAME" : "value",
        "BQ_NUMBERSOFGUESTS" : value,
        "BQ_EMAIL" : "value",
        "BQ_MOBILENR" : value,
        "BQ_COMMENT" : "value",
        "BQ_NEWSLETTER" : value,
        "BQ_OPRETTETDATO" : "value",
        "BQ_OPRETTETKL" : "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/ListBookings/brugernavnvalue?kodeord=value&FraDato=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

{
  "ListBookings_response" : {
    "ReturnQueue" : [
      {
        "BQ_ID" : value,
        "BQ_GUID" : "value",
        "BQ_ZONE" : value,
        "BQ_BORDNR" : value,
        "BQ_STARTDATE" : "value",
        "BQ_STARTTIME" : "value",
        "BQ_ENDDATE" : "value",
        "BQ_ENDTIME" : "value",
        "BQ_GUESTNAME" : "value",
        "BQ_NUMBERSOFGUESTS" : value,
        "BQ_EMAIL" : "value",
        "BQ_MOBILENR" : value,
        "BQ_COMMENT" : "value",
        "BQ_NEWSLETTER" : value,
        "BQ_OPRETTETDATO" : "value",
        "BQ_OPRETTETKL" : "value"
      }
    ]
  }
}