Retrieve resort dress codes for a given period

  • Dresscode
  • Resort content
  • 1 route
How can I retrieve a resort dress code for a specific period?

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-language and x-api-key headers.
  • Define a date range with first_date and last_date.
  • Use type=DRESSCODE to 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.

1

Retrieve dress codes for the requested period

Mandatory

This route returns the resort dress code planning for a given period.

Prerequisites

Use the product identifier and pass type=DRESSCODE. You can scope the period with first_date and last_date.

Calling CURL

curl -X GET \
  -H "x-api-key: $API_KEY" \
  -H "accept-language: en-US" \
  "https://api.clubmed.com/v0/products/{product_id}/resort_planning?type=DRESSCODE&first_date=2026-07-01&last_date=2026-07-31"

Example answer

[
  {
    "type": "DRESSCODE",
    "label": "White night",
    "location_label": "Main restaurant",
    "description": "Elegant white outfit",
    "start_date_time": "2026-07-07T19:00:00Z",
    "end_date_time": "2026-07-07T23:00:00Z",
    "schedule_type": "EVENT"
  }
]

info: The same route can also return resort activities if you change the type parameter.


Response codes

  • 200 OK: the dress code planning is returned.
  • 400 Bad Request: invalid parameters.
  • 404 Not Found: unknown product.
GET/v0/products/{product_id}/resort_planning
See more