Endpoints
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.