List an escrow's disputes
curl --request GET \
--url https://api.ketapay.com/v1/escrows/{id}/disputes \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ketapay.com/v1/escrows/{id}/disputes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ketapay.com/v1/escrows/{id}/disputes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"object": "list",
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object": "dispute",
"livemode": true,
"escrow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"milestone_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"opened_by": "buyer",
"status": "open",
"reason": "not_received",
"outcome": "released",
"resolved_by": "buyer",
"url": "https://app.ketapay.com/disputes/8e2f4a6c-1d3b-4c7e-9a5f-0b2d4f6a8c13",
"awaiting_evidence_from": "buyer",
"evidence_due_at": "2023-11-07T05:31:56Z",
"evidence_count": 1,
"opened_at": "2023-11-07T05:31:56Z",
"resolved_at": "2023-11-07T05:31:56Z",
"refunded_amount": 45000000
}
]
}{
"error": {
"type": "authentication_error",
"code": "api_key_invalid",
"message": "This API key is invalid or has been revoked.",
"param": null,
"request_id": "req_01J9ZK7M2Q4V8XW3B6N5T0R1YH"
}
}{
"error": {
"type": "invalid_request_error",
"code": "resource_not_found",
"message": "No escrow with id 3b1f6c2e-8d4a-4e7b-9c1d-2a5f8e6b7c90.",
"param": "id",
"request_id": "req_01J9ZK7M2Q4V8XW3B6N5T0R1YH"
}
}{
"error": {
"type": "rate_limit_error",
"code": "rate_limited",
"message": "Too many requests. Retry after the time in X-RateLimit-Reset.",
"param": null,
"request_id": "req_01J9ZK7M2Q4V8XW3B6N5T0R1YH"
}
}Disputes
List an escrow's disputes
Every dispute on the escrow, open and resolved, newest first.
GET
/
escrows
/
{id}
/
disputes
List an escrow's disputes
curl --request GET \
--url https://api.ketapay.com/v1/escrows/{id}/disputes \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ketapay.com/v1/escrows/{id}/disputes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ketapay.com/v1/escrows/{id}/disputes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"object": "list",
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object": "dispute",
"livemode": true,
"escrow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"milestone_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"opened_by": "buyer",
"status": "open",
"reason": "not_received",
"outcome": "released",
"resolved_by": "buyer",
"url": "https://app.ketapay.com/disputes/8e2f4a6c-1d3b-4c7e-9a5f-0b2d4f6a8c13",
"awaiting_evidence_from": "buyer",
"evidence_due_at": "2023-11-07T05:31:56Z",
"evidence_count": 1,
"opened_at": "2023-11-07T05:31:56Z",
"resolved_at": "2023-11-07T05:31:56Z",
"refunded_amount": 45000000
}
]
}{
"error": {
"type": "authentication_error",
"code": "api_key_invalid",
"message": "This API key is invalid or has been revoked.",
"param": null,
"request_id": "req_01J9ZK7M2Q4V8XW3B6N5T0R1YH"
}
}{
"error": {
"type": "invalid_request_error",
"code": "resource_not_found",
"message": "No escrow with id 3b1f6c2e-8d4a-4e7b-9c1d-2a5f8e6b7c90.",
"param": "id",
"request_id": "req_01J9ZK7M2Q4V8XW3B6N5T0R1YH"
}
}{
"error": {
"type": "rate_limit_error",
"code": "rate_limited",
"message": "Too many requests. Retry after the time in X-RateLimit-Reset.",
"param": null,
"request_id": "req_01J9ZK7M2Q4V8XW3B6N5T0R1YH"
}
}Authorizations
Authorization: Bearer <secret key>. Secret keys belong to your organisation, are shown
once when created in the dashboard, and are scoped (see x-required-scope on each
operation). Keep them on your server. Live keys are issued after your business is
verified. Publishable keys (pk_) are only for @ketapay/checkout and don't work here.
Path Parameters
⌘I