Method
POST /v1/bookings/wizard/session
Body Parameters
Bearer token (requires bookings:write).
Request Example
curl -X POST "https://api.voyantcloud.com/v1/bookings/wizard/session" \
-H "Authorization: Bearer $VOYANT_API_KEY" \
-H "content-type: application/json" \
-d '{
"id": "wzd_01J0C6ZFWN6JQM4TP7A1ZA6X0M",
"language": "en",
"currency": "EUR",
"step": 2,
"data": {
"step_1": { "productId": "prod_123", "departureId": "dep_456" },
"step_2": {
"departureId": "dep_456",
"rooms": [{ "categoryKey": "double", "occupancy": 2, "quantity": 1 }]
}
}
}'
Response Fields
Wizard session identifier.
Returned when a new session record was inserted.
Returned when an existing session was merged.
Response Example
{ "id": "wzd_01J0C6ZFWN6JQM4TP7A1ZA6X0M", "upserted": true }
When id references a consumed or completed session, the API creates a fresh session and returns the new identifier.