Price Update API
Ürün veya varyant fiyatını günceller. Stok güncellemeden bağımsızdır ve Entegra gibi sistemlerin kampanya/fiyat senkronizasyonu için kullanılır.
Endpoint
POST/price_update.php
| Authentication | HMAC SHA256 required |
|---|---|
| Scope | Seller scoped |
| Permission | price:write |
| 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: /price_update.php
METHOD + "\n" + PATH_WITH_QUERY + "\n" + TIMESTAMP + "\n" + RAW_BODY
Example Request Body
{
"product_id": 356,
"variant_combination_id": 778,
"price": 529.90,
"list_price": 599.90,
"currency": "TRY",
"external_ref": "ERP-PRICE-20260618-001"
}
Example Response
{
"ok": true,
"data": {
"product_id": 356,
"variant_combination_id": 778,
"old_price": 499.90,
"new_price": 529.90,
"updated": true
}
}