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

# List product choices

`GET /products/{product_id}/choices`

## Request

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

Retrieves all choices (custom options) assigned to a product.

## Path parameters

- `product_id` integer, required

## Response `200`

A list of product choices.

- ProductChoice[]
  - `id` integer: Unique ID of the product choice.
  - `set` object: The choice set.
    - `id` integer: ID of the choice set.
    - `name` string: Name of the choice set.
  - `value` object: The value from the choice set.
    - `id` integer: ID of the choice value.
    - `name` string: Name of the choice value.
  - `customPrice` number, float: Custom price for this product choice (overrides default).
  - `costPrice` number, float: Custom cost price for this product choice.

## Other responses

- `401`: Unauthorized.
- `404`: Product not found.

---

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