---
title: "Get a specific product variation"
method: GET
path: "/products/{product_id}/variations/{id}"
---

# Get a specific product variation

`GET /products/{product_id}/variations/{id}`

## Request

- Base URL: `https://api.ecommerceapi.uk/v1`
- URL: `https://api.ecommerceapi.uk/v1/products/{product_id}/variations/{id}`
- Auth: HTTP basic

Retrieves a specific product variation by ID.

## Path parameters

- `product_id` integer, required
- `id` integer, required

## Query parameters

- `fields` string

## Response `200`

The product variation details.

- ProductVariation
  - `id` integer: Unique identifier for the product variation.
  - `price` number, float: The individual price for the product variation.
  - `costPrice` number, float: The cost price for the product variation.
  - `salePrice` number, float: The sale price for the product variation.
  - `rewardPoints` number, float: The reward points earned from purchasing the variation.
  - `sku` string: The SKU code for the product variation.
  - `gtin` string: The global trade item number for the product variation.
  - `mpn` string: The manufacturer's part number for the product variation.
  - `weight` number, float: The weight of the product variation.
  - `stock` integer: The stock quantity for the product variation.
  - `image` integer: The image index for the product variation.
  - `url` string: The URL for the product variation.
  - `values` object[]: List of option values assigned to the variation.
    - `id` integer: The unique identifier for the option value.
    - `name` string: The name of the option value.
    - `option` object: The option associated with the value.
      - `id` integer: The unique identifier for the option.
      - `name` string: The name of the option.

---

[API](https://skmtc.dev/ecommerceapi/apis/product-variations.md) - [All operations](https://skmtc.dev/ecommerceapi/apis/product-variations/llms.txt) - [OpenAPI document](https://skmtc.dev/ecommerceapi/apis/product-variations/revisions/a9ddef9f5b82?raw)
