> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get product variants

> Get product variants

### Path parameters

<ParamField path="id" type="string (uuid)" required>
  Product ID
</ParamField>

### Responses

<ResponseField name="200" type="ApiResponse_Vec_VariantResponse">
  Variants retrieved
</ResponseField>

<ResponseField name="404" type="ErrorResponse">
  Product not found
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.stateset.com/api/v1/products/{id}/variants' \
    --header 'Authorization: Bearer YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "data": [
      {
        "compare_at_price": "199.99",
        "cost": "75.00",
        "created_at": "2024-12-09T10:30:00Z",
        "dimensions": {
          "height": 8,
          "length": 20,
          "width": 18
        },
        "id": "660e8400-e29b-41d4-a716-446655440001",
        "inventory_tracking": true,
        "name": "Wireless Bluetooth Headphones - Large",
        "options": {
          "color": "Black",
          "size": "Large"
        },
        "position": 1,
        "price": "149.99",
        "product_id": "550e8400-e29b-41d4-a716-446655440000",
        "sku": "WBH-BLK-001-L",
        "updated_at": "2024-12-09T14:45:00Z",
        "weight": 0.35
      }
    ],
    "errors": null,
    "message": null,
    "meta": null,
    "success": true
  }
  ```
</ResponseExample>
