Dispute

Dispute: Search

Returns a collection of Dispute response objects.

availability

Managing disputes via the API is only available to merchants who can access disputes in the Braintree Control Panel.

For operators available on search fields, see the search fields page.

  1. 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
The decimal value representing the disputed amount.
The decimal value representing the reserved amount.
The case number of the dispute.

The chargeback protection level of the dispute. Possible values:

  • EFFORTLESS
  • STANDARD
  • NOT_PROTECTED
The unique customer identifier associated with the disputed transaction.
The disbursement date of the dispute history event.
The effective date of the dispute history event.
The unique dispute identifier.
.kind(…)multiple
The kind of dispute.
The ID of the merchant account this dispute is for.
A part of the merchant account ID to search for.
A postfix for the merchant account ID to search for.
An exact merchant account ID to search for.
A merchant account ID to be excluded from the search.
A prefix for the merchant account ID to search for.

The pre-dispute program of the dispute. Possible values:

  • VISA_RDR
  • NONE
.reason(…)multiple

The reason for the dispute. See reasons on the dispute response object for possible values.

The raw reason code provided by the processor (e.g. 83).
The date the dispute was received by the merchant.
The reference number of the dispute.
The merchant Reply By date that is referenced in the gateway.
.status(…)multiple

The 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.

How a transaction was created. Possible values:

  • API
  • CONTROL_PANEL
  • RECURRING
  • OAuth application client ID of the transaction facilitator

Examplesanchor

Multiple kindsanchor

This example shows searches on the kind parameter:

  1. Java
DisputeSearchRequest searchRequest = new DisputeSearchRequest()
  .kind()
  .in(Dispute.Kind.CHARGEBACK, Dispute.Kind.RETRIEVAL);

Amount disputed rangeanchor

This example shows searches on the amountDisputed parameter:

  1. Java
DisputeSearchRequest searchRequest = new DisputeSearchRequest()
  .amountDisputed()
  .between(new BigDecimal("100.00"), new BigDecimal("200.00"));