---
title: "List product variations"
method: GET
path: "/products/{product_id}/variations"
---

# List product variations

`GET /products/{product_id}/variations`

## Request

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

Retrieves a list of product variations for a specified product.

## Path parameters

- `product_id` integer, required

## Query parameters

- `fields` string

## Response `200`

A list of product variations.

- 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)
