Dispute
Dispute: Search
Returns a collection of Dispute response objects.
For operators available on search fields, see the search fields page.
- PHP
$collection = $gateway->dispute()->search([
Braintree\DisputeSearch::id()->is('dispute_id')
]);
foreach($collection as $dispute) {
echo $customer->id;
}
Parameters
'amountDisputed'
range'amountWon'
range'caseNumber'
text'chargebackProtectionLevel'
multipleThe chargeback protection level of the dispute. Possible values:
- EFFORTLESS
- STANDARD
- NOT_PROTECTED
'customerId'
text'disbursementDate'
range'effectiveDate'
range'id'
text'kind'
multiple'merchantAccountId'
multipleA fragment of the merchant account ID to search for.
'contains'
text'endsWith'
text'is'
text'isNot'
text'startsWith'
text'preDisputeProgram'
multipleThe pre-dispute program of the dispute. Possible values:
- VISA_RDR
- NONE
'reason'
multipleThe reason for the dispute. See reasons on the dispute response object for possible values.
'reasonCode'
multiple'receivedDate'
range'replyByDate'
range'status'
multipleThe status of the dispute. Possible values:
- ACCEPTED
- AUTO_ACCEPTED
- DISPUTED
- EXPIRED
- OPEN
- LOST
- WON
See dispute statuses for more details.
'transactionId'
text'transactionSource'
multipleHow a transaction was created. Possible values:
- API
- CONTROL_PANEL
- RECURRING
- OAuth application client ID of the transaction facilitator
Examples
Multiple kinds
This example shows searches on the kind parameter:
- PHP
$collection = $gateway->dispute()->search([
BraintreeDisputeSearch::kind()->in(
[
BraintreeDispute::CHARGEBACK,
BraintreeDispute::RETRIEVAL
]
)
]);
Amount disputed range
This example shows searches on the amountDisputed parameter:
- PHP
$collection = $gateway->dispute()->search([
BraintreeDisputeSearch::amountDisputed()->between('100', '200')
]);