availability

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

You can submit textual evidence for a dispute through this method. You can only submit evidence for disputes that have a status of "open".

PHP
Copy
Copied
$result = Braintree\Dispute::addTextEvidence(
  "a_dispute_id",
  "The transaction was already refunded"
);

If the evidence is successfully added to the dispute, the result will be successful and will include the evidence object. Otherwise, check for validation errors.

PHP
Copy
Copied
if ($result->success) {
  # text based evidence added successfully
  $evidence = $result->evidence;
} else {
  echo $result->errors;
}

If the dispute can't be found, you'll receive a Braintree_Exception_NotFound exception.

important

Once you have finished uploading evidence, you must finalize the dispute using Braintree_Dispute::finalize() before the Reply By date indicated in the dispute details.

Arguments
disputeId required, string

The unique dispute identifier.

content required, string

The text-based content for the dispute evidence.

Still have questions?

If you can’t find an answer, contact our Support team.