Trip API
Discover valid IDs, quote, and book multi-stop trips through the Partner API.
Trip API is the partner-facing name for EgyptLimo's configured multi-stop Trip product. The current engine version is v2, but you do not need to put a version in the public route. It requires the partner's api and trip entitlements. All routes use the usual OAuth bearer token, HMAC signature, and merchant headers; booking also requires Idempotency-Key. Append the paths below to your environment's /api/v1 base URL.
| Method | Path | Scope |
|---|---|---|
GET | /integration/trips/options | catalog:read |
POST | /integration/trips/quotes | quotes:read |
POST | /integration/trips/bookings | bookings:create |
1. Discover available options
Call GET /integration/trips/options first. Its response contains pickup_regions, zones, destinations, vehicles, guide_languages, extras, and selection_rules. Every public catalogue id is an opaque string issued for your API client; database integer IDs are never returned and are rejected in quote requests. Choose a pickup region whose id is in a zone's start_region_ids, choose destination IDs from that same zone's destination_ids, and choose a vehicle from vehicles[].id. The order of destination IDs is the visit order. Keep IDs as strings; do not parse or generate them. The opaque format reduces enumeration but is not a substitute for OAuth, signatures, scopes, and client-ownership checks. A destination or guide can become unavailable between discovery and quote creation, so handle a quote rejection by reloading the catalogue.
Sandbox may contain demo zones for testing. Live API exposes only zones explicitly published by an administrator at Admin → Trip Control → Zones → Publish to live API; publishing requires pickup Regions, active destinations, and active pricing rules. Unpublished zones cannot be quoted or booked live. An empty live zones list means the admin has not published a production-ready zone yet.
Illustrative catalogue shape (IDs are examples, not production values):
{
"product": "trip",
"version": "v2",
"pickup_regions": [{"id": "trg_5c8d7e6f4a3b2c1d0e9f8a7b", "name": "Configured pickup region"}],
"zones": [{"id": "tzn_6d9e8f7a5b4c3d2e1f0a9b8c", "name": "Configured Trip Zone", "start_region_ids": ["trg_5c8d7e6f4a3b2c1d0e9f8a7b"], "destination_ids": ["tds_7e0f9a8b6c5d4e3f2a1b0c9d", "tds_8f1a0b9c7d6e5f4a3b2c1d0e"]}],
"destinations": [{"id": "tds_7e0f9a8b6c5d4e3f2a1b0c9d", "name": "Stop A"}, {"id": "tds_8f1a0b9c7d6e5f4a3b2c1d0e", "name": "Stop B"}],
"vehicles": [{"id": "tvc_9a2b1c0d8e7f6a5b4c3d2e1f", "name": "Configured vehicle", "passenger_capacity": 4}],
"guide_languages": ["English"],
"extras": [{"id": "tex_0b3c2d1e9f8a7b6c5d4e3f2a", "name": "Configured extra"}],
"selection_rules": {
"pickup_region_id": "Choose pickup_regions[].id that appears in a zone.start_region_ids.",
"destination_ids": "Choose ordered destinations[].id values allowed by the selected zone.destination_ids.",
"vehicle_type_id": "Choose vehicles[].id.",
"custom_places": "Optional named stops; maximum five. Airport places can include is_airport=true and a catalogue region_id.",
"quote_endpoint": "/integration/trips/quotes"
}
}2. Request an EgyptLimo quote
POST /integration/trips/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_region_id": "trg_5c8d7e6f4a3b2c1d0e9f8a7b",
"destination_ids": ["tds_7e0f9a8b6c5d4e3f2a1b0c9d", "tds_8f1a0b9c7d6e5f4a3b2c1d0e"],
"pickup_is_airport": true,
"pickup_is_hotel": false,
"custom_places": [],
"airport_return_place": {"name": "Hotel Example", "place_kind": "hotel", "region_id": "trg_5c8d7e6f4a3b2c1d0e9f8a7b"},
"vehicle_type_id": "tvc_9a2b1c0d8e7f6a5b4c3d2e1f",
"start_datetime": "2026-11-15T09:00:00+02:00",
"guide_required": true,
"guide_language": "English",
"extras": [{"id": "tex_0b3c2d1e9f8a7b6c5d4e3f2a"}]
}destination_ids accepts up to 10 configured destinations; custom_places accepts up to five named places. At least one stop is needed. The configured zone, route rules, selected vehicle, guide policy and language, and extras all affect the server-calculated quote.
For a fixed stop-count package, set pickup_is_airport: true when the pickup is an airport. A searched airport stop can be represented in custom_places with is_airport: true, place_kind: "airport", and its region_id from this client's pickup_regions catalogue (opaque trg_... ID). The server adds at most one same-region Private transfer price for the selected vehicle, even if the route contains multiple airports. The required same-region Private price must be configured for the airport's region. Non-airport custom places remain ordinary stops.
Fixed package overtime terms are configured by the admin for each vehicle. A package rule can use one shared overtime policy for all selected vehicles or a separate policy per vehicle. The quote returns the selected vehicle's included hours, grace period, billing increment, rate, and currency in service_terms; overtime is not estimated into the upfront total.
For a trip that starts at an airport, airport_return_place can record the selected final hotel or airport. It does not add another airport transfer price. pickup_is_hotel indicates a hotel pickup. hotel_room_number may be provided for hotel pickups or hotel destinations, but it is optional.
Illustrative response (IDs, names, and amounts depend on configured data):
{
"quote_id": "ftq_example123",
"product": "trip",
"version": "v2",
"selection": {"pickup_region_id": "trg_5c8d7e6f4a3b2c1d0e9f8a7b", "destination_ids": ["tds_7e0f9a8b6c5d4e3f2a1b0c9d", "tds_8f1a0b9c7d6e5f4a3b2c1d0e"], "vehicle_type_id": "tvc_9a2b1c0d8e7f6a5b4c3d2e1f", "extras": [{"id": "tex_0b3c2d1e9f8a7b6c5d4e3f2a"}]},
"currency": "USD",
"total": 235,
"lines": [
{"type": "stop", "visit_order": 1, "label": "Configured destination", "amount": 180},
{"type": "guide", "label": "Guide · English", "amount": 40},
{"type": "extra", "label": "Configured extra", "amount": 15}
],
"guide": {"enabled": true, "required": false, "language": "English", "fee": 40},
"expires_at": "2026-11-15T07:15:00Z"
}This is the complete customer-facing EgyptLimo price. Internal pricing-rule IDs, percentages, reference rates, and database IDs are not exposed. GET /integration/quotes/{quote_id} retrieves the same quote later while retained. Quotes expire after 15 minutes; never calculate or send your own booking amount. An opaque catalogue ID belonging to a different API client returns 422 invalid_catalog_id.
3. Create the booking
POST /integration/trips/bookings
Idempotency-Key: <unique key for this booking>
Content-Type: application/json{
"quote_id": "ftq_example123",
"partner_reference": "AGENCY-TRIP-1001",
"pickup_location": "Cairo International Airport",
"flight_number": "MS 985",
"hotel_room_number": "1208",
"passengers_count": 2,
"passenger": {"name": "Guest Name", "phone": "+201000000000", "email": "guest@example.com"},
"airport_return_place": {"name": "Hotel Example", "place_kind": "hotel", "region_id": "trg_5c8d7e6f4a3b2c1d0e9f8a7b"},
"special_requests": "Meet at arrivals",
"file_reference": "OPTIONAL-GROUP-REF"
}Illustrative 201 response:
{
"booking_id": "pbk_example123",
"partner_reference": "AGENCY-TRIP-1001",
"quote_id": "ftq_example123",
"currency": "USD",
"total": 235,
"status": "New Order",
"payment_method": "invoice"
}The quote must belong to this API client and still be valid. EgyptLimo reprices before saving; a changed route price, guide, extra, or currency returns 409 requote_required. A reused partner_reference with a different quote returns 409 partner_reference_conflict. Sandbox returns an sbk_ simulated booking; live returns pbk_. Both can be read through the standard booking endpoints. Direct bookings settle on the partner's consolidated invoice—there is no hosted customer checkout in this flow. The optional file_reference is a company-owned label on a Trip booking, not a global identifier. For an atomic group of standard transfers, use File Booking instead.
Provide flight_number when the quote includes an airport. hotel_room_number is optional and can be included when the pickup or selected accommodation is a hotel. Include airport_return_place in the quote request so it stays attached to the quoted trip; the booking stores any supplied flight and room details for operations. On booking retrieval, request the flight and passenger detail sections to read those saved values.
For fixed-package Foreign Trips, an admin records the actual total trip duration when completing the booking. EgyptLimo applies the saved package overtime policy and adds any resulting overtime charge to the booking total and its pricing breakdown. On booking retrieval, total_price and tourism_pricing.total show the adjusted total; tourism_pricing.overtime reports the actual duration, billable minutes, charged increments, rate, and overtime amount. This post-trip adjustment is recorded on the partner booking; it is not collected by the booking API as a separate payment.
The older /integration/foreign-trips/v2/* paths remain accepted for compatibility, but new integrations should use /integration/trips/*.