availability

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

You can remove evidence on a dispute through this method. You can only remove evidence for disputes that have a status of Open.

Ruby
Copy
Copied
result = gateway.dispute.remove_evidence(
  "a_dispute_id",
  "a_evidence_id",
)
This code snippet now uses gateway instance methods instead of class-level methods. Learn more.

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

Ruby
Copy
Copied
if result.success?
  # evidence removed successfully
else
  p result.errors
end

If the dispute can't be found, it will raise a Braintree::NotFoundError.

Arguments
dispute_id required, String

The unique dispute identifier.

evidence_id required, String

The unique evidence identifier. Found on the dispute object evidence.id

Still have questions?

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