Dispute
Dispute: Search
Availability
Managing disputes via the API is only available to merchants who can access disputes in the
Braintree Control Panel.
- Java
DisputeSearchRequest request = new DisputeSearchRequest()
.id()
.is("dispute_id");
ResourceCollection<dispute> collection = gateway.dispute().search(request);
for (Dispute dispute : collection) {
System.out.println(dispute.getId());
}
Parameters
.amountDisputed(…)
rangeThe decimal value representing the disputed amount.
.amountWon(…)
rangeThe decimal value representing the reserved amount.
.caseNumber(…)
textThe case number of the dispute.
.chargebackProtectionLevel(…)
multipleThe chargeback protection level of the dispute. Possible values:
- EFFORTLESS
- STANDARD
- NOT_PROTECTED
.customerId(…)
textThe unique customer identifier associated with the disputed transaction.
.disbursementDate(…)
rangeThe disbursement date of the dispute history event.
.effectiveDate(…)
rangeThe effective date of the dispute history event.
.id(…)
textThe unique dispute identifier.
.kind(…)
multipleThe kind of dispute.
.merchantAccountId(…)
multipleThe ID of the merchant account this dispute is for.
A fragment of the merchant account ID to search for.
.contains(…)
textA part of the merchant account ID to search for.
.endsWith(…)
textA postfix for the merchant account ID to search for.
.is(…)
textAn exact merchant account ID to search for.
.isNot(…)
textA merchant account ID to be excluded from the search.
.startsWith(…)
textA prefix for the merchant account ID to search for.
.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(…)
multipleThe raw reason code provided by the processor (e.g. 83).
.receivedDate(…)
rangeThe date the dispute was received by the merchant.
The reference number of the dispute.
.replyByDate(…)
rangeThe merchant Reply By date that is referenced in the gateway.
.status(…)
multipleThe status of the dispute. Possible values:
- ACCEPTED
- AUTO_ACCEPTED
- DISPUTED
- EXPIRED
- OPEN
- LOST
- WON
See dispute statuses for more details.
The unique identifier for the disputed transaction.
.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:
- Java
DisputeSearchRequest searchRequest = new DisputeSearchRequest()
.kind()
.in(Dispute.Kind.CHARGEBACK, Dispute.Kind.RETRIEVAL);
Amount disputed range
This example shows searches on the amountDisputed parameter:
- Java
DisputeSearchRequest searchRequest = new DisputeSearchRequest()
.amountDisputed()
.between(new BigDecimal("100.00"), new BigDecimal("200.00"));