Dispute

Dispute: Accept

See also the Dispute response object.

availability

Managing disputes via the API is only available to merchants who can access disputes in the Braintree Control Panel.

You can only accept disputes that have a status of OPEN. If you have already issued a refund for the disputed transaction, do not accept the dispute - instead, submit file or text evidence of the refund.

  1. Promise
const result = gateway.dispute.accept("a_dispute_id");

If the dispute is successfully accepted, the result will be successful. Otherwise, check for validation errors.

  1. Promise
result.then((response) => {
  if (response.success) {
    // dispute successfully accepted
  } else {
    console.log(response.errors);
  }
});
Arguments
disputeIdrequired, String

The unique dispute identifier. You can only accept disputes that have a status of OPEN.