Retrieve resort dress code

  • Resort content
  • 1 route
How can I retrieve dress code events from resort planning?

This scenario explains how to retrieve the dress code events published in a resort planning feed so they can be exposed on a product page, a stay-preparation journey, or a themed-evening section.

The flow relies on a resort product_id and the planning endpoint filtered on DRESSCODE events.

Overview

Use this scenario to retrieve the dress code events published in a resort planning feed. It is useful when a digital experience needs to surface themed evenings, packing recommendations, or other editorial content linked to the stay calendar.

Prerequisites

  • A valid product_id.
  • The accept-language and x-api-key headers.
  • Optional date filters such as first_date, last_date, and date_format=ISO when the feed must be limited to a stay window.
  • The type=DRESSCODE query parameter to restrict the route to dress code events.

Expected result

The application can display the dress code events relevant to the stay period and transform them into packing tips, themed-evening highlights, or resort-planning content.

1

Retrieve dress code events

Mandatory

Use GET/v0/products/{product_id}/resort_planning with type=DRESSCODE to retrieve the dress code events published in a resort planning feed.

Prerequisites

  • Know a valid product_id.
  • Send accept-language and x-api-key.
  • Add first_date, last_date, and date_format=ISO when you want to limit the feed to a stay window.

Calling CURL

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

Example answer

[
  {
    "id": "8f965451-26f1-47a7-ab72-e8cf9aaf5c31",
    "entity_id": "1",
    "type": "ACTIVITY",
    "label": "Yoga",
    "location_label": "Near from Clubmed shop",
    "start_date_time": "2022-04-15T10:23:00.234Z",
    "end_date_time": "2022-04-15T10:23:00.234Z",
    "schedule_type": {
      "code": "mini_club_med",
      "label": "Mini Club Med",
      "color": "#DD90AB"
    }
  }
]

info: Swagger illustrates the generic structure of a planning event. With type=DRESSCODE, the same payload shape is reused but limited to dress code events.


Response codes

  • 200 OK: the planning events matching the filter are returned.
  • 400 Bad Request: the query parameters are invalid.
  • 401 Unauthorized: not documented in Swagger.
  • 404 Not Found: the product is unknown or cannot be found.
GET/v0/products/{product_id}/resort_planning
See more