Disputes
The Dispute resource represents a card dispute that has been raised by an end customer. More details on card disputes can be found in Unit's disputes guide
Get by Id
Get a dispute resource by id.
| Verb | GET |
| URL | https://api.s.unit.sh/disputes/{id} |
| Required Scope | disputes |
| Timeout (Seconds) | 5 |
Response
Response is a JSON:API document.
200 OK
| Field | Type | Description |
|---|---|---|
| data | Dispute | A dispute resource. |
curl -X GET 'https://api.s.unit.sh/disputes/42' \
-H "Authorization: Bearer ${TOKEN}"
List
List dispute resources. Paging can be applied.
| Verb | GET |
| URL | https://api.s.unit.sh/disputes |
| Required Scope | disputes |
| Timeout (Seconds) | 5 |
Query Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| page[limit] | integer | 100 | Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination. |
| page[offset] | integer | 0 | Optional. Number of resources to skip. See Pagination. |
| filter[query] | string | (empty) | Optional. Search term according to the Full-Text Search Rules. |
Response
Response is a JSON:API document.
200 OK
| Field | Type | Description |
|---|---|---|
| data | Array of Disputes | Array of dispute resources. |
curl -X GET 'https://api.s.unit.sh/disputes?page[limit]=20&page[offset]=10' \
-H "Authorization: Bearer ${TOKEN}"