Skip to main content
When a payer disputes a card or PayPal payment with PayPal or their bank (a chargeback), DHMAD holds back the disputed amount and asks you what to do before chargeback.merchantDueAt. This endpoint gives DHMAD your answer, the same as answering on the chargeback’s thread on dhmad.tn.
  • contest: you want to fight the claim. Send your evidence as messages on the thread before chargeback.merchantDueAt: proof of delivery, your conversation with the payer, the terms they accepted. DHMAD sends it to PayPal (chargeback.status becomes evidence_submitted and the dispute under_review), and the card issuer decides.
  • accept: you agree with the payer. DHMAD accepts the claim with PayPal, and the payer keeps the money.
Either way, you hear the end of the case through dispute.updated (outcome is won or lost), and through charge.chargeback.resolved for payments you created through the API (see Webhooks). If the case is lost, the amount is taken back and PayPal’s chargeback fee is passed on to you. You can change your answer while actions.respondToChargeback is true (chargeback.status is open). Your answer is in chargeback.merchantDecision and chargeback.merchantDecidedAt, and the thread gets a line saying it (“The merchant is contesting the chargeback.” or “The merchant accepted the chargeback.”). Chargebacks only. Needs an API key with Disputes access (Read & reply). See Permissions.

Request body

string
required
contest or accept.
string
A message for DHMAD, posted on the thread after your answer as your message (up to 5,000 characters), for example which evidence follows. It is only posted while the thread takes messages, and it is posted again on every call: retry without it.

Path Parameters

string
required
The dispute id, or its ticket number (for example DH-2026-00045).

Response

200 with dispute: the dispute object with your answer in chargeback.merchantDecision, without messages.

Errors

Errors carry the code in error and code, with a readable message: