Skip to main content

Method

GET /v1/products/:id/itinerary/days/:dayId/accommodation

Path Parameters

id
uuid
required
Product ID.
dayId
uuid
required
Itinerary day ID.

Headers

Authorization
string
Bearer token (requires products:read).

Request Example

curl "https://api.voyantcloud.com/v1/products/prod_123/itinerary/days/day_001/accommodation" \
  -H "Authorization: Bearer $VOYANT_API_KEY"

Response

{
  "assignment": {
    "id": "dayacc_001",
    "option": {
      "id": "accom_opt_123",
      "name": "Hotel Riviera - Deluxe Room"
    },
    "nights": 2
  }
}
If no accommodation is assigned, the endpoint returns { "assignment": null }.