Skip to main content
GET
/
store
/
product-attributes
/
{id}
curl 'http://localhost:9000/store/product-attributes/attr_01JB2K7A1B' \
  -H 'x-publishable-api-key: pk_01JB2K3XYZ'
{
  "product_attribute": {
    "id": "attr_01JB2K7A1B",
    "name": "Material",
    "handle": "material",
    "description": null,
    "type": "single_select",
    "is_required": false,
    "is_filterable": true,
    "is_variant_axis": false,
    "product_id": null,
    "rank": 0,
    "values": [
      { "id": "attrval_01JB2K7C2D", "name": "Linen", "rank": 0 }
    ],
    "metadata": null,
    "created_at": "2026-05-01T10:00:00.000Z",
    "updated_at": "2026-05-01T10:00:00.000Z"
  }
}
Returns a single active, global product attribute; inactive or product-scoped attributes return a 404.

Path parameters

id
string
required
The attribute’s ID.

Query parameters

fields
string
Comma-separated fields and relations to include; prefix with +/- to add to or remove from the defaults.

Response

product_attribute
object
curl 'http://localhost:9000/store/product-attributes/attr_01JB2K7A1B' \
  -H 'x-publishable-api-key: pk_01JB2K3XYZ'
{
  "product_attribute": {
    "id": "attr_01JB2K7A1B",
    "name": "Material",
    "handle": "material",
    "description": null,
    "type": "single_select",
    "is_required": false,
    "is_filterable": true,
    "is_variant_axis": false,
    "product_id": null,
    "rank": 0,
    "values": [
      { "id": "attrval_01JB2K7C2D", "name": "Linen", "rank": 0 }
    ],
    "metadata": null,
    "created_at": "2026-05-01T10:00:00.000Z",
    "updated_at": "2026-05-01T10:00:00.000Z"
  }
}