Track disputes
Read your disputes and follow them through their webhooks.
Reading disputes
Retrieving one returns it with its transaction, its customer and its full message thread.
https://api.wajub.com/disputes/{id}https://api.wajub.com/disputes| Query parameter | Accepts |
|---|---|
per_page | 1 to 100, defaults to 25 |
status | open, under_review, won, lost |
search | Free text over the dispute id, reason and description |
date_from, date_to | Dates, date_to no earlier than date_from |
cursor | Switches to cursor pagination |
Beyond the obvious fields, a dispute carries description from the payer, your
merchant_response, the evidence you filed, resolved_at once it is decided, and metadata.
On a chargeback, metadata.source is provider_webhook. Once the provider decides it,
metadata.decided_by is provider and metadata.provider_stage names the provider's stage that
decided it. A chargeback you won that the provider reopens goes back to open, with resolved_at
cleared and metadata.reopened_at set. The rules are on
Disputes.
How due_date is set
Every dispute carries due_date, the deadline to answer by. On a dispute opened from Pocket, it
is seven days after the opening. On a provider chargeback, it is the provider's deadline when it
sends one, seven days after the opening otherwise. Past its deadline, a Pocket dispute stays open
until Wajub decides it.
Webhooks
Seven events, and the ones worth acting on are the outcomes, plus the reminder.
| Event | Fires when |
|---|---|
dispute.created | A dispute was opened, by a payer or from a chargeback. Read it and decide how to answer |
dispute.updated | Any field changed, including every status change, and a won chargeback reopening (status: open) |
dispute.won | Resolved in your favour, nothing leaves your balance. On a chargeback, the provider can still decide otherwise later |
dispute.lost | Resolved against you, the amount is debited. On a chargeback, it can follow a dispute.won |
dispute.closed | Sent together with dispute.lost. A won dispute does not send it |
dispute.deadline_approaching | The deadline is two days away and the dispute is still open or under_review. Sent once, with metadata.reminded_at set, and again after a chargeback reopens; answer it now |
dispute.deleted | The dispute record was removed |
dispute.deadline_approaching is sent in live and in sandbox, for every dispute with a
due_date: Pocket disputes and chargebacks alike. Writing metadata.reminded_at on the
dispute also sends a dispute.updated beside it.
A loss sends you three webhooks
Going to lost emits dispute.updated, dispute.lost and dispute.closed, in that order, for
the same event. Pick one to act on, dispute.lost, and let the other two pass. Acting on
dispute.closed as well will debit your own books twice.
A won chargeback can come back
The payer's bank can rule against you at a later stage of a chargeback you won, or take the funds
again: the dispute then goes to lost, or back to open, and sends its webhooks as any other
change. Wajub debits a loss once per dispute, so keep acting on dispute.lost alone, even when a
dispute.won came before it.
dispute.createdeventDeduplicate on the event id, as everywhere else. Registration and signature verification
are in Webhooks.