# Attraction constants

Returns localised attraction constants, including category and subcategory metadata.

- Use this endpoint to retrieve and cache the category ID-to-name mapping before performing attraction searches with category filters.
- Call this endpoint during initial integration or periodically to refresh cached values.
- To retrieve all constants, send an empty request body.

Endpoint: POST /attractions/constants
Version: 3.2-Beta
Security: BearerAuth

## Header parameters:

  - `X-Affiliate-Id` (integer, required)
    Include here your Affiliate identifier number

## Request fields (application/json):

  - `languages` (array)
    List of language codes used to localise category names. Each category name is returned as an object keyed by language code.

- If a requested language is not available, it may be omitted from the response.
- If not provided, en-gb is used by default.
    Example: ["es"]

## Response 200 fields (application/json):

  - `request_id` (string)
    Uniquely identifies the request. Please provide this identifier when contacting support.

  - `data` (object)

  - `data.categories` (array)

  - `data.categories.id` (string, required)
    The unique identifier of the category.
    Example: "PTTV32SGqJEv"

  - `data.categories.name` (object, required)
    The display name of the category translated into the requested languages, keyed by language code.

  - `data.categories.name.^[a-z]{2}(-[a-z]{2})$` (string,null)
    The content localised in this language.

  - `data.categories.parent` (string,null)
    The unique identifier of the parent category. Null for root categories. Use this field to reconstruct the category hierarchy.


