Accept dispute
POST /disputes/{id}/accept: concede the dispute and refund the customer.
https://api.wajub.com/disputes/{id}/acceptPrivate key required
Dispute endpoints take a private (sk.…) or restricted key, in live and in sandbox. A public key
gets a 406.
Accepting concedes the dispute without contest. The dispute moves to lost, and Wajub refunds the disputed amount, up to what is still refundable
on the payment. If that refund cannot be created, the call fails and the dispute stays as it was.
Three cases create no refund and still end the dispute lost: a chargeback (the payer's bank has
already returned the money), a payment already refunded in full, and a dispute in another currency
than its payment. The
dispute has to be open or under_review, otherwise the call answers 422.
merchant_responsestringoptionalThe response is the dispute, now lost. dispute.lost and dispute.closed follow by webhook.
https://api.wajub.com/disputes/{id}/acceptcurl https://api.wajub.com/disputes/dsp_hrgUOE225KMKULRQqYvl/accept \
-H "Authorization: sk.xxxxxxxxxxxxxxxx…" \
-H "Content-Type: application/json" \
-d '{ "merchant_response": "Order never shipped, refunding." }'Irreversible
Accepting a dispute cannot be undone. If you believe the charge is legitimate, submit evidence instead. See Submit evidence.