---
title: "Get a product option"
method: GET
path: "/products/{product_id}/options/{id}"
---

# Get a product option

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

## Request

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

Retrieves a specific product option assigned to a product.

## Path parameters

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

## Query parameters

- `embed` string

## Response `200`

Product option details.

- ProductOption
  - `id` integer: Unique identifier for the product option.
  - `name` string: The name of the product option.
  - `sortOrder` integer: The sort order of the product option. Options with a lower number appear first.
  - `values` ProductOptionValue[]: List of option values.
    - `id` integer: Unique identifier for the product option value.
    - `name` string: The name of the product option value.
    - `sortOrder` integer: Sort order of the product option.

---

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