Get Attribute Options
Retrieve all available options for a specific product attribute.
Endpoint
GET /api/shop/attributes/{attributeId}/optionsRequest Headers
| Header | Required | Description |
|---|---|---|
Content-Type | Yes | application/json |
X-STOREFRONT-KEY | Yes | Your storefront API key |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
attributeId | integer | Yes | Attribute ID |
Response Fields (200 OK)
| Field | Type | Description |
|---|---|---|
id | integer | Option ID |
label | string | Option display label |
value | string | Option value |
swatchType | string | Swatch type (color, image, text) |
swatchValue | string | Swatch value (color code, image URL, or text) |
sortOrder | integer | Display order |
Use Cases
- Populate dropdown/select fields in product configuration
- Display color swatches for color attributes
- Show size options for clothing
- Build variant selection interfaces
- Create attribute-based product filters

