POST Booking/IsBookingAvailable
Get whether booking is available or not
Request Information
URI Parameters
None.
Body Parameters
RequestIsBookingAvailable| Name | Description | Type | Additional information |
|---|---|---|---|
| PlaceID | integer |
None. |
|
| Amount | integer |
None. |
|
| ArrivalDate |
format yyyyMMdd ie. 20011231 if hours then format yyyyMMddHH ie 2001123123 |
string |
None. |
| ArrivalDateTarget | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"PlaceID": 1,
"Amount": 2,
"ArrivalDate": "sample string 3",
"ArrivalDateTarget": "sample string 4"
}
text/html
Sample:
{"PlaceID":1,"Amount":2,"ArrivalDate":"sample string 3","ArrivalDateTarget":"sample string 4"}
application/xml, text/xml
Sample:
<RequestIsBookingAvailable xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestModels"> <Amount>2</Amount> <ArrivalDate>sample string 3</ArrivalDate> <ArrivalDateTarget>sample string 4</ArrivalDateTarget> <PlaceID>1</PlaceID> </RequestIsBookingAvailable>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
if true booking is available else false
Success| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true
}
text/html
Sample:
{"success":true}
application/xml, text/xml
Sample:
<Success xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalModels"> <success>true</success> </Success>