Retrieve resort dress codes for a given period
- Dresscode
- Resort content
- 1 route
This scenario explains how to retrieve a Club Med resort dress code when the product_id is already known and a date range is provided.
It relies on GET/v0/products/{product_id}/resort_planning and filters events with type=DRESSCODE so that only the relevant dress code information is returned for the requested period.
Overview
This flow allows consumers to display resort dress codes for a given period, for example in a stay agenda, an informational page, or a mobile app.
The flow relies on a single API call when the product_id is already known. The search range is defined with first_date and last_date, and the type=DRESSCODE filter limits the response to dress code events only.
Prerequisites
- Have a valid
product_id. - Provide the
accept-languageandx-api-keyheaders. - Define a date range with
first_dateandlast_date. - Use
type=DRESSCODEto exclude other planning events.
Flow scope
For this use case, a single API call is enough when the product_id is already known.
Functional result
The response can be used to display dress codes with their label, description, dates, and location when available.