Retrieves a list of all disputes.
Retrieves a list of all disputes.
filter | string Filters the collection items. This field requires a special format. Use For more information, see Using filter with collections. |
sort | Array of strings Sorts and orders the collection of items. To sort in descending order, prefix with |
limit | integer [ 0 .. 1000 ] Limits the number of collection items to be returned. |
offset | integer [ 0 .. 1000 ] Specifies the starting point within the collection of items to be returned. |
q | string Use this field to perform a partial search of text fields. |
expand | string Expands a request to include embedded objects within the For more information, see Expand to include embedded objects. |
$disputes = $client->disputes()->search([ 'filter' => 'transactionId:testId', ]);
200
List of disputes successfully retrieved.
401
Unauthorized access. Invalid credentials used.
403
Access forbidden.
[ { "id": "dp_0YVCE8J5F2DE58FV0S8YASW4HK", "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF", "transactionId": "txn_0YVDTQJ8YWDGQACV2N2N5SPWQ0", "currency": "USD", "amount": 0.1, "acquirerReferenceNumber": "string", "caseId": "string", "reasonCode": "string", "reasonDescription": "string", "category": "fraud", "type": "information-request", "status": "response-needed", "postedTime": "2019-08-24T14:15:22Z", "deadlineTime": "2019-08-24T14:15:22Z", "rawResponse": "string", "resolvedTime": "2019-08-24T14:15:22Z", "source": null, "revision": 0, "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "_links": [ { "href": "string", "rel": "self" } ], "_embedded": { "transaction": { } } } ]