Dispute
Dispute: Add Text Evidence
Availability
Managing disputes via the API is only available to merchants who can access disputes in the
Braintree Control Panel.
"open"
.
- Ruby
result = gateway.dispute.add_text_evidence(
"a_dispute_id",
"The transaction was already refunded"
)
- Ruby
if result.success?
# text based evidence added successfully
result.evidence
else
p result.errors
end
Arguments
dispute_id
required, StringThe unique dispute identifier.
Additional Parameters
:content
StringThe text-based content for the dispute evidence.
Valid text evidence categories
If a dispute requires compelling evidence, use the following category codes to indicate what type of
evidence you're submitting.
Depending on the dispute reason code, additional validations may apply.Note
Not all disputes require categorized evidence.
See the list of dispute reason codes that do require categorized, compelling evidence.
Category | Description |
---|---|
CARRIER_NAME | Supply a carrier name with any relevant tracking details. List of Carriers. |
DEVICE_ID | The identifier of the device that downloaded the digital goods. |
DEVICE_NAME | The name of the device that downloaded the digital goods. |
DOWNLOAD_DATE_TIME |
The date and time the digital goods were downloaded. Also requires at least 2 of the
following bulleted items:
|
GEOGRAPHICAL_LOCATION | The latitude and longitude location of the device that downloaded the digital goods. Maximum 50 characters. |
PRIOR_DIGITAL_GOODS_TRANSACTION_ID *
| The ID of a previous non-disputed digital goods transaction for the same merchandise or service. |
PRIOR_DIGITAL_GOODS_TRANSACTION_DATE_TIME |
The date and time of the
PRIOR_DIGITAL_GOODS_TRANSACTION_ID .*
|
PRIOR_NON_DISPUTED_TRANSACTION_ID *
|
The ID of a previous non-disputed transaction for the same merchandise or service. Also
requires
PRIOR_NON_DISPUTED_TRANSACTION_DATE_TIME
and at least one of the following bulleted items:
|
PRIOR_NON_DISPUTED_TRANSACTION_DATE_TIME |
The date and time of the
PRIOR_NON_DISPUTED_TRANSACTION_ID .*
|
PRIOR_NON_DISPUTED_TRANSACTION_EMAIL_ADDRESS |
Email address used with the
PRIOR_NON_DISPUTED_TRANSACTION_ID .
Maximum 50 characters.*
|
PRIOR_NON_DISPUTED_TRANSACTION_IP_ADDRESS |
IP address of the
PRIOR_NON_DISPUTED_TRANSACTION_ID .*
|
PRIOR_NON_DISPUTED_TRANSACTION_PHONE_NUMBER |
Phone number used with the
PRIOR_NON_DISPUTED_TRANSACTION_ID .*
|
PRIOR_NON_DISPUTED_TRANSACTION_PHYSICAL_ADDRESS |
Physical address used with the
PRIOR_NON_DISPUTED_TRANSACTION_ID .*
|
PURCHASER_EMAIL_ADDRESS | The email address used for the digital goods. |
PURCHASER_IP_ADDRESS | The IP address that purchased the digital goods. |
PURCHASER_NAME | The name used for the digital goods. |
RECURRING_TRANSACTION_ID * |
The ID of a previous undisputed recurring transaction for the same merchandise or service.
Also requires
RECURRING_TRANSACTION_DATE_TIME .
|
RECURRING_TRANSACTION_DATE_TIME |
The date and time of the
RECURRING_TRANSACTION_ID .*
|
TRACKING_NUMBER | Supply any tracking details like shipping number or tracking number. Maximum 50 characters. |
TRACKING_URL | Supply a publicly available tracking URL. Tracking URL starts with ftp:// or http:// or https:// followed by carrier's website. |
Examples
Submitting categorized evidence
When responding to disputes with compelling evidence, specify the appropriate
category for all evidence.
- Ruby
result = gateway.dispute.add_text_evidence(
"a_dispute_id",
category: "PRIOR_NON_DISPUTED_TRANSACTION_DATE_TIME",
content: "2016-01-01T22:00:00+0000"
)