Get quotes
POST/v1/quotes
Request a quote for a ride. This endpoint provides estimated pricing based on the given parameters like location, destination, and ride type.
Supported roles
- Partner
- Fleet manager
Request
- application/json
Body
required
Pickup time can either be a specific date-time in ISO 8601 format for reservation or the string ASAP
for on-demand booking.
Pickup timezone
pickup objectrequired
Pick up point
Possible values: >= -90
and <= 90
Possible values: >= -180
and <= 180
destination objectrequired
Drop off point
Possible values: >= -90
and <= 90
Possible values: >= -180
and <= 180
Number of luggage
Possible values: >= 1
Number of passengers
Responses
- 200
- 400
- 401
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
Quote ID: Get quotes
price object
Number of luggage
Possible values: >= 1
Number of passengers
eta object
Estimated distance and duration from the nearest driver to the pickup point. Only available for on-demand bookings.
Distance in meters from the nearest driver to the pickup point
Duration in seconds from the nearest driver to the pickup point
provider object
Phone number in E.164 format
{
"quoteId": "f9c2a981-8dfa-4b26-b7c6-8a03ab5bc6c7",
"expiresAt": "2024-01-04T03:52:57.407Z",
"vehicleType": "Sedan",
"price": {
"value": 68.86,
"currency": "USD"
},
"luggage": 0,
"passengers": 1,
"eta": {
"distance": 6425,
"duration": 343
},
"provider": {
"name": "Good Journey",
"phone": "+12051234567"
}
}
Invalid input
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}