GET /checkout_sessions, GET /escrows, GET /events, …) return results newest first, a page at a time.
cursor=<next_cursor> until has_more is false. Cursors are opaque: don’t build or change them.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Walk through lists with a cursor.
GET /checkout_sessions, GET /escrows, GET /events, …) return results newest first, a page at a time.
| Parameter | Meaning |
|---|---|
limit | Items per page, 1 to 100. Default 20 |
cursor | The next_cursor from the previous page. Leave it out for the first page |
{
"object": "list",
"data": [ { "id": "...", "object": "escrow" } ],
"has_more": true,
"next_cursor": "eyJjIjoiMjAyNi0xMC0xOFQwOToz..."
}
cursor=<next_cursor> until has_more is false. Cursors are opaque: don’t build or change them.
curl -G https://api.ketapay.com/v1/escrows \
-d external_reference=order_7781 \
-H "Authorization: Bearer $KETAPAY_SECRET_KEY"
for await (const escrow of ketapay.escrows.list({
status: 'active',
limit: 100,
})) {
console.log(escrow.id)
}
foreach (
$ketapay->escrows->list([
'status' => 'active',
'limit' => 100,
])
as $escrow
) {
echo $escrow->id;
}