Get All Attributes
Get a paginated list of all product attributes.
Endpoint
Authentication
Required (Store role)
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page |
integer | Yes | Page number (starts at 1) |
count |
integer | Yes | Items per page (max 100) |
search |
string | No | Search by attribute name (case-insensitive) |
Response
Success (200 OK)
{
"count": 20,
"data": [
{
"id": 1,
"name": "Color",
"name_az": "Rəng",
"name_en": "Color",
"name_es": "Color",
"name_de": "Farbe",
"type": "select",
"values": "[{\"name\":\"Red\"},{\"name\":\"Blue\"},{\"name\":\"Green\"}]",
"values_az": "[{\"name\":\"Qırmızı\"},{\"name\":\"Mavi\"},{\"name\":\"Yaşıl\"}]",
"values_en": "[{\"name\":\"Red\"},{\"name\":\"Blue\"},{\"name\":\"Green\"}]",
"values_es": "[{\"name\":\"Rojo\"},{\"name\":\"Azul\"},{\"name\":\"Verde\"}]",
"values_de": "[{\"name\":\"Rot\"},{\"name\":\"Blau\"},{\"name\":\"Grün\"}]",
"options_api": "",
"category_id": 1,
"category": {
"id": 1,
"name": "Electronics",
"name_az": "Elektronika",
"name_en": "Electronics",
"name_es": "Electrónica",
"name_de": "Elektronik",
"image": "https://...",
"parent_id": null
},
"is_filter": true,
"is_view": true,
"created": "2025-01-15T10:30:00Z"
}
]
}
Error Responses
Unauthorized (401)
Pagination Error (400)
Example Request
curl -X GET "https://api.luxmart.site/v1/products/attribute/?page=1&count=20&search=color" \
-H "Authorization: Token your_access_token"
Notes
- Only returns non-deleted attributes
- Search matches against attribute name
- Results are ordered by ID descending (newest first)
- Multilingual fields: responses include
name_az/en/es/deandvalues_az/en/es/de, falling back to English when a locale is missing. You do not need to send legacyname/valueson create/update; English is stored as the fallback.