Create Order
Convert an offer into a pending order.
Ticket Order
Issue tickets and finalize the booking.
Order lifecycle
Orders progress through a defined lifecycle:| Status | Description |
|---|---|
PENDING | Order created, awaiting ticketing |
PROCESSING | Ticket issuance in progress |
TICKETED | Tickets successfully issued |
FAILED | Ticketing failed |
CANCELED | Order canceled before ticketing |
REFUNDED | Order refunded after ticketing |
Orders remain editable only while in the
PENDING state.
Once ticketed, the order becomes immutable.Order state machine
Orders progress through a deterministic lifecycle managed by Travelbase. Each state represents a distinct phase in the booking and ticketing process. Once an order reaches a terminal state, no further modifications are allowed unless explicitly supported (such as refunds).Lifecycle overview
PENDING— Order created, awaiting ticketingPROCESSING— Ticket issuance in progressTICKETED— Tickets successfully issued (terminal)FAILED— Ticket issuance failed (terminal)CANCELED— Order canceled before ticketing (terminal)REFUNDED— Ticketed order has been refunded (terminal)
Orders are editable only in the
PENDING state. Once ticketing begins, the order becomes immutable to
ensure financial and ticketing consistency.State transitions
Create order
Creates a new order from a previously selected offer.Headers
| Header | Required | Description |
|---|---|---|
Idempotency-Key | Yes | Unique key to prevent duplicate bookings |
Body
Response
Update passengers
Updates passenger information for an existing order. Only allowed while order status is PENDING.Endpoints
Body
The request body must be a JSON object with the following structure:Ticket order
Issues airline tickets and finalizes the order.POST /v1/air/orders/:id/ticket
Headers
| Header | Required | Description |
|---|---|---|
| Idempotency-Key | Yes | Prevent duplicate ticket issuance |
Response
List orders
Returns recent orders.GET /v1/air/orders
Query parameters
| Parameter | Required | Description |
|---|---|---|
| limit | No | Number of orders to return (default: 25) |
| status | No | Filter by order status |
Example
Retrieve order
Fetches an order with its offer snapshot.Response
The offer snapshot represents the exact pricing and itinerary used during booking, ensuring financial
correctness, auditability, and replay safety.
Idempotency
Travelbase uses idempotency keys to guarantee safe retries. If a request with the same idempotency key is retried, Travelbase returns the original response instead of creating duplicate orders or issuing duplicate tickets.Learn about idempotency
Understand how idempotency prevents duplicate bookings and ensures safe retries.
Architecture abstraction
Travelbase provides a unified, supplier-agnostic order interface. This ensures:- consistent API behavior
- predictable order lifecycle
- simplified integration
- supplier-independent infrastructure
- forward compatibility as airline systems evolve
Travelbase manages airline communication, ticket issuance, and settlement internally. Your integration remains
stable without requiring supplier-specific handling.
Error handling
Travelbase returns standard HTTP status codes.Example error
Order operations are state-dependent. Always verify the order
status and ensure sufficient wallet
balance before performing ticketing operations.Next steps
Search offers
Find flight offers to create orders.
Wallet
Manage your balance required for ticket issuance.

