---
uuid: b46e7d9e-b7cf-4567-b198-025c60f94851
date_created: 2025-12-16T08:44:35.850Z
date_updated: 2026-04-03T17:04:04.718Z
seo_url: dress-codes-of-a-product-for-a-given-period
category: Resort content
tags: 
  - Dresscode
  - Activities
routes: 
  - GET /v0/products/{product_id}/resort_planning
---

# Retrieve resort dress codes for a given 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.

## Flow

false

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

\:::info 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

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

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

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

**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)
