POST api/v1/booking/BookTripOnDemand
Request Information
URI Parameters
None.
Body Parameters
BookTripOnDemandModel| Name | Description | Type | Additional information |
|---|---|---|---|
| BookingID | integer |
None. |
|
| ArrivalDate | date |
None. |
|
| ReturnDate | date |
None. |
|
| ServiceTypeId | integer |
None. |
|
| ServiceType | string |
None. |
|
| BookingName | string |
None. |
|
| EmailId | string |
None. |
|
| ContactNumber | string |
None. |
|
| DestinationFrom | string |
None. |
|
| DestinationTo | string |
None. |
|
| TotalPax | integer |
None. |
|
| AdultPax | integer |
None. |
|
| ChildPax | integer |
None. |
|
| InfantPax | integer |
None. |
|
| PickupLocation | string |
None. |
|
| BookingNotes | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"BookingID": 1,
"ArrivalDate": "2025-12-10T09:06:36.2591966+05:45",
"ReturnDate": "2025-12-10T09:06:36.2591966+05:45",
"ServiceTypeId": 1,
"ServiceType": "sample string 2",
"BookingName": "sample string 3",
"EmailId": "sample string 4",
"ContactNumber": "sample string 5",
"DestinationFrom": "sample string 6",
"DestinationTo": "sample string 7",
"TotalPax": 1,
"AdultPax": 1,
"ChildPax": 1,
"InfantPax": 1,
"PickupLocation": "sample string 8",
"BookingNotes": "sample string 9"
}
application/xml, text/xml
Sample:
<BookTripOnDemandModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MY.API.Models.DH"> <AdultPax>1</AdultPax> <ArrivalDate>2025-12-10T09:06:36.2591966+05:45</ArrivalDate> <BookingID>1</BookingID> <BookingName>sample string 3</BookingName> <BookingNotes>sample string 9</BookingNotes> <ChildPax>1</ChildPax> <ContactNumber>sample string 5</ContactNumber> <DestinationFrom>sample string 6</DestinationFrom> <DestinationTo>sample string 7</DestinationTo> <EmailId>sample string 4</EmailId> <InfantPax>1</InfantPax> <PickupLocation>sample string 8</PickupLocation> <ReturnDate>2025-12-10T09:06:36.2591966+05:45</ReturnDate> <ServiceType>sample string 2</ServiceType> <ServiceTypeId>1</ServiceTypeId> <TotalPax>1</TotalPax> </BookTripOnDemandModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |