Skip to content

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
AuthSecret key
Scopeaccounts:write
PlatformYour organisation must be switched on as a platform, and the call must come from an allowed address if MOOKHPay set a list
Switched onWith the platform API on that deployment

The key is checked with authn on every call, with no 60-second cache.

Headers ​

HeaderRequiredValue
AuthorizationYesBearer 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

NameTypeRequiredConstraints
idstringYesThe seller's account id
request_idstringYesorq_ 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 ​

HTTPCodeNameWhenWhat to do
4001701INVALID_REQUEST_DATAThe request has a body other than {}Send no body
4151701INVALID_REQUEST_DATAA body was sent with a content type other than JSONSend no body
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 lacks accounts:writeIssue a key with the scope
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
4033037PLATFORM_COMPANY_ACCOUNTS_OFFA company's request, and your platform is no longer switched on for companiesTalk to MOOKHPay
4042943PLATFORM_ACCOUNT_NOT_FOUNDThe account is unknown, another platform's, revoked or malformedCheck the id
4043028ORG_REQUEST_NOT_FOUNDThe request is unknown, malformed, or not this account'sCheck request_id
4093029ORG_REQUEST_ALREADY_OPENThe seller has another request openWait for or withdraw the other request in MOOKHPay
4093030ORG_REQUEST_USERNAME_TAKENThe business's username was taken since the request was madeOpen a new request with another username; details cannot be changed through the API
4093031ORG_REQUEST_MISSING_DOCUMENTSA required document is not attached. data.missing lists the types, for example ["tax_pin"]Attach them and submit again
4093032ORG_REQUEST_BAD_DIRECTORA director named can no longer be added. data is { username, reason }, reason not_found or unavailableThe details cannot be changed through the API; the seller withdraws it in MOOKHPay and you open a new one
4093033ORG_REQUEST_WRONG_STATEThe request is not draft or declined: it was already sent, approved or withdrawnRead it; there is nothing to send
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 request could not be read or sentRead 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.

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