Category Attributes API
Kategori bazlı zorunlu ve opsiyonel ürün özelliklerini döndürür. Ürün gönderiminde renk, beden, numara, materyal gibi alanların doğru eşleşmesi için kullanılır.
Endpoint
GET/category_attributes.php?category_id=25
| Authentication | HMAC SHA256 required |
|---|---|
| Scope | Seller scoped |
| Permission | catalog:read |
| Base URL | https://bazaardan.com/api/partner/v1 |
Required Headers
| Header | Açıklama |
|---|---|
X-BZ-CLIENT-ID | Partner uygulamasının Client ID değeri. |
X-BZ-TIMESTAMP | Unix timestamp. Örnek: 1778269200 |
X-BZ-SIGNATURE | Client Secret ile üretilen HMAC SHA256 imzası. |
Accept | application/json |
Content-Type | POST/PUT isteklerinde application/json |
Signature Standardı
İmza her zaman base URL sonrasındaki path üzerinden üretilir. Örnek: /category_attributes.php?category_id=25
METHOD + "\n" + PATH_WITH_QUERY + "\n" + TIMESTAMP + "\n" + RAW_BODY
Example Response
{
"ok": true,
"data": {
"category_id": 25,
"attributes": [
{
"id": 101,
"name": "Renk",
"required": true,
"allow_custom_value": false,
"values": ["Siyah", "Beyaz", "Lacivert"]
},
{
"id": 102,
"name": "Beden",
"required": true,
"allow_custom_value": false,
"values": ["XS", "S", "M", "L", "XL"]
}
]
}
}