Appearance
Submit a business account request
Sends a draft or declined business account request to MOOKHPay. A sole proprietorship goes straight to staff (pending). A company goes to awaiting_directors: every director named must accept it in MOOKHPay before staff look at it. Submitting does not approve anything, and no webhook is sent when staff decide.
Endpoint
POST /v1/payments/merchant/accounts/{id}/org-requests/{request_id}/submit| Auth | Secret key |
| Scope | accounts:write |
| 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 | With the platform API on that deployment |
The key is checked with authn on every call, with no 60-second cache.
Headers
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer mkp_… |
No Idempotency-Key and no body: send nothing, or an empty JSON object {} with Content-Type: application/json. Submitting twice is not idempotent: the second call finds the request already sent and answers 409 and code 3033. After a lost answer, read the request before sending again.
Parameters
Path
| Name | Type | Required | Constraints |
|---|---|---|---|
id | string | Yes | The seller's account id |
request_id | string | Yes | orq_ and 24 hex characters, a request of this account in draft or declined |
Example request
sh
curl -X POST https://payments-ke-staging.mookhpay.co/v1/payments/merchant/accounts/acct_ke_9c2f41b07e5d38a6c1f0b294/org-requests/orq_3c8e1a9f4b7d20e6c5a1b902/submit \
-H "Authorization: Bearer $MOOKHPAY_SECRET_KEY"js
const account = "acct_ke_9c2f41b07e5d38a6c1f0b294";
const requestId = "orq_3c8e1a9f4b7d20e6c5a1b902";
const res = await fetch(
`https://payments-ke-staging.mookhpay.co/v1/payments/merchant/accounts/${account}/org-requests/${requestId}/submit`,
{ method: "POST", headers: { Authorization: `Bearer ${process.env.MOOKHPAY_SECRET_KEY}` } },
);
const answer = await res.json();
if (res.status === 409 && answer.code === 3031) {
console.log("Still missing:", answer.data.missing);
} else if (!answer.ok) {
throw new Error(`${res.status} ${answer.code}: ${answer.description}`);
} else {
console.log(answer.data.request.status);
}python
import os
import requests
account = "acct_ke_9c2f41b07e5d38a6c1f0b294"
request_id = "orq_3c8e1a9f4b7d20e6c5a1b902"
res = requests.post(
f"https://payments-ke-staging.mookhpay.co/v1/payments/merchant/accounts/{account}"
f"/org-requests/{request_id}/submit",
headers={"Authorization": f"Bearer {os.environ['MOOKHPAY_SECRET_KEY']}"},
timeout=30,
)
answer = res.json()
if res.status_code == 409 and answer["code"] == 3031:
print("Still missing:", answer["data"]["missing"])
elif not answer["ok"]:
raise RuntimeError(f"{res.status_code} {answer['code']}: {answer['description']}")
else:
print(answer["data"]["request"]["status"])php
<?php
$account = 'acct_ke_9c2f41b07e5d38a6c1f0b294';
$requestId = 'orq_3c8e1a9f4b7d20e6c5a1b902';
$ch = curl_init("https://payments-ke-staging.mookhpay.co/v1/payments/merchant/accounts/{$account}/org-requests/{$requestId}/submit");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('MOOKHPAY_SECRET_KEY')],
]);
$answer = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status === 409 && $answer['code'] === 3031) {
echo 'Still missing: ', implode(', ', $answer['data']['missing']), PHP_EOL;
} elseif (!$answer['ok']) {
throw new RuntimeException("{$status} {$answer['code']}: {$answer['description']}");
} else {
echo $answer['data']['request']['status'], PHP_EOL;
}Response
200 OK with description Organisation request sent.
json
{
"ok": true,
"description": "Organisation request sent",
"data": {
"request": {
"request_id": "orq_3c8e1a9f4b7d20e6c5a1b902",
"account_id": "acct_ke_9c2f41b07e5d38a6c1f0b294",
"kind": "sole_prop",
"name": "Wanjiru Prints",
"username": "wanjiruprints",
"status": "pending",
"decline_reason": null,
"missing_documents": [],
"documents": [
{
"id": "orqd_7a1c3e5f9b2d4068e1a3c5b7",
"type": "registration_certificate",
"file_name": "registration-certificate.pdf",
"content_type": "application/pdf",
"size": 284113,
"uploaded_at": "2026-11-20T09:04:12.000Z"
},
{
"id": "orqd_0b2d4f6a8c1e3579b0d2f4a6",
"type": "tax_pin",
"file_name": "kra-pin.pdf",
"content_type": "application/pdf",
"size": 91844,
"uploaded_at": "2026-11-20T09:05:40.000Z"
}
],
"directors": [],
"organisation_account_id": null,
"created_at": "2026-11-20T09:00:00.000Z",
"submitted_at": "2026-11-20T09:06:02.000Z",
"reviewed_at": null
}
}
}Response fields
data.request is the request object described on Create a business account request. After a submit, status is pending for a sole proprietorship and awaiting_directors for a company, and submitted_at is set. Sending a declined company request again asks every director again: each director's status goes back to invited, even one who accepted before.
Errors
| HTTP | Code | Name | When | What to do |
|---|---|---|---|---|
400 | 1701 | INVALID_REQUEST_DATA | The request has a body other than {} | Send no body |
415 | 1701 | INVALID_REQUEST_DATA | A body was sent with a content type other than JSON | Send no body |
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 lacks accounts:write | Issue a key with the scope |
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 |
403 | 3037 | PLATFORM_COMPANY_ACCOUNTS_OFF | A company's request, and your platform is no longer switched on for companies | Talk to MOOKHPay |
404 | 2943 | PLATFORM_ACCOUNT_NOT_FOUND | The account is unknown, another platform's, revoked or malformed | Check the id |
404 | 3028 | ORG_REQUEST_NOT_FOUND | The request is unknown, malformed, or not this account's | Check request_id |
409 | 3029 | ORG_REQUEST_ALREADY_OPEN | The seller has another request open | Wait for or withdraw the other request in MOOKHPay |
409 | 3030 | ORG_REQUEST_USERNAME_TAKEN | The business's username was taken since the request was made | Open a new request with another username; details cannot be changed through the API |
409 | 3031 | ORG_REQUEST_MISSING_DOCUMENTS | A required document is not attached. data.missing lists the types, for example ["tax_pin"] | Attach them and submit again |
409 | 3032 | ORG_REQUEST_BAD_DIRECTOR | A director named can no longer be added. data is { username, reason }, reason not_found or unavailable | The details cannot be changed through the API; the seller withdraws it in MOOKHPay and you open a new one |
409 | 3033 | ORG_REQUEST_WRONG_STATE | The request is not draft or declined: it was already sent, approved or withdrawn | Read it; there is nothing to send |
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 request could not be read or sent | Read it, then retry if it is still draft or declined |
Rate limit
120 requests a minute, shared by every account, balance, transaction, payout read, account link and business account request route your platform calls. Over it: 429, code 1804, with Retry-After and data.retryAfter in seconds.