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.

C♯
var result = gateway.Dispute.Accept("a_dispute_id");

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

C♯
if (result.IsSuccess()) {
  // dispute sucessfully accepted
} else {
  Console.WriteLine(result.Errors);
}

If the dispute can't be found, it will throw a NotFoundException.

Arguments
DisputeId required, string

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