availability

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

You can only finalize disputes that have a Status of OPEN. This will submit the evidence to the banks and update the status to DISPUTED.

important

You must call this function in order for the evidence to be submitted on the dispute.

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

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

C♯
if (result.IsSuccess())
{
  // dispute sucessfully finalized
} else
{
    foreach (ValidationError error in result.Errors.DeepAll()) {
        Console.WriteLine(error.Code);
        Console.WriteLine(error.Message);
    }
}

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

Arguments
DisputeId required, string

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