Dispute
Dispute: Search
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
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.
ReferenceNumber
textThe 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.
TransactionId
textThe 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:
- 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);