Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /v1/bookings/wizard/session | Create or update a wizard session and persist progress between steps. |
| GET | /v1/bookings/wizard/:id | Retrieve the saved wizard session payload. |
| POST | /v1/bookings/wizard/:id/commit | Validate the session and create a booking. |
| POST | /v1/bookings/wizard | Submit a snapshot for asynchronous booking orchestration. |
Wizard endpoints require workspace-scoped API keys. Read routes need
bookings:read; mutations require bookings:write.Key concepts
- Wizard session: JSON payload stored in
bookings.wizard_sessions, tracking steps (step_1…step_4), passengers, rooms, add-ons, and billing. - Partial saves:
POST /wizard/sessionmerges payloads whenidis provided, allowing clients to save after each step. - Commit:
POST /wizard/:id/commitenforces workspace-configured billing/passenger forms and creates a draft booking, returningbookingId. - Async submission:
POST /wizardaccepts a validated snapshot (without writing to the DB) and queues downstream workflows. - Workspace resolution: Sessions automatically infer workspace from product/departure if not supplied in the request context.