# Get Category

Returns a single Category resource identified by its route identifier, optionally shaping
the response with `$select` and `$expand`.
## Authentication
Requires a valid API key in the `X-API-KEY` header.
## Headers
### Accept-Language
Indicates the preferred natural language and locale for localized content.
- **omitted / null**
: content in the tenant's default culture.
- **culture-code**
 (e.g.
`en-US`
,
`es`
): content localized in the specified culture.
- **`*`**
 and q-factor weighting are currently not supported.

## OData Query Support
### $select
Comma-separated list of root-resource property names to include in the response.
See `/Categories/$metadata` for the available properties.
Selecting properties of embedded resources is not supported.
Example: `$select=cat_title,cat_description`
### $expand
Comma-separated list of related collections to **count**. `$expand` does not embed the related
resources: each returned Category gets one extra property per expanded collection, holding the
number of related items. Nothing is added by default.
- `Products`
 — the products in the category → property
`Products___count`
.
- `SubCategories`
 — the category's direct subcategories → property
`SubCategories___count`
.

The property name ends in three underscores and `count` (`___count`), unlike Products, which use
`@count` (`Variants@count`). Any other value is rejected with `400 Bad Request`. To read the
products themselves, use `GET /Categories({categoryIdentifier})/Products`.
Example: `$expand=Products,SubCategories` →
`{ "cat_id": 1, "cat_ref": "CAT-01", "Products___count": 4, "SubCategories___count": 2 }`
`$filter`, `$orderby`, `$top`, `$skip` and `$skipToken` are not applicable to this endpoint.
## Response
**200 OK** — `EntityRepresentation` with the requested Category resource.
## Error Responses
- **400 Bad Request**
 — Invalid
`$select`
 or
`$expand`
 expression (returns
`ValidationFailureRepresentation`
).
- **401 Unauthorized**
 — Missing or invalid API key. Returned by the API gateway as

`{ "message": "Unauthorized", "request_id": "d8aafa5b8f3e400b60bea0123dd33317" }`
.
- **404 Not Found**
 — Category with the given identifier does not exist.
- **500 Internal Server Error**
 — Unexpected technical error.

## Example
**Request:**

```http
GET /Categories(123)?$select=cat_title,cat_description&$expand=Products HTTP/1.1
X-API-KEY: your-api-key-here
Accept-Language: en-US
```
**Response:**

```http
HTTP/1.1 200 OK
Content-Type: application/json
```

Endpoint: GET /Categories({categoryIdentifier})
Version: 2.0.0

## Description:

  - `Authentication` ()
    Requires a valid API key in the `X-API-KEY` header.

  - `Headers` ()

  - `Accept-Language` ()
    Indicates the preferred natural language and locale for localized content. - **omitted / null**
: content in the tenant's default culture.
- **culture-code**
 (e.g.
`en-US`
,
`es`
): content localized in the specified culture.
- **`*`**
 and q-factor weighting are currently not supported.

  - `OData Query Support` ()

  - `$select` ()
    Comma-separated list of root-resource property names to include in the response.
See `/Categories/$metadata` for the available properties.
Selecting properties of embedded resources is not supported. Example: `$select=cat_title,cat_description`

  - `$expand` ()
    Comma-separated list of related collections to **count**. `$expand` does not embed the related
resources: each returned Category gets one extra property per expanded collection, holding the
number of related items. Nothing is added by default. - `Products`
 — the products in the category → property
`Products___count`
.
- `SubCategories`
 — the category's direct subcategories → property
`SubCategories___count`
. The property name ends in three underscores and `count` (`___count`), unlike Products, which use
`@count` (`Variants@count`). Any other value is rejected with `400 Bad Request`. To read the
products themselves, use `GET /Categories({categoryIdentifier})/Products`. Example: `$expand=Products,SubCategories` →
`{ "cat_id": 1, "cat_ref": "CAT-01", "Products___count": 4, "SubCategories___count": 2 }` `$filter`, `$orderby`, `$top`, `$skip` and `$skipToken` are not applicable to this endpoint.

  - `Response` ()
    **200 OK** — `EntityRepresentation` with the requested Category resource.

  - `Error Responses` ()
    - **400 Bad Request**
 — Invalid
`$select`
 or
`$expand`
 expression (returns
`ValidationFailureRepresentation`
).
- **401 Unauthorized**
 — Missing or invalid API key. Returned by the API gateway as

`{ "message": "Unauthorized", "request_id": "d8aafa5b8f3e400b60bea0123dd33317" }`
.
- **404 Not Found**
 — Category with the given identifier does not exist.
- **500 Internal Server Error**
 — Unexpected technical error.

  - `Example` ()
    **Request:** ```http
GET /Categories(123)?$select=cat_title,cat_description&$expand=Products HTTP/1.1
X-API-KEY: your-api-key-here
Accept-Language: en-US
``` **Response:** ```http
HTTP/1.1 200 OK
Content-Type: application/json
```

## Path parameters:

  - `categoryIdentifier` (integer, required)
    Category resource identifier

## Query parameters:

  - `$select` (string)

  - `$expand` (string)

## Header parameters:

  - `X-API-KEY` (string)
    Tenant's API key (required)

  - `Accept-Language` (string)
    Preferred localization culture (Accept-Language header)

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `@readLink` (string)

  - `@editLink` (string)

  - `@etag` (string)

  - `@navigationLinks` (array)

  - `@navigationLinks.uri` (string)

  - `@associationLinks` (array)

  - `@associationLinks.uri` (string)

  - `@context` (string)

  - `value` (any)

## Response 400:

  - `400` (unknown)
    Bad Request

## Response 400 fields (application/json):

  - `validationFailures` (object)

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `message` (string)

  - `request_id` (string)

## Response 404:

  - `404` (unknown)
    Not Found

## Response 404 fields (application/json):

  - `type` (string)

  - `title` (string)

  - `status` (integer)

  - `detail` (string)

  - `instance` (string)

## Response 500:

  - `500` (unknown)
    Internal Server Error

## Response 500 fields (application/json):

  - `error` (string)

  - `details` (any)

