POST Booking/GetBookings
Get bookings
Request Information
URI Parameters
None.
Body Parameters
RequestGetBookings| Name | Description | Type | Additional information |
|---|---|---|---|
| DateFrom |
format yyyyMMdd ie. 20011231 |
string |
None. |
| DateTo |
format yyyyMMdd ie. 20011231 |
string |
None. |
| OnlyNoneCancelled |
true returns only none cancelled bookings |
boolean |
None. |
| ArrangerID |
0 returns bookings from all arrangers |
integer |
None. |
| PlaceID |
0 returns bookings from all places |
integer |
None. |
| ShowPlaceData |
true returns place data for each booking |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"DateFrom": "sample string 1",
"DateTo": "sample string 2",
"OnlyNoneCancelled": true,
"ArrangerID": 4,
"PlaceID": 5,
"ShowPlaceData": true
}
text/html
Sample:
{"DateFrom":"sample string 1","DateTo":"sample string 2","OnlyNoneCancelled":true,"ArrangerID":4,"PlaceID":5,"ShowPlaceData":true}
application/xml, text/xml
Sample:
<RequestGetBookings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YourTicketBrandingAPI"> <ArrangerID>4</ArrangerID> <DateFrom>sample string 1</DateFrom> <DateTo>sample string 2</DateTo> <OnlyNoneCancelled>true</OnlyNoneCancelled> <PlaceID>5</PlaceID> <ShowPlaceData>true</ShowPlaceData> </RequestGetBookings>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Collection of Bookings| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| DateCreated | date |
None. |
|
| PlaceID | integer |
None. |
|
| Date | date |
None. |
|
| Nights | integer |
None. |
|
| FirstName | string |
None. |
|
| LastName | string |
None. |
|
| string |
None. |
||
| PeopleAmount | integer |
None. |
|
| ConfirmDate | date |
None. |
|
| CancelDate | date |
None. |
|
| Type |
0 = day booking, 1 = hour booking |
integer |
None. |
| Hours |
Amount of hours booked |
integer |
None. |
| ListHours |
format HH:00 ie. ["12:00", "13:00", "14:00"] |
Collection of string |
None. |
| PlaceData | BookingPlaces |
None. |
Response Formats
application/json
Sample:
text/json
Sample:
text/html
Sample:
application/xml
Sample:
text/xml
Sample: