Method
GET /v1/products/:id/itinerary/days/:dayId/accommodation
Path Parameters
Product ID.
Itinerary day ID.
Headers
Bearer token (requires
products:read).curl "https://api.voyantcloud.com/v1/products/prod_123/itinerary/days/day_001/accommodation" \
-H "Authorization: Bearer $VOYANT_API_KEY"
{
"assignment": {
"id": "dayacc_001",
"option": {
"id": "accom_opt_123",
"name": "Hotel Riviera - Deluxe Room"
},
"nights": 2
}
}
Retrieve the accommodation assignment (if any) for a specific itinerary day.
GET /v1/products/:id/itinerary/days/:dayId/accommodation
products:read).curl "https://api.voyantcloud.com/v1/products/prod_123/itinerary/days/day_001/accommodation" \
-H "Authorization: Bearer $VOYANT_API_KEY"
{
"assignment": {
"id": "dayacc_001",
"option": {
"id": "accom_opt_123",
"name": "Hotel Riviera - Deluxe Room"
},
"nights": 2
}
}
{ "assignment": null }.