POST Booking/GetBookings

Get bookings

Request Information

URI Parameters

None.

Body Parameters

RequestGetBookings
NameDescriptionTypeAdditional 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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RequestGetBookings'.

Response Information

Resource Description

Collection of Bookings
NameDescriptionTypeAdditional information
ID

integer

None.

DateCreated

date

None.

PlaceID

integer

None.

Date

date

None.

Nights

integer

None.

FirstName

string

None.

LastName

string

None.

Email

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:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Error getting value from 'Place_Images_Single_List' on 'DBModels.BookingPlaces'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Error getting value from 'Place_Images_Single_List' on 'DBModels.BookingPlaces'.

text/html

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/html'. Exception message: Error getting value from 'Place_Images_Single_List' on 'DBModels.BookingPlaces'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: No set method for property 'Place_Images_Single_List' in type 'DBModels.BookingPlaces'.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: No set method for property 'Place_Images_Single_List' in type 'DBModels.BookingPlaces'.