Skip to main content

Retrieve an attribute value details

Retrieves detailed information of an attribute value

HTTP Request

GET/api/products/attributes/:attr_id/values/:id

Authorization

Authorization

  • Required: Yes
  • Permission: Staff with AttributeValuePermission or Admin
  • Permission Code: 1832
  • Authentication: Token-based (Authorization: Token <your_api_key>)

Path Parameters

ParameterTypeRequiredDescription
attr_idIntegerYesUnique ID of the attribute
idIntegerYesUnique ID of the attribute value

Example Requests

1import requests
2
3# Retrieve a specific product attribute
4response = requests.get('http://www.example.com/api/products/attributes/1/values/15',
5  headers={'Authorization': 'Token <your_api_key>'}
6)
7
8print(response.json())

Response Fields

FieldTypeDescription
idIntegerUnique ID of the attribute value
valueStringThe value name (unique over the attribute)
created_atString (ISO 8601)Timestamp when attribute value was created
updated_atString (ISO 8601)Timestamp when attribute value was last updated

Example Response

{
"id": 10,
"value": "brown",
"created_at": "2025-12-24T16:38:42.699563Z",
"updated_at": "2025-12-24T16:38:42.699570Z"
}