Quotes
Create, retrieve, and confirm a live transfer quote.
All routes below require signed headers and scope quotes:read; confirmation additionally requires quotes:confirm and Idempotency-Key.
Create a quote
Request
POST /integration/quotes
Content-Type: application/json
Authorization: Bearer <access_token>
X-Merchant-Id: <merchant_id>
X-Key-Id: <key_id>
X-Timestamp: <UTC ISO-8601 timestamp>
X-Nonce: <unique nonce>
X-Signature: <HMAC signature>{
"pickup_location": { "lat": 30.1219, "lng": 31.4056, "address": "Cairo International Airport" },
"dropoff_location": { "lat": 29.9773, "lng": 31.1325, "address": "Giza Pyramids" },
"pickup_datetime": "2026-11-10T14:30:00Z",
"passengers": 3,
"service_type": "Flat-Rate",
"partner_reference": "AGENCY-QUOTE-1001",
"cost_center": "CAI-ARRIVALS",
"flight_number": "MS777",
"special_requests": "Meet at arrival hall Gate 3",
"extras": [{ "id": "tex_<opaque-id-from-catalog>", "quantity": 1 }]
}200 OK response
{
"quote_id": "qte_7b6a…",
"status": "active",
"expires_at": "2026-11-10T14:45:00.000000Z",
"currency": "USD",
"price_includes_extras": true,
"price_scope": "all_inclusive",
"options": [{ "vehicle_class": "Business Sedan", "vehicle_name": "Business Sedan", "base_price": "45.00", "extras_total": "10.00", "extras": [{ "id": "tex_<opaque-id-from-catalog>", "quantity": 1, "unit_price": 10.00 }], "price": "55.00", "estimated_duration_mins": 60, "estimated_duration_source": "fallback_haversine" }],
"partner": { "partner_reference": "AGENCY-QUOTE-1001", "cost_center": "CAI-ARRIVALS" },
"route": { "pickup": { "name": "Cairo International Airport", "lat": 30.1219, "lng": 31.4056 }, "dropoff": { "name": "Giza Pyramids", "lat": 29.9773, "lng": 31.1325 }, "pickup_datetime": "2026-11-10T14:30:00Z", "passengers": 3, "service_type": "Flat-Rate" },
"extras": [{ "id": "tex_<opaque-id-from-catalog>", "quantity": 1 }],
"payment_options": [{ "method": "invoice", "label": "Consolidated partner settlement; no customer checkout payment" }],
"booking_requirements": ["quote_id", "vehicle_class", "partner_reference", "passenger.name", "passenger.phone"]
}The gateway exposes only positively priced, active route/vehicle options. An active catalog row with price zero is not sellable; if no positively priced option remains, creation returns 422 quote_unavailable rather than a successful empty quote. estimated_duration_mins, when marked with estimated_duration_source: "fallback_haversine", is a straight-line fallback estimate—not a driving-time SLA.
EgyptLimo calculates every option. options[].price is the all-inclusive amount (base_price + extras_total) in the quote currency, and the selected Extras are itemized. A Booking or Booking Link must use this quote and cannot change its route, vehicle, Extras, currency, or price. Unsupported guide add-ons are rejected rather than silently omitted from the amount. Expired or legacy base-only quotes require a new quote.
Retrieve a quote
Request
GET /integration/quotes/qte_7b6a…
<signed headers>200 OK response
The response is the same quote object returned by creation. Its status is active, confirmed, or expired; do not book with an expired quote.
Confirm a quote
Request
POST /integration/quotes/qte_7b6a…/confirm
Idempotency-Key: 5ce6b254-c98b-4c05-914d-2b2c70d1c920
<signed headers>200 OK response
{
"quote_id": "qte_7b6a…",
"status": "confirmed",
"expires_at": "2026-11-10T14:45:00.000000Z",
"currency": "USD",
"options": [{ "vehicle_class": "Business Sedan", "vehicle_name": "Business Sedan", "price": "45.00", "estimated_duration_mins": 60 }],
"next_action": "create_booking"
}Confirmation records intent only. It does not create a booking.
Expected errors
| Status | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing/invalid token or signature. |
403 | forbidden | Scope, host, or IP policy failed. |
404 | not_found | Quote is not owned by this client or does not exist. |
409 | quote_expired | Confirm was attempted after expiry. |
422 | validation_error | Missing or invalid quote input. |
422 | quote_unavailable | No sellable priced vehicle for the route. Do not substitute a zero-price offer. |