Skip to content

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}
AuthSecret key
Scopetransfers:write or accounts:read (either one)
PlatformYour organisation must be switched on as a platform, and the call must come from an allowed address if MOOKHPay set a list
Switched onWhere pockets are available: Kenya. Elsewhere the route answers 404

Headers ​

HeaderRequiredValue
AuthorizationYesBearer mkp_…

Parameters ​

Path

NameTypeRequiredConstraints
idstringYesOne of your account ids: acct_, the country, _ and 24 hex characters
transfer_idstringYestr_, 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 ​

HTTPCodeNameWhenWhat to do
4003014IDENTITY_HEADER_REFUSEDThe request carries a session or identity headerRemove it
4012781API_KEY_INVALIDMissing, malformed, unknown or revoked keyCheck the key
4032941API_KEY_SCOPE_REQUIREDThe key has neither transfers:write nor accounts:readIssue a key with one of them
4033042API_KEY_IP_NOT_ALLOWEDThe account has allowed addresses and the call came from another addressCall from a listed address
4032942PLATFORM_NOT_ENABLEDYour organisation is not a platform, or its platform is suspendedTalk to MOOKHPay
4033013PLATFORM_IP_NOT_ALLOWEDThe call came from an address not on your platform's allow-listCall from a listed address
4042943PLATFORM_ACCOUNT_NOT_FOUNDThe account is unknown, another platform's or malformedCheck the id
4043067PLATFORM_TRANSFER_NOT_FOUNDThe transfer is unknown, malformed, or another account's or another platform's. data.error is PLATFORM_TRANSFER_NOT_FOUNDCheck both ids. A pay-in refused before it was recorded (for example 3062 or 2945) never has a transfer
4093061PLATFORM_ACCOUNT_DISCONNECTEDThe person disconnected your platform in MOOKHPay. data.error is PLATFORM_ACCOUNT_DISCONNECTEDRead your own records of what you paid in
4291804RATE_LIMIT_EXCEEDEDOver the rate limit, or your platform reached its limit of unknown account idsWait Retry-After seconds
5032782AUTHN_UNAVAILABLEThe key could not be checkedRetry
5033016PLATFORM_ACCOUNTS_UNAVAILABLEThe account could not be readRetry

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.

Staging documentation. A checkout made with a secret key on staging charges a real phone. See Environments.