POST api/hire/BookMyCab
Request Information
URI Parameters
None.
Body Parameters
BookTaxiViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| PickupAddress | AddressViewModel |
None. |
|
| PickupTime | date |
None. |
|
| PickupLocationAddress | string |
None. |
|
| DestinationAddress | string |
None. |
|
| PromoCode | string |
None. |
|
| Latitude | decimal number |
None. |
|
| Longitude | decimal number |
None. |
|
| DestinationLat | decimal number |
None. |
|
| DestinationLong | decimal number |
None. |
|
| VehicleType | string |
None. |
|
| Model | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"PickupAddress": {
"No": "sample string 1",
"Street": "sample string 2",
"Town": "sample string 3",
"City": "sample string 4",
"PostCode": "sample string 5",
"StateOrProvince": "sample string 6",
"Country": "sample string 7",
"Summary": "sample string 1,sample string 2,sample string 3,sample string 4"
},
"PickupTime": "2025-12-06T09:45:27.9071222+05:30",
"PickupLocationAddress": "sample string 1",
"DestinationAddress": "sample string 2",
"PromoCode": "sample string 3",
"Latitude": 4.1,
"Longitude": 5.1,
"DestinationLat": 6.1,
"DestinationLong": 7.1,
"VehicleType": "sample string 8",
"Model": "sample string 9"
}
application/xml, text/xml
Sample:
<BookTaxiViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Codezync.Taxi.ViewModels">
<DestinationLat>6.1</DestinationLat>
<DestinationLong>7.1</DestinationLong>
<Latitude>4.1</Latitude>
<Longitude>5.1</Longitude>
<Model>sample string 9</Model>
<VehicleType>sample string 8</VehicleType>
<DestinationAddress>sample string 2</DestinationAddress>
<PickupAddress>
<City>sample string 4</City>
<Country>sample string 7</Country>
<No>sample string 1</No>
<PostCode>sample string 5</PostCode>
<StateOrProvince>sample string 6</StateOrProvince>
<Street>sample string 2</Street>
<Town>sample string 3</Town>
</PickupAddress>
<PickupLocationAddress>sample string 1</PickupLocationAddress>
<PickupTime>2025-12-06T09:45:27.9071222+05:30</PickupTime>
<PromoCode>sample string 3</PromoCode>
</BookTaxiViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.