Quick Start Guide
Follow these steps to complete a full booking using the AITravel.Tech API.
The easiest way to test the API is using the API Explorer or Sandbox.
1. Authentication
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
2. Booking Workflow (MANDATORY)
Search → Property Options → Quote → Passengers → Confirm
3. Step-by-Step Flow
Step 1 — Search
POST /v1/search
Step 2 — Property Options
POST /v1/property/options
Step 3 — Create Quote (CRITICAL)
Do NOT send the raw offer object.
You must map fields into the required quote structure.
POST /v1/quote
Step 4 — Add Passengers
POST /v1/booking/passengers
Step 5 — Convert Booking
POST /v1/booking/convert
Step 6 — Confirm Booking
POST /v1/booking/confirm
Critical Rules
- Always use OfferId exactly as returned
- Do NOT modify pricing
- Do NOT calculate totals manually
- Always include children_ages (use [] if none)
Quick Start Guide
Follow these steps to complete a full booking using the API.
Workflow
Search → Property Options → Quote → Passengers → Confirm
Critical Rule
Do NOT send the raw offer object.
You must map fields into the quote structure.