# Get Product Variant

Returns a single Variant resource nested within the specified Product, with the published fields selected via OData query options.
## Authentication
Requires a valid API key in the `X-API-KEY` header.
## Headers
### Accept-Language
Indicates the preferred natural language and locale for the localized content:
- **culture-code**
 (e.g.
`es`
,
`en-us`
) — returns content localized in the specified culture.
- **null / not set**
 — returns content localized in the default culture.
- **`*`**
 — currently disabled.

Multiple culture codes or q-factor weighting are not supported.
## OData Query Support
The endpoint supports a subset of OData v4.01 URI conventions.
The full list of available properties can be obtained from `GET /Variants/$metadata`.
### `$select`
Comma-separated list of Variant properties (implicit or custom) to include in the result.
Selection of properties inside embedded resources/collections is not supported.
- Example:
`frmt_ref`
- Example:
`frmt_ref,frmt_tags`

### `$expand`
Not supported: Variants have no related collections to expand, so any value is rejected with
`400 Bad Request`. (On Products and Categories, `$expand` adds the number of related items, not
the items themselves.)
## Response
**200 OK** — Returns an `EntityRepresentation` with the requested Variant.
## Error Responses
- **400 Bad Request**
 — Invalid OData expression or query parameter.
- **401 Unauthorized**
 — Missing or invalid API key. Returned by the API gateway as

`{ "message": "Unauthorized", "request_id": "d8aafa5b8f3e400b60bea0123dd33317" }`
.
- **404 Not Found**
 — No such variant of that product: the product or the variant does not exist, or the variant is of another product.
- **500 Internal Server Error**
 — Unexpected technical error.

## Example
**Request:**

```http
GET /Products(987)/Variants(12345)?$select=frmt_ref HTTP/1.1
X-API-KEY: your-api-key-here
Accept-Language: es
```
**Response:**

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

Endpoint: GET /Products({productIdentifier})/Variants({variantIdentifier})
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 the localized content: - **culture-code**
 (e.g.
`es`
,
`en-us`
) — returns content localized in the specified culture.
- **null / not set**
 — returns content localized in the default culture.
- **`*`**
 — currently disabled. Multiple culture codes or q-factor weighting are not supported.

  - `OData Query Support` ()
    The endpoint supports a subset of OData v4.01 URI conventions.
The full list of available properties can be obtained from `GET /Variants/$metadata`.

  - `$select` ()
    Comma-separated list of Variant properties (implicit or custom) to include in the result.
Selection of properties inside embedded resources/collections is not supported. - Example:
`frmt_ref`
- Example:
`frmt_ref,frmt_tags`

  - `$expand` ()
    Not supported: Variants have no related collections to expand, so any value is rejected with
`400 Bad Request`. (On Products and Categories, `$expand` adds the number of related items, not
the items themselves.)

  - `Response` ()
    **200 OK** — Returns an `EntityRepresentation` with the requested Variant.

  - `Error Responses` ()
    - **400 Bad Request**
 — Invalid OData expression or query parameter.
- **401 Unauthorized**
 — Missing or invalid API key. Returned by the API gateway as

`{ "message": "Unauthorized", "request_id": "d8aafa5b8f3e400b60bea0123dd33317" }`
.
- **404 Not Found**
 — No such variant of that product: the product or the variant does not exist, or the variant is of another product.
- **500 Internal Server Error**
 — Unexpected technical error.

  - `Example` ()
    **Request:** ```http
GET /Products(987)/Variants(12345)?$select=frmt_ref HTTP/1.1
X-API-KEY: your-api-key-here
Accept-Language: es
``` **Response:** ```http
HTTP/1.1 200 OK
Content-Type: application/json
```

## Path parameters:

  - `productIdentifier` (integer, required)
    Product resource identifier (path parameter)

  - `variantIdentifier` (integer, required)
    Variant resource identifier (path parameter)

## Query parameters:

  - `$select` (string)

  - `$expand` (string)

## Header parameters:

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

  - `Accept-Language` (string)
    Preferred localization culture (e.g. `es`, `en-us`)

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

  - `500` (unknown)
    Internal Server Error

## Response 500 fields (application/json):

  - `error` (string)

  - `details` (any)

