Return Action API
Müşteri iade talebi için satıcı/entegratör aksiyonunu iletir. Onay, red veya ek inceleme akışları için kullanılır.
Endpoint
POST/return_action.php
| Authentication | HMAC SHA256 required |
|---|---|
| Scope | Seller scoped |
| Permission | returns: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: /return_action.php
METHOD + "\n" + PATH_WITH_QUERY + "\n" + TIMESTAMP + "\n" + RAW_BODY
Example Request Body
{
"return_id": 7001,
"action": "approve",
"note": "İade talebi onaylandı."
}
Example Response
{
"ok": true,
"data": {
"return_id": 7001,
"status": "approved",
"updated": true
}
}