Booking links
Create and manage pre-filled customer links for Live checkout or isolated Sandbox simulation.
Booking links let a partner prepare a trip and hand off customer details to EgyptLimo's hosted page. The same path has different effects by credential environment:
This hosted handoff is the exception to direct API booking collections: the customer completes the EgyptLimo journey, so a Booking Link must not be included in the partner's consolidated direct-booking trip invoice.
| Environment | Token | Completion result | Payment |
|---|---|---|---|
| Sandbox | sbl_… | Sandbox-only booking sbk_… | Disabled (409) |
| Live | Opaque token | Real booking awaiting the configured approval flow | Only after approval |
See Sandbox booking-link simulation for the complete isolated test journey. Both environments require a current EgyptLimo Quote; Sandbox completion is not a live reservation.
Create a Live link
POST /integration/booking-links requires bookings:create, signed headers, and Idempotency-Key.
POST /api/v1/integration/booking-links HTTP/1.1
Authorization: Bearer <live_access_token>
X-Merchant-Id: <merchant_id>
X-Key-Id: <signing_key_id>
X-Timestamp: 2026-11-09T10:00:00Z
X-Nonce: <unique_nonce>
X-Signature: <hmac_signature>
Idempotency-Key: <unique_key_for_this_request>
Content-Type: application/json{
"quote_id": "qte_7b6a…",
"vehicle_class": "Business Sedan",
"partner_reference": "AGENCY-LINK-1001",
"customer_first_name": "Ahmed",
"customer_email": "ahmed@example.com",
"editable_fields": ["customer_email", "customer_phone", "flight_number"],
"expiry_hours": 48
}| Field | Business meaning |
|---|---|
quote_id, vehicle_class | Required. Select a positively priced option from your own unexpired, all-inclusive EgyptLimo Quote. |
| Route, pickup, price, currency, Extras | Copied from the Quote. Client overrides return 422 quote_override_not_allowed. |
partner_reference | Your reconciliation key; persist it with the returned IDs. |
editable_fields | Customer-editable data only. price is not allowed. |
expiry_hours | 1–720; default 72. |
| Vehicle selection | Fixed to the quoted option. A change requires a new Quote and link. |
Create a Quote first. The link uses that exact route, vehicle, currency, and all-inclusive amount; the customer may enter only permitted identity and flight details.
201 Created
{
"booking_id": 456,
"link_token": "3ef1…",
"link_url": "https://booking.egyptlimo.com/booking/complete/3ef1…",
"expires_at": "2026-11-11T10:00:00+00:00",
"editable_fields": ["customer_email", "customer_phone", "flight_number"],
"status": "active",
"promo_code": null,
"allow_vehicle_selection": false,
"allow_discount": false,
"discount_percent": null,
"partner_reference": "AGENCY-LINK-1001",
"quote_id": "qte_7b6a…",
"price": "55.00",
"currency": "USD",
"pricing_source": "egyptlimo_quote"
}201 does not mean the customer completed checkout or the trip is confirmed.
List and inspect
GET /integration/booking-links?status=active&per_page=25 and GET /integration/booking-links/{token} require bookings:read and signed headers. Results are scoped to the authenticated partner. The list returns data and pagination (current_page, per_page, total). Statuses are active, used, expired, revoked.
{
"data": [{
"id": 123,
"booking_id": 456,
"token": "3ef1…",
"link_url": "https://booking.egyptlimo.com/booking/complete/3ef1…",
"expires_at": "2026-11-11T10:00:00+00:00",
"completed_at": null,
"editable_fields": ["customer_email", "customer_phone"],
"status": "active",
"allow_vehicle_selection": false,
"allow_discount": false,
"created_at": "2026-11-09T10:00:00+00:00"
}],
"pagination": { "current_page": 1, "per_page": 25, "total": 1 }
}Treat link_url like a customer-sensitive capability. Do not put it in public logs or third-party analytics. A customer cannot change the quoted price, vehicle, route, discount, or Extras.
Operational checklist
- Create with a unique idempotency key; save token and business reference.
- Retrieve and verify route, amount, currency, expiry, and editable fields.
- Complete once in a clean browser; a replay must not create a second booking.
- Reconcile final amount, approval/payment state, and webhook events before treating a Live trip as confirmed.