Dispute Webhooks
Receive notifications when a payment is disputed and as the dispute progresses
Esenda sends a webhook when one of your orders' payments is disputed (a chargeback), and again each time the dispute moves to a new stage.
Dispute webhooks are sent to your partner webhook URL.
Events
| Scenario | Event Type |
|---|---|
| Esenda receives the first event for a new dispute | dispute.created |
A later event is received for the same dispute, e.g. chargeback_reversed | dispute.updated |
A dispute.updated webhook is sent for every new stage, even when data.dispute_status hasn't changed (for example notification_of_chargeback then chargeback can both be undefended). Use data.dispute_id to match updates to the dispute.
Every webhook carries the dispute's current state in full, so you can store the latest one and don't need to apply them as changes.
Webhook Headers
Content-Type: application/json
X-Hmac-Signature: <hmac_signature>Dispute webhooks are signed the same way as other Esenda webhooks. Use the webhook HMAC shared secret provided by Esenda with SHA-512 to verify authenticity. See HMAC signature verification.
Respond with 200 OK once you've received the webhook.
Webhook Payload
{
"id": "9b3e6f1c-2a4d-4c7e-8f05-1d6a2b9c3e47",
"created_at": "2026-11-11 10:42:07.318254",
"event_type": "dispute.created",
"shortcode": "test-school",
"data": {
"dispute_id": "4f2a9c1e-7b3d-4e6a-9c8f-2d1b5a7e3c90",
"payment_id": "2d6586da-b5ad-4417-901a-c499dbdac774",
"order_id": "7c1e3a5b-9d2f-4b6e-8a4c-0f3d5e7a9b21",
"dispute_status": "undefended",
"dispute_stage": "notification_of_chargeback",
"reason": "product_not_received",
"amount": 12500,
"currency": "GBP"
}
}Payload Fields
| Field | Description | Example |
|---|---|---|
id | Unique webhook identifier (UUID) | UUID |
created_at | When the webhook was created, in UTC | 2026-11-11 10:42:07.318254 |
shortcode | Organisation shortcode | test-school |
event_type | Webhook event type | dispute.created, dispute.updated |
data | Object containing the dispute | See below |
data.dispute_id | UUID dispute identifier, the same on every webhook for a dispute | UUID |
data.payment_id | The disputed payment | UUID |
data.order_id | The order the disputed payment was for | UUID |
data.dispute_status | The dispute's current status | unresponded, won, lost |
data.dispute_stage | The dispute event that triggered this webhook | chargeback, chargeback_reversed |
data.reason | Why the payment was disputed. See reasons | fraudulent, product_not_received |
data.amount | Disputed amount in the lowest currency unit | 12500 |
data.currency | Currency of data.amount | GBP |
Statuses
dispute_status is one of:
| Status | Meaning |
|---|---|
created | The dispute has been raised but the card scheme hasn't given it a status yet. A later webhook will. |
unresponded | The dispute is open and hasn't been responded to yet. It can still be defended. |
responded | A defence has been submitted and is waiting for the issuer's decision. |
undefended | The dispute can't be defended, or the issuer doesn't allow a defence for this reason. |
expired | The window to defend the dispute closed without a response. |
pending | The dispute is in a later stage (for example pre-arbitration) and waiting on the issuer or card scheme. |
accepted | The dispute was accepted rather than defended. The funds go back to the payer. |
lost | The dispute was decided in the payer's favour. The funds go back to the payer. |
won | The dispute was decided in the organisation's favour. The funds stay with the organisation. |
won, lost and accepted are final, although a dispute that has been decided can occasionally be reopened by a later stage, such as second_chargeback or prearbitration_open.
Reasons
| Reason | Meaning |
|---|---|
fraudulent | The cardholder says they didn't authorise the payment. |
unrecognized | The cardholder doesn't recognise the payment. |
duplicate | The cardholder says they were charged more than once for the same thing. |
credit_not_processed | The cardholder says a refund or credit they were promised wasn't processed. |
product_not_received | The cardholder says they didn't receive what they paid for. |
product_unacceptable | The cardholder says what they received was faulty or not as described. |
subscription_cancelled | The cardholder says they were charged after cancelling a recurring payment. |
incorrect_amount | The cardholder says they were charged the wrong amount. |
incorrect_currency | The cardholder says they were charged in the wrong currency. |
authorisation_failure | The payment wasn't properly authorised by the issuer. |
processing_issue | The payment wasn't processed correctly, for example it was submitted late. |
information_requested | The issuer has asked for information about the payment before raising a chargeback. |
consumer_dispute | A general disagreement between the cardholder and the organisation. |
general | Any other reason. |
New reasons may be added. Treat any value you don't recognise as general.
Dispute Stages
dispute_stage is the card-scheme event that triggered the webhook, in lowercase. A dispute usually moves through several stages, and a webhook is sent for each one, even if dispute_status hasn't changed.
| Stage | What happened |
|---|---|
request_for_information | The issuer asked for information about the payment. Not yet a chargeback. |
notification_of_chargeback | A chargeback is about to be raised. The funds haven't been taken yet. |
information_supplied | Information was supplied in response to a request for information. |
chargeback | The chargeback was raised and the disputed amount was taken from the organisation. |
second_chargeback | The issuer raised a second chargeback after a defence. |
chargeback_reversed | The chargeback was reversed and the funds returned to the organisation. |
prearbitration_open | The issuer opened pre-arbitration after a defence. |
prearbitration_won | Pre-arbitration was decided in the organisation's favour. |
prearbitration_lost | Pre-arbitration was decided in the payer's favour. |
prearbitration_accepted | Pre-arbitration was accepted. |
prearbitration_declined | Pre-arbitration was declined. |
prearbitration_issuer_withdrawn | The issuer withdrew pre-arbitration. |
scheme_arbitration | The dispute was escalated to the card scheme for arbitration. |
scheme_arbitration_won | The card scheme decided in the organisation's favour. |
scheme_arbitration_lost | The card scheme decided in the payer's favour. |
dispute_defense_period_ended | The time to defend the dispute ran out. |
issuer_response_timeframe_expired | The issuer didn't respond in time. |
issuer_comments | The issuer added comments to the dispute. |