Browse products and inspect a product detail

  • Product Information
  • Prebooking
  • 2 routes
How do I list available products and retrieve one product detail?

This scenario covers the catalog consultation journey: list available products first, then retrieve the detailed information of a selected product.

It is useful for discovery interfaces, search results, and product pages shown before booking.

Overview

The journey starts by retrieving the product catalog, then uses a product_id to load the detailed product sheet.

Prerequisites

  • No functional prerequisite is required to list products.
  • Keep the product_id returned by the listing step to request the detailed view.

Process workflow

Legend:
Mandatory
Optional
1

List available products

Mandatory

Use GET/v2/products to list available products.

Prerequisites

Prepare the parameters required by the call. Keep x-api-key and, when the route is customer-scoped, a valid bearer token.

Calling CURL

curl -X GET \
  -H "x-api-key: YOUR_API_KEY" \
  -H "accept-language: en-US" \
  "https://api.clubmed.com/v2/products?limit=20&page=1"

Example answer

[
  {
    "id": "product-1",
    "label": "Club Med Valmorel",
    "country_code": "FR",
    "type": "RESORT"
  }
]

info: Select a product_id from this list before calling the product detail route.


Response codes

  • 200 OK: the expected data is returned.
  • 400 Bad Request: the request is invalid or incomplete.
  • 404 Not Found: the requested resource cannot be found.
GET/v2/products
See more
2

Retrieve a product detail

Mandatory

Use GET/v2/products/{product_id} to retrieve a product detail.

Prerequisites

Prepare product_id. Keep x-api-key and, when the route is customer-scoped, a valid bearer token.

Calling CURL

curl -X GET \
  -H "x-api-key: YOUR_API_KEY" \
  -H "accept-language: en-US" \
  "https://api.clubmed.com/v2/products/{product_id}"

Example answer

{
  "id": "product-1",
  "label": "Club Med Valmorel",
  "country_code": "FR",
  "type": "RESORT",
  "description": "Family resort in the Alps"
}

info: Reuse this response to enrich the product page with detailed content, services, and location data.


Response codes

  • 200 OK: the expected data is returned.
  • 400 Bad Request: the request is invalid or incomplete.
  • 404 Not Found: the requested resource cannot be found.
GET/v2/products/{product_id}
See more