We’ve introduced a new API endpoint: GET /hotels/{id}/segments
. This endpoint retrieves a list of segments associated with a specific hotel, identified by its unique hotel ID.
This allows partners to fetch segment data directly without needing to infer or construct it from other endpoints.
Sample Response – GET /hotels/{id}/segments
{
"results": [
{
"id": 123,
"name": "Business Travelers",
"active": true
},
{
"id": 456,
"name": "Leisure Guests",
"active": false
}
],
"total_count": 2
}