latestOpenAPI 3.0.12026-08-15202774.6 KB
cdae4166b346
Quotes
Create a quote
Creates a fare estimate for a delivery.
You can create a quote in two ways:
- Two-stop quote: Provide origin + destination + product
- Multi-stop quote: Provide stops array + product
fare_estimate returns one fare object for a fixed price, or two fare objects as [low, high] for variable-labor products. Fare amounts are integer cents in USD. Quote IDs are intended for near-term booking creation; create a new quote if an unused quote is stale or no longer found.
post/quotes
Request body
Example request
{
"stops": [
{
"location": "123e4567-e89b-12d3-a456-426614174000"
}
],
"origin": "123e4567-e89b-12d3-a456-426614174000",
"destination": "123e4567-e89b-12d3-a456-426614174000",
"product": "pickup"
}Response
Created