Dispute
Dispute: Search
Returns a collection of Dispute response objects.
For operators available on search fields, see the search fields page.
- Node
gateway.dispute.search((search) => {
search.id().is("dispute_id");
}, (err, response) => {
response.forEach((dispute) => {
console.log(dispute.id);
});
});
Parameters
amountDisputed
rangeamountWon
rangecaseNumber
textchargebackProtectionLevel
multipleThe chargeback protection level of the dispute. Possible values:
- EFFORTLESS
- STANDARD
- NOT_PROTECTED
customerId
textdisbursementDate
rangeeffectiveDate
rangeid
textkind
multiplemerchantAccountId
multipleA fragment of the merchant account ID to search for.
contains
textendsWith
textis
textisNot
textstartsWith
textpreDisputeProgram
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
multiplereceivedDate
rangereferenceNumber
textreplyByDate
rangestatus
multipleThe status of the dispute. Possible values:
- ACCEPTED
- AUTO_ACCEPTED
- DISPUTED
- EXPIRED
- OPEN
- LOST
- WON
See dispute statuses for more details.
transactionId
texttransactionSource
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:
- Node
gateway.dispute.search((search) => {
search.kind().in([
braintree.Dispute.Kind.Chargeback,
braintree.Dispute.Kind.Retrieval
]);
}, (err, response) => {
});
Amount disputed range
This example shows searches on the amountDisputed parameter:
- Node
gateway.dispute.search((search) => {
search.amountDisputed().between("100.00", "200.00");
}, (err, response) => {
});