Dispute
Dispute: Add File Evidence
Availability
Managing disputes via the API is only available to merchants who can access disputes in the
Braintree Control Panel.
"open"
.
- PHP
$result = $gateway->dispute()->addFileEvidence(
"a_dispute_id",
$document_result->documentUpload->id
);
- PHP
if ($result->success) {
# evidence file added successfully
$evidence = $result->evidence;
} else {
echo $result->errors;
}
Arguments
disputeId
required, stringThe unique dispute identifier.
Additional Parameters
'category'
stringThe category of this piece of evidence.
'documentId'
stringThe unique identifier for a Document Upload
object. The document must have a kind of EVIDENCE_DOCUMENT.
Valid file 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 |
---|---|
`LEGIT_PAYMENTS_FOR_SAME_MERCHANDISE` | Evidence of spending across multiple payment types for the same merchandise. |
`MERCHANT_WEBSITE_OR_APP_ACCESS` | Evidence of merchant website or app access. |
`PROFILE_SETUP_OR_APP_ACCESS` | Evidence of a profile setup or app access. |
`PROOF_OF_AUTHORIZED_SIGNER` | Evidence the transaction was completed by an authorized signer that the cardholder knows. |
`PROOF_OF_DELIVERY_EMP_ADDRESS` | Proof of delivery to the cardholder's company address. |
`PROOF_OF_DELIVERY` | Proof of delivery to the address on the AVS match. |
`PROOF_OF_POSSESSION_OR_USAGE` | Proof that the customer is in possession of and/or using the merchandise. |
`SIGNED_DELIVERY_FORM` | A signed delivery form, or a copy of the cardholder's ID as proof that the goods were picked up at your business location. |
`SIGNED_ORDER_FORM` | A signed order form for a mail or phone transaction. |
`TICKET_PROOF` | Evidence the ticket was received or scanned at gate, or evidence of other transactions related to the original (e.g. frequent flyer miles). |
Examples
Submitting categorized evidence
When responding to disputes with compelling evidence, specify the appropriate
category for all evidence.
- PHP
$result = $gateway->dispute()->addFileEvidence(
"a_dispute_id",
[
'category' => 'MERCHANT_WEBSITE_OR_APP_ACCESS',
'documentId' => $document_result->documentUpload->id
]
);
Submitting uncategorized evidence
- PHP
$document_result = $gateway->documentUpload()->create([
'kind' => Braintree\DocumentUpload::EVIDENCE_DOCUMENT,
'file' => fopen('local_file.pdf', 'rb')
]);
if ($document_result->success) {
$result = $gateway->dispute()->addFileEvidence(
'a_dispute_id', $document_result->documentUpload->id
);
}