List hotels of a master chain (direct + transitive via base_code)
GET/content/hotels/v1/chains/masters/:id/hotels
Returns the hotels that belong to the master chain identified by id,
grouped by baseCode. A hotel is included when:
- its own (providerCode, chainCode) carries
master_chain_id = id(source = "direct"), or - it shares a
mapping_hotels.base_codewith a direct member, the base_code is not in conflict quarantine, and every direct member of that base_code resolves to the same master (source = "transitive").
base_codes that have been flagged as conflicting (e.g. a mapping
that collapses hotels of two different brands under the same base_code)
are silently skipped.
Pagination is keyset on baseCode (ASC). nextCursor is an opaque
base64url token; clients echo it back in ?cursor=... to fetch the
next page. A missing nextCursor means "no more rows".
Request
Responses
- 200
- 304
- 400
- 404
- 504
Successful response
Response Headers
ETag
Weak validator; clients may send it back in If-None-Match to receive 304.
Cache-Control
Always private, max-age=30 for this endpoint.
Not Modified (client's ETag still valid)
Bad request (invalid UUID or cursor)
Master chain not found
Gateway Timeout (DB work exceeded 15s)