Esenda

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

ScenarioEvent Type
Esenda receives the first event for a new disputedispute.created
A later event is received for the same dispute, e.g. chargeback_reverseddispute.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

FieldDescriptionExample
idUnique webhook identifier (UUID)UUID
created_atWhen the webhook was created, in UTC2026-11-11 10:42:07.318254
shortcodeOrganisation shortcodetest-school
event_typeWebhook event typedispute.created, dispute.updated
dataObject containing the disputeSee below
data.dispute_idUUID dispute identifier, the same on every webhook for a disputeUUID
data.payment_idThe disputed paymentUUID
data.order_idThe order the disputed payment was forUUID
data.dispute_statusThe dispute's current statusunresponded, won, lost
data.dispute_stageThe dispute event that triggered this webhookchargeback, chargeback_reversed
data.reasonWhy the payment was disputed. See reasonsfraudulent, product_not_received
data.amountDisputed amount in the lowest currency unit12500
data.currencyCurrency of data.amountGBP

Statuses

dispute_status is one of:

StatusMeaning
createdThe dispute has been raised but the card scheme hasn't given it a status yet. A later webhook will.
unrespondedThe dispute is open and hasn't been responded to yet. It can still be defended.
respondedA defence has been submitted and is waiting for the issuer's decision.
undefendedThe dispute can't be defended, or the issuer doesn't allow a defence for this reason.
expiredThe window to defend the dispute closed without a response.
pendingThe dispute is in a later stage (for example pre-arbitration) and waiting on the issuer or card scheme.
acceptedThe dispute was accepted rather than defended. The funds go back to the payer.
lostThe dispute was decided in the payer's favour. The funds go back to the payer.
wonThe 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

ReasonMeaning
fraudulentThe cardholder says they didn't authorise the payment.
unrecognizedThe cardholder doesn't recognise the payment.
duplicateThe cardholder says they were charged more than once for the same thing.
credit_not_processedThe cardholder says a refund or credit they were promised wasn't processed.
product_not_receivedThe cardholder says they didn't receive what they paid for.
product_unacceptableThe cardholder says what they received was faulty or not as described.
subscription_cancelledThe cardholder says they were charged after cancelling a recurring payment.
incorrect_amountThe cardholder says they were charged the wrong amount.
incorrect_currencyThe cardholder says they were charged in the wrong currency.
authorisation_failureThe payment wasn't properly authorised by the issuer.
processing_issueThe payment wasn't processed correctly, for example it was submitted late.
information_requestedThe issuer has asked for information about the payment before raising a chargeback.
consumer_disputeA general disagreement between the cardholder and the organisation.
generalAny 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.

StageWhat happened
request_for_informationThe issuer asked for information about the payment. Not yet a chargeback.
notification_of_chargebackA chargeback is about to be raised. The funds haven't been taken yet.
information_suppliedInformation was supplied in response to a request for information.
chargebackThe chargeback was raised and the disputed amount was taken from the organisation.
second_chargebackThe issuer raised a second chargeback after a defence.
chargeback_reversedThe chargeback was reversed and the funds returned to the organisation.
prearbitration_openThe issuer opened pre-arbitration after a defence.
prearbitration_wonPre-arbitration was decided in the organisation's favour.
prearbitration_lostPre-arbitration was decided in the payer's favour.
prearbitration_acceptedPre-arbitration was accepted.
prearbitration_declinedPre-arbitration was declined.
prearbitration_issuer_withdrawnThe issuer withdrew pre-arbitration.
scheme_arbitrationThe dispute was escalated to the card scheme for arbitration.
scheme_arbitration_wonThe card scheme decided in the organisation's favour.
scheme_arbitration_lostThe card scheme decided in the payer's favour.
dispute_defense_period_endedThe time to defend the dispute ran out.
issuer_response_timeframe_expiredThe issuer didn't respond in time.
issuer_commentsThe issuer added comments to the dispute.

On this page