# List variants

> Retrieve the variants of a product, with channel- and country-aware pricing.
{/* generated:versioned-pages - edit _pm-authored, not this file */}

`GET /api/products/{productId}/variants`

Retrieves the collection of Product Variant resources.

Returns the paginated collection of variants belonging to a product. When `resolveContext` is set, each variant's `resolvedPrice` is computed for the given channel, country and timestamp.

> **Resolving prices**
>
> Set `resolveContext[channel]`, `resolveContext[country]` and `resolveContext[at]` together to populate `resolvedPrice` on every returned variant. Omit all three to get the raw variant data.

## Path parameters

| Name        | Type     | Required | Description                |
| ----------- | -------- | -------- | -------------------------- |
| `productId` | `string` | Yes      | ProductResource identifier |

## Query parameters

| Name                         | Type      | Required | Description                                                                                                                                                                                                                                                                                                                                                                                                            |
| ---------------------------- | --------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `resolveContext[channel]`    | `string`  | -        | Channel IRI used to resolve the variant price. Required together with `resolveContext[country]`.                                                                                                                                                                                                                                                                                                                       |
| `resolveContext[country]`    | `string`  | -        | Country IRI used to resolve the variant price. Required together with `resolveContext[channel]`.                                                                                                                                                                                                                                                                                                                       |
| `resolveContext[at]`         | `string`  | -        | ISO 8601 UTC timestamp at which the price is resolved. Defaults to the current time when omitted.                                                                                                                                                                                                                                                                                                                      |
| `expand`                     | `string`  | -        | Comma-separated list of relations to embed as full objects instead of IRI strings. Supported values: `optionValues`, `medias`, `metafields`, `metaobject`. Tokens are independent; unknown values are silently ignored. `metaobject` only has a visible effect when combined with `metafields` (it embeds the referenced metaobject on each metafield of type `metaobject_reference` or `list__metaobject_reference`). |
| `page`                       | `integer` | -        | The collection page number                                                                                                                                                                                                                                                                                                                                                                                             |
| `itemsPerPage`               | `integer` | -        | The number of items per page                                                                                                                                                                                                                                                                                                                                                                                           |
| `order[sku]`                 | `string`  | -        |                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `order[barcode]`             | `string`  | -        |                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `order[createdAt]`           | `string`  | -        |                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `order[updatedAt]`           | `string`  | -        |                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `createdAt[before]`          | `string`  | -        |                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `createdAt[strictly_before]` | `string`  | -        |                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `createdAt[after]`           | `string`  | -        |                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `createdAt[strictly_after]`  | `string`  | -        |                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `updatedAt[before]`          | `string`  | -        |                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `updatedAt[strictly_before]` | `string`  | -        |                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `updatedAt[after]`           | `string`  | -        |                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `updatedAt[strictly_after]`  | `string`  | -        |                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `sku`                        | `string`  | -        |                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `barcode`                    | `string`  | -        |                                                                                                                                                                                                                                                                                                                                                                                                                        |

## Response

**200** - Product Variant collection

| Property     | Type                | Required | Description |
| ------------ | ------------------- | -------- | ----------- |
| `totalItems` | `integer`           | -        |             |
| `search`     | `object`            | -        |             |
| `view`       | `object`            | -        |             |
| `member`     | `Product.Variant[]` | Yes      |             |

## Errors

**403** - Access denied. The caller is missing one or more identity permissions required for this operation.

| Property             | Type       | Required | Description                                                                                                                                |
| -------------------- | ---------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `@context`           | `object`   | -        |                                                                                                                                            |
| `@id`                | `string`   | Yes      |                                                                                                                                            |
| `@type`              | `string`   | Yes      |                                                                                                                                            |
| `type`               | `string`   | -        |                                                                                                                                            |
| `title`              | `string`   | -        |                                                                                                                                            |
| `status`             | `integer`  | -        |                                                                                                                                            |
| `detail`             | `string`   | -        |                                                                                                                                            |
| `missingPermissions` | `string[]` | -        | Identity permissions that the caller is missing for this operation. Present only when the 403 is caused by a denied identity:* permission. |

## Examples

### Example request

```bash
curl -X GET 'https://<tenant>.product-management.flowkiwi.net/api/products/<product_id>/variants' \
  -H 'Authorization: Bearer {access_token}' \
  -H 'Flowkiwi-Api-Version: 2026-07' \
  -H 'Accept: application/ld+json'
```

### Example response

```json
{
  "member": [
    {
      "@context": "/api/contexts/Variant",
      "@id": "/api/Variants/67ac49d4-c3d3-560d-ad66-fb3321801edf",
      "@type": "Variant",
      "id": "67ac49d4-c3d3-560d-ad66-fb3321801edf",
      "barcode": "BAR-001-A",
      "sku": "SKU-ABC-001",
      "measurement": {
        "measuredType": "volume",
        "quantityUnit": "cl",
        "quantityValue": 70,
        "referenceUnit": "l",
        "referenceValue": 1
      },
      "product": "/api/products/48e92020-a038-589d-977b-4ad9bdf9e8ec",
      "optionValues": [
        "/api/optionValues/2558340c-6c44-50c2-a47d-ea9b96d273a0",
        "/api/optionValues/cc2f8a7a-b769-5114-a02a-c9f82f0b7e70"
      ],
      "images": [],
      "createdAt": "2024-01-01T00:00:00+00:00",
      "updatedAt": "2024-01-01T00:00:00+00:00"
    }
  ],
  "totalItems": 1
}
```
