Appearance
Retrieve a transfer
Reads one pay-in your platform made into one of your accounts' pockets, with its status as it stands now. Use it to confirm a pay-in after a timeout, or to check that the amount is what you sent.
It reads only. A transfer that is processing stays so until you resend the pay-in with its Idempotency-Key; see Create a transfer.
Endpoint
GET /v1/payments/merchant/accounts/{id}/transfers/{transfer_id}| 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: acct_, the country, _ and 24 hex characters |
transfer_id | string | Yes | tr_, the country, _ and 24 hex characters, made into this account's pocket |
Example request
sh
curl https://payments-ke-staging.mookhpay.co/v1/payments/merchant/accounts/acct_ke_9c2f41b07e5d38a6c1f0b294/transfers/tr_ke_5a0c2e9b7d1f43a8b6e2c917 \
-H "Authorization: Bearer $MOOKHPAY_SECRET_KEY"js
const BASE = "https://payments-ke-staging.mookhpay.co/v1/payments/merchant";
const account = "acct_ke_9c2f41b07e5d38a6c1f0b294";
const transferId = "tr_ke_5a0c2e9b7d1f43a8b6e2c917";
const res = await fetch(`${BASE}/accounts/${account}/transfers/${transferId}`, {
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}`);
console.log(answer.data.status, answer.data.amount);Response
200 OK with description Transfer.
json
{
"ok": true,
"description": "Transfer",
"data": {
"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"
}
}Response fields
data is the transfer object. A pay-in refused after it was recorded (3060) reads back here as failed.
Errors
| HTTP | Code | Name | When | What to do |
|---|---|---|---|---|
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 |
404 | 3067 | PLATFORM_TRANSFER_NOT_FOUND | The transfer is unknown, malformed, or another account's or another platform's. data.error is PLATFORM_TRANSFER_NOT_FOUND | Check both ids. A pay-in refused before it was recorded (for example 3062 or 2945) never has a transfer |
409 | 3061 | PLATFORM_ACCOUNT_DISCONNECTED | The person disconnected your platform in MOOKHPay. data.error is PLATFORM_ACCOUNT_DISCONNECTED | 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 account, balance, transaction, payout read and transfer read route your platform calls. Over it: 429, code 1804, with Retry-After and data.retryAfter in seconds.