Method
POST /v1/bookings/wizard
Body Parameters
Bearer token (requires bookings:write).
Request Example
curl -X POST "https://api.voyantcloud.com/v1/bookings/wizard" \
-H "Authorization: Bearer $VOYANT_API_KEY" \
-H "content-type: application/json" \
-d '{
"productId": "prod_123",
"departureId": "dep_456",
"currency": "EUR",
"language": "en",
"paxAdults": 2,
"rooms": [
{ "categoryKey": "double", "occupancy": 2, "quantity": 1 }
],
"billing": {
"firstName": "Alex",
"lastName": "Rivera",
"email": "[email protected]"
}
}'
Response Fields
true when the payload is queued for downstream processing.
Opaque tracking code generated for the wizard submission.
Response Example
{ "accepted": true, "code": "2F4D9A1C" }
This endpoint does not persist bookings immediately. Trigger.dev workflows ingest the payload (using the returned code or session context) to create the booking after payment confirmation.