Skip to content

Get Single Attribute

Retrieve detailed information for a specific product attribute including all available options.

Endpoint

GET /api/shop/attributes/{id}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
X-STOREFRONT-KEYYesYour storefront API key

Path Parameters

ParameterTypeRequiredDescription
idintegerYesAttribute ID

Response Fields (200 OK)

FieldTypeDescription
idintegerAttribute ID
codestringUnique attribute code
namestringAttribute display name
typestringAttribute type (text, select, multiselect, textarea)
isRequiredbooleanWhether attribute is required
isVisibleOnFrontbooleanVisible to customers
optionsarrayAvailable options

Option Fields

FieldTypeDescription
idintegerOption ID
labelstringOption display label
valuestringOption value

Use Cases

  • Build product configuration forms
  • Display attribute details
  • Create attribute-based filters
  • Load variant options for products
  • Show size, color, or other variant choices

Released under the MIT License.