İptal Webhook¶
Bir sipariş platform tarafından iptal edildiğinde cancelOrderWebhookUrl adresinize bildirim gönderilir.
İstek Formatı¶
POST {cancel-webhook-url} HTTP/1.1
Content-Type: application/json
X-MuditaPOS-Customer-Id: <customer-id>
X-MuditaPOS-Signature: <hmac-sha256>
Payload¶
{
"orderId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"providerOrderId": "63a1b2c3d4e5f6",
"provider": "GETIR",
"status": "CANCELLED",
"reason": "Müşteri iptal etti",
"cancelledAt": "2025-05-04T10:25:00Z"
}
Alanlar¶
| Alan | Tip | Açıklama |
|---|---|---|
orderId |
UUID | MuditaPOS sipariş ID'si |
providerOrderId |
string | Platform sipariş ID'si |
provider |
string | Platform adı |
status |
string | Daima CANCELLED |
reason |
string | İptal nedeni (opsiyonel) |
cancelledAt |
datetime | İptal zamanı |
Yanıt¶
İptal İşleme
İptal webhook'u aldığınızda:
- Siparişi kendi sisteminizde
İPTALdurumuna çekin - Eğer kurye atanmışsa kuryeyi bilgilendirin
- Ödeme iade işlemini başlatın (varsa)