GET api/bookings/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Cyberlogic.eTourism.Mappings.Mobile.Dto.Bookings.BookingDTOName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
CustomerId | integer |
None. |
|
CustomerName | string |
None. |
|
ReferenceNumber | string |
None. |
|
LeadClient | string |
None. |
|
Clients | Collection of Cyberlogic.eTourism.Mappings.Mobile.Dto.Bookings.ClientDTO |
None. |
|
Language | Cyberlogic.eTourism.Mappings.Mobile.Dto.Shared.LanguageDTO |
None. |
|
Adults | integer |
None. |
|
Children | integer |
None. |
|
Infants | integer |
None. |
|
RoomNumber | string |
None. |
|
CheckIn | string |
None. |
|
CheckOut | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": 1, "CustomerId": 2, "CustomerName": "sample string 3", "ReferenceNumber": "sample string 4", "LeadClient": "sample string 5", "Clients": [ { "Id": 1, "Title": "sample string 2", "FirstName": "sample string 3", "LastName": "sample string 4" }, { "Id": 1, "Title": "sample string 2", "FirstName": "sample string 3", "LastName": "sample string 4" } ], "Language": { "Id": 1, "SpokenLanguage": "sample string 2" }, "Adults": 6, "Children": 7, "Infants": 8, "RoomNumber": "sample string 9", "CheckIn": "sample string 10", "CheckOut": "sample string 11" }
text/html
Sample:
{"Id":1,"CustomerId":2,"CustomerName":"sample string 3","ReferenceNumber":"sample string 4","LeadClient":"sample string 5","Clients":[{"Id":1,"Title":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4"},{"Id":1,"Title":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4"}],"Language":{"Id":1,"SpokenLanguage":"sample string 2"},"Adults":6,"Children":7,"Infants":8,"RoomNumber":"sample string 9","CheckIn":"sample string 10","CheckOut":"sample string 11"}
application/xml, text/xml
Sample:
<BookingDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Mappings.Mobile.Dto.Bookings"> <Adults>6</Adults> <CheckIn>sample string 10</CheckIn> <CheckOut>sample string 11</CheckOut> <Children>7</Children> <Clients> <ClientDTO> <FirstName>sample string 3</FirstName> <Id>1</Id> <LastName>sample string 4</LastName> <Title>sample string 2</Title> </ClientDTO> <ClientDTO> <FirstName>sample string 3</FirstName> <Id>1</Id> <LastName>sample string 4</LastName> <Title>sample string 2</Title> </ClientDTO> </Clients> <CustomerId>2</CustomerId> <CustomerName>sample string 3</CustomerName> <Id>1</Id> <Infants>8</Infants> <Language xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Mappings.Mobile.Dto.Shared"> <d2p1:Id>1</d2p1:Id> <d2p1:SpokenLanguage>sample string 2</d2p1:SpokenLanguage> </Language> <LeadClient>sample string 5</LeadClient> <ReferenceNumber>sample string 4</ReferenceNumber> <RoomNumber>sample string 9</RoomNumber> </BookingDTO>