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 object
Drop off point. Required when duration is not provided.
Possible values: >= -90 and <= 90
Possible values: >= -180 and <= 180
Possible values: >= 1
Duration in hours. Required when destination is not provided.
Number of luggage
Possible values: >= 1
Number of passengers
Responses
- 200
- 400
- 401
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
none- Standard feeperDay- Fee per day (future)eachTime- Flat fee per bookingeach- Fee per quantity selectedperPerson- Fee per passenger- ]
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
Hourly package ID
Hourly package duration in hours
additionalServices object[]
List of additional services available for this quote
Our Good Journey Service ID
Service name
Service code
Service description
Whether the service is required. true if required, false if not required.
Possible values: [none, perDay, eachTime, each, perPerson]
Pricing type for the additional service:
Price of the additional service
Possible values: >= 1
Maximum quantity allowed. For each type, return max quantity, for others, return 1.
{
"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"
},
"packageId": "68df3a1c45aa68cd31fbfef3",
"packageDuration": 3,
"additionalServices": [
{
"id": "service_123",
"name": "Child Seat",
"description": "Child safety seat for children",
"include": false,
"type": "each",
"price": 10.5,
"maxQuantity": 3
},
{
"id": "service_456",
"name": "WiFi",
"description": "In-vehicle WiFi access",
"include": true,
"type": "per_day",
"price": 5,
"maxQuantity": 1
}
]
}
Invalid input
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}