POST api/RequestRide

Request Information

URI Parameters

None.

Body Parameters

RequestRidePost
NameDescriptionTypeAdditional information
PassengerId

integer

None.

FromAddress

string

None.

ToAddress

string

None.

CompanyId

integer

None.

RideType

integer

None.

FromAddressLatLng

string

None.

ToAddressLatLng

string

None.

DateTime

date

None.

WaitPerMin

decimal number

None.

BaseAmount

decimal number

None.

AmountPerKM

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "PassengerId": 1,
  "FromAddress": "sample string 2",
  "ToAddress": "sample string 3",
  "CompanyId": 4,
  "RideType": 5,
  "FromAddressLatLng": "sample string 6",
  "ToAddressLatLng": "sample string 7",
  "DateTime": "2025-12-17T07:06:42.6167115+01:00",
  "WaitPerMin": 9.1,
  "BaseAmount": 10.1,
  "AmountPerKM": 11.1
}

application/xml, text/xml

Sample:
<RequestRidePost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models">
  <AmountPerKM>11.1</AmountPerKM>
  <BaseAmount>10.1</BaseAmount>
  <CompanyId>4</CompanyId>
  <DateTime>2025-12-17T07:06:42.6167115+01:00</DateTime>
  <FromAddress>sample string 2</FromAddress>
  <FromAddressLatLng>sample string 6</FromAddressLatLng>
  <PassengerId>1</PassengerId>
  <RideType>5</RideType>
  <ToAddress>sample string 3</ToAddress>
  <ToAddressLatLng>sample string 7</ToAddressLatLng>
  <WaitPerMin>9.1</WaitPerMin>
</RequestRidePost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

RequestRideResponse
NameDescriptionTypeAdditional information
Response

string

None.

RideId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Response": "sample string 1",
  "RideId": 2
}

application/xml, text/xml

Sample:
<RequestRideResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models">
  <Response>sample string 1</Response>
  <RideId>2</RideId>
</RequestRideResponse>