Close a sub-account
Closes a sub or payroll account. The ledger balance must be zero (move money out first) and nothing scheduled or pending from it.
Primary and agent accounts can’t be closed here. History is kept; the account number stops receiving money.
Roles: owner, admin.
Step-up: requires a fresh X-Step-Up-Token (403 step_up_required otherwise).
Error codes: invalid_api_key, resource_not_found, role_not_permitted, invalid_state, account_closed, account_balance_not_zero, bank_unavailable, step_up_required, csrf_token_invalid, idempotency_key_reused, rate_limited.
Authorizations
Server API key, scoped. pk_test_ keys hit the sandbox tenant.
Headers
Optional client correlation id, up to 128 characters. It is not echoed: the response's X-Request-Id is always
our own req_… id. We log your value with the request as client_request_id, so support can find a request by
either id. A longer value is refused with 400 parameter_invalid.
128Optional on non-money POSTs; honoured when sent.
1 - 255Proof of a 2FA step-up within the last 5 minutes (POST /v1/auth/step-up).
Path Parameters
Account.
^acc_[0-9A-HJKMNP-TV-Z]{26}$Body
Close a sub-account. The balance must be zero.
Why. Audited.
500Response
OK.
A customer account, with its own account number and balances.
Account id.
^acc_[0-9A-HJKMNP-TV-Z]{26}$Always account.
"account"When it was created.
"2026-10-27T08:41:00Z"
When it was created.
"2026-10-27T08:41:00Z"
Name in PanoFlow ("Main", "Payroll", "Savings"). Only the team sees it.
40Currency plus name, e.g. "Naira · Main".
main: the primary account per currency (Naira · Main opens on approval).
main, payroll, sub, agent True for the primary account of its currency ("Primary account" vs "Sub-account").
Currency.
NGN, USD, GBP, EUR, GHS, KES opening: the partner bank has not returned the account number yet.
opening, active, closed The account's balances: available, ledger, in_flight.
Name on the bank account, as payers see it ("Adaeze Logistics Ltd").
10-digit NUBAN for NGN accounts. Null while opening.
The bank that issued the account number, as shown on the account details.
That bank's institution code.
"058"
Extra local details for non-naira accounts. Empty for NGN.
False for sandbox accounts (test money).
For agent accounts: the agent (agt_…).
^agt_[0-9A-HJKMNP-TV-Z]{26}$"Opened 2 Jun 2026". Null while opening.
When closed.