Appearance
The account object
An account is a MOOKHPay account your platform reaches: one you created for a seller, one whose owner approved your account link, or a business account MOOKHPay approved from your request. The seller owns the account and its money. Your platform holds access to it, which the owner can revoke.
Create an account, Retrieve an account, List accounts and the account.created and account.updated webhooks carry it. account.linked carries the account id and the approval, not this object. Only Create and Retrieve add pocket.
Example
json
{
"id": "acct_ke_9c2f41b07e5d38a6c1f0b294",
"username": "joyotieno4821",
"status": "active",
"origin": "created",
"external_reference": "seller-5521",
"requirements": { "currently_due": ["identity"], "pending": [] },
"capabilities": { "payments": true, "payouts": true },
"created_at": "2026-11-20T09:00:00.000Z",
"pocket": {
"slug": "kazi",
"name": "Kazi Studio",
"status": "connected",
"balance_currency": "KES"
}
}pocket is there only in pocket mode. See Pocket.
Fields
| Field | Type | Nullable | Meaning |
|---|---|---|---|
id | string | No | acct_<country>_<24 hex>. Your platform's id for this account. It is not the seller's username, and another platform that reaches the same person has a different id |
username | string | No | The account's MOOKHPay ID |
status | string | No | active. A revoked account is not returned at all: it answers 404, or 409 with code 3061 where pockets are available. See Lifecycle |
origin | string | No | created (you created it, including a business account approved from your request) or linked (its owner approved your link) |
external_reference | string | Yes | Your id for the seller, as sent on create. For a business account approved from your request, the request's request_id. null for a linked account |
requirements.currently_due | array of strings | No | ["identity"] until the account passes MOOKHPay's identity check, then [] |
requirements.pending | array of strings | No | Always [] today |
capabilities.payments | boolean | No | Always true today, whatever requirements says |
capabilities.payouts | boolean | No | Always true today, whatever requirements says |
created_at | string | No | ISO 8601. When the account came under your platform |
pocket | object | — | Pocket mode only, on Create an account and Retrieve an account. Absent otherwise, and absent on List accounts and on webhooks. See Pocket |
capabilities does not tell you whether a payout will go through. An account you created that has not passed the identity check can be under a daily cap on money out that MOOKHPay switches on per deployment, and a payout over it is refused with 422 and code 2948. See Pay out sellers.
Pocket
In pocket mode (your platform has a pocket set up by MOOKHPay), MOOKHPay opens a pocket named after your platform in the person's wallet when the account is made or the link is approved. Your pay-ins, payouts, balance and transactions all use that pocket.
| Field | Type | Meaning |
|---|---|---|
pocket.slug | string | The pocket's slug in the person's wallet. The same as wallet on the balance and transactions, and pocket.slug on a transfer |
pocket.name | string | The pocket's name, as the person sees it |
pocket.status | string | opening, connected or disconnected. See below |
pocket.balance_currency | string or null | The currency the pocket holds: KES on the Kenya host |
pocket.status | Meaning | What to do |
|---|---|---|
opening | MOOKHPay is opening the pocket, moments after the account was made or linked. Also shown when the pocket could not be read just then | Wait. Pay-ins and payouts answer 409 with code 3063 until it is open: retry them shortly with the same Idempotency-Key |
connected | Open and ready to pay into and out of | Pay in |
disconnected | The ledger reports your platform's connection to the pocket as closed | Stop paying in. Calls that use the pocket answer 409 with code 3061 |
The pocket is the person's. They can move money out of it, spend it or withdraw it whenever they like. They cannot close it while your platform is connected.
Lifecycle
| Event | What changes | Webhook |
|---|---|---|
| You create the account | It appears, origin created | account.created |
| The owner approves your link | It appears, origin linked | account.linked, when the owner approves |
| The seller sets a PIN and claims the account | Nothing in this object | account.claimed |
| The identity check passes | requirements.currently_due becomes [] | account.updated is defined for this but is not sent today |
| The owner disconnects your platform, or closes their account | It leaves your lists and feed. Where pockets are available (Kenya), every call about it answers 409 with code 3061 (PLATFORM_ACCOUNT_DISCONNECTED); elsewhere, 404. A pocket and its money stay the person's | account.disconnected |