Skip to main content

Retrieve Attribute Values

Retrieves detailed information about a specific attribute value by its ID.

HTTP Request

GET/api/products/attributes/:attribute_id/values/:value_id

Authorization

Authorization

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

Path Parameters

ParameterTypeRequiredDescription
attribute_idIntegerYesUnique ID of the attribute
value_idIntegerYesUnique ID of the attribute value

Example Requests

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

Status Codes

CodeDescription
200Attribute value retrieved successfully
401Unauthorized — authentication required
403Forbidden — insufficient permissions
404Not found — attribute value does not exist
500Internal server error

Response Fields

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