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.

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

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

Ruby
Copy
Copied
if result.success?
  # dispute successfully accepted
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. You can only accept disputes that have a status of Open.

Still have questions?

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