Appearance
List transfers
Lists the pay-ins your platform made into one account's pocket, newest first, a page at a time. Pay-ins that failed after they were recorded (3060) and pay-ins still processing are listed too.
Use it to rebuild your records for one person, or to find pay-ins left processing after a timeout. For the pocket's whole history, including what the person moved or spent themselves, use List an account's transactions.
Endpoint
GET /v1/payments/merchant/accounts/{id}/transfers| Auth | Secret key |
| Scope | transfers:write or accounts:read (either one) |
| Platform | Your organisation must be switched on as a platform, and the call must come from an allowed address if MOOKHPay set a list |
| Switched on | Where pockets are available: Kenya. Elsewhere the route answers 404 |
Headers
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer mkp_… |
Parameters
Path
| Name | Type | Required | Constraints |
|---|---|---|---|
id | string | Yes | One of your account ids |
Query. Unknown parameters are refused with 400 and code 1701.
| Name | Type | Required | Constraints |
|---|---|---|---|
limit | string of digits | No | 1 to 100, default 20 |
starting_after | string | No | The last transfer_id of the page before. One that is not a pay-in into this account is 400 and code 3012 |
Example request
sh
curl -G https://payments-ke-staging.mookhpay.co/v1/payments/merchant/accounts/acct_ke_9c2f41b07e5d38a6c1f0b294/transfers \
--data-urlencode "limit=50" \
-H "Authorization: Bearer $MOOKHPAY_SECRET_KEY"js
const BASE = "https://payments-ke-staging.mookhpay.co/v1/payments/merchant";
const account = "acct_ke_9c2f41b07e5d38a6c1f0b294";
const transfers = [];
let startingAfter = null;
for (;;) {
const query = new URLSearchParams({ limit: "100" });
if (startingAfter) query.set("starting_after", startingAfter);
const res = await fetch(`${BASE}/accounts/${account}/transfers?${query}`, {
headers: { Authorization: `Bearer ${process.env.MOOKHPAY_SECRET_KEY}` },
});
const answer = await res.json();
if (!answer.ok) throw new Error(`${res.status} ${answer.code}: ${answer.description}`);
transfers.push(...answer.data.transfers);
if (!answer.data.has_more) break;
startingAfter = answer.data.transfers.at(-1).transfer_id;
}
const stuck = transfers.filter((t) => t.status === "processing");
console.log(transfers.length, "pay-ins,", stuck.length, "to resend");Response
200 OK with description Transfers.
json
{
"ok": true,
"description": "Transfers",
"data": {
"transfers": [
{
"transfer_id": "tr_ke_5a0c2e9b7d1f43a8b6e2c917",
"account": "acct_ke_9c2f41b07e5d38a6c1f0b294",
"pocket": { "slug": "kazi" },
"amount": 150000,
"currency": "KES",
"status": "succeeded",
"remarks": "Payment for the Safari Lager campaign",
"external_reference": "job-7731",
"created_at": "2026-11-25T08:14:31.000Z"
},
{
"transfer_id": "tr_ke_0e7b4c1a9d2f58e3b6a0c741",
"account": "acct_ke_9c2f41b07e5d38a6c1f0b294",
"pocket": { "slug": "kazi" },
"amount": 80000,
"currency": "KES",
"status": "failed",
"remarks": null,
"external_reference": "job-7690",
"created_at": "2026-11-24T16:02:10.000Z"
}
],
"has_more": false
}
}Response fields
| Field | Type | Meaning |
|---|---|---|
transfers | array | Up to limit transfer objects, newest first |
has_more | boolean | true when there are older pay-ins. Pass the last transfer_id as starting_after for the next page |
Errors
| HTTP | Code | Name | When | What to do |
|---|---|---|---|---|
400 | 1701 | INVALID_REQUEST_DATA | limit outside 1 to 100, or an unknown parameter | Fix the query |
400 | 3012 | PLATFORM_CURSOR_INVALID | starting_after is not a pay-in into this account. data.error is PLATFORM_CURSOR_INVALID | Start again without it |
400 | 3014 | IDENTITY_HEADER_REFUSED | The request carries a session or identity header | Remove it |
401 | 2781 | API_KEY_INVALID | Missing, malformed, unknown or revoked key | Check the key |
403 | 2941 | API_KEY_SCOPE_REQUIRED | The key has neither transfers:write nor accounts:read | Issue a key with one of them |
403 | 3042 | API_KEY_IP_NOT_ALLOWED | The account has allowed addresses and the call came from another address | Call from a listed address |
403 | 2942 | PLATFORM_NOT_ENABLED | Your organisation is not a platform, or its platform is suspended | Talk to MOOKHPay |
403 | 3013 | PLATFORM_IP_NOT_ALLOWED | The call came from an address not on your platform's allow-list | Call from a listed address |
404 | 2943 | PLATFORM_ACCOUNT_NOT_FOUND | The account is unknown, another platform's or malformed | Check the id |
409 | 3061 | PLATFORM_ACCOUNT_DISCONNECTED | The person disconnected your platform in MOOKHPay | Read your own records of what you paid in |
429 | 1804 | RATE_LIMIT_EXCEEDED | Over the rate limit, or your platform reached its limit of unknown account ids | Wait Retry-After seconds |
503 | 2782 | AUTHN_UNAVAILABLE | The key could not be checked | Retry |
503 | 3016 | PLATFORM_ACCOUNTS_UNAVAILABLE | The account could not be read | Retry |
Rate limit
120 requests a minute per platform, shared with every other account route. Over it: 429, code 1804, with Retry-After and data.retryAfter in seconds.