Dispute: Search
Note
Results are limited according to the PayPal Data Protection Addendum For Card Processing Products policy.
Availability
Managing disputes via the API is only available to merchants who can access disputes in the
Braintree Control Panel.
- C#
var request = new DisputeSearchRequest().Id.Is("dispute_id");
ResourceCollection<Dispute> collection = gateway.Dispute.Search(request);
foreach (Dispute dispute in collection) {
Console.WriteLine(dispute.Id);
}Parameters
AmountDisputedrangeThe decimal value representing the disputed amount.
AmountWonrangeThe decimal value representing the reserved amount.
CaseNumbertextThe case number of the dispute.
ChargebackProtectionLevelmultipleThe chargeback protection level of the dispute. Possible values:
- EFFORTLESS
- STANDARD
- NOT_PROTECTED
CustomerIdtextThe unique customer identifier associated with the disputed transaction.
DisbursementDaterangeThe disbursement date of the dispute history event.
EffectiveDaterangeThe effective date of the dispute history event.
IdtextThe unique dispute identifier.
KindmultipleThe kind of dispute.
MerchantAccountIdmultipleThe ID of the merchant account this dispute is for.
A fragment of the merchant account ID to search for.
ContainstextA part of the merchant account ID to search for.
EndsWithtextA postfix for the merchant account ID to search for.
IstextAn exact merchant account ID to search for.
IsNottextA merchant account ID to be excluded from the search.
StartsWithtextA prefix for the merchant account ID to search for.
PreDisputeProgrammultipleThe pre-dispute program of the dispute. Possible values:
- VISA_RDR
- NONE
ReasonmultipleThe reason for the dispute. See reasons on the dispute response object for possible values.
ReasonCodemultipleThe raw reason code provided by the processor (e.g. 83).
ReceivedDaterangeThe date the dispute was received by the merchant.
ReferenceNumbertextThe reference number of the dispute.
ReplyByDaterangeThe merchant Reply By date that is referenced in the gateway.
StatusmultipleThe status of the dispute. Possible values:
- ACCEPTED
- AUTO_ACCEPTED
- DISPUTED
- EXPIRED
- OPEN
- LOST
- WON
See dispute statuses for more details.
TransactionIdtextThe unique identifier for the disputed transaction.
TransactionSourcemultipleHow 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:
- C#
var searchRequest = new DisputeSearchRequest().Kind.IncludedIn(DisputeKind.CHARGEBACK, DisputeKind.RETRIEVAL);Amount disputed range
This example shows searches on the AmountDisputed parameter:
- C#
var searchRequest = new DisputeSearchRequest().AmountDisputed.Between(100.00M, 200.00M);