Skip to main content
GET
/
vendor
/
product-attributes
/
{id}
curl 'http://localhost:9000/vendor/product-attributes/pattr_01HXYZ' \
  -H 'Authorization: Bearer <token>' \
  -H 'x-seller-id: <seller_id>'
{
  "product_attribute": {
    "id": "pattr_01HXYZ",
    "name": "Color",
    "handle": "color",
    "type": "multi_select",
    "is_variant_axis": true,
    "values": [
      { "id": "pattrval_01HXYZ", "name": "Red", "rank": 0 },
      { "id": "pattrval_01HABC", "name": "Blue", "rank": 1 }
    ]
  }
}
Returns a single attribute definition with its values and category assignments.

Path parameters

id
string
required
The attribute’s ID.

Query parameters

fields
string
Comma-separated fields to include in the response. Prefix with +/- to add to or remove from the defaults.

Response

product_attribute
object
curl 'http://localhost:9000/vendor/product-attributes/pattr_01HXYZ' \
  -H 'Authorization: Bearer <token>' \
  -H 'x-seller-id: <seller_id>'
{
  "product_attribute": {
    "id": "pattr_01HXYZ",
    "name": "Color",
    "handle": "color",
    "type": "multi_select",
    "is_variant_axis": true,
    "values": [
      { "id": "pattrval_01HXYZ", "name": "Red", "rank": 0 },
      { "id": "pattrval_01HABC", "name": "Blue", "rank": 1 }
    ]
  }
}