---
uuid: d2437bc7-ff3e-48c8-94c7-ea312974482a
date_created: 2026-02-26T16:41:35.246Z
date_updated: 2026-04-04T09:54:17.599Z
seo_url: resort-dress-code
category: Resort content
routes: 
  - GET /v0/products/{product_id}/resort_planning
---

# Retrieve resort dress code

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.

## Flow

false

## 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

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

```bash
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

```json
[
  {
    "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.

**Related route**: [GET https://api.clubmed.com//v0/products/{product\_id}/resort\_planning](https://api.clubmed.com/doc?search=GET%20%2Fv0%2Fproducts%2F%7Bproduct_id%7D%2Fresort_planning)
