Categories API
BaZaaRDan kategori ağacını entegratör sistemlerine aktarır. Entegra gibi connector yazılımları ürün göndermeden önce kategori eşleştirme için bu endpointi kullanır.
Endpoint
GET/categories.php
| 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: /categories.php
METHOD + "\n" + PATH_WITH_QUERY + "\n" + TIMESTAMP + "\n" + RAW_BODY
Example Response
{
"ok": true,
"data": {
"categories": [
{
"id": 1,
"name": "Moda & Giyim",
"parent_id": null,
"level": 1,
"is_leaf": false
},
{
"id": 25,
"name": "Kadın Giyim",
"parent_id": 1,
"level": 2,
"is_leaf": true
}
]
}
}