> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zuba.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Money amounts are always major-unit decimal strings (e.g. "1000.00"), never floats and never minor units, in every request, response, and webhook payload.
> Authentication is an API key sent as Authorization: Bearer <key> on every request, with no token exchange. Keys start with zk_test_ in sandbox and zk_live_ in production. A key issued with a Client ID can still use the retiring client-credentials token exchange.
> Set a unique clientRef on every money-moving request; it is the idempotency key, and retries return the original resource.
> Quotes are single-use, intent-locked, and expire fast: always read expiresAt, consume the quote with the executor matching its intent, and re-quote on expiry instead of retrying.
> Prefer webhooks over polling for payout, order, application, and virtual-account status tracking.
> Use the sandbox (api.sandbox.zuba.com) with its deterministic magic values before touching production.

# Onboard a Sub-Account

> Create a sub-account, file its business or individual application, and get it approved: every call in order, with sample payloads and what each submit refusal means

A sub-account is one of your own customers, held under your workspace. It starts `pending` and can move money once its application is approved. This guide walks the whole path for a business (KYB) and for an individual (KYC):

1. Create the sub-account.
2. Create its application.
3. Verify the applicant's identity.
4. Upload the documents.
5. Submit.
6. Approve it (in the sandbox you do this yourself).

The terms its accounts are opened under are accepted separately, from the account requirements, at any point from step 2 on. See [Account terms](#account-terms).

## Prerequisites

* **A financial-institution workspace enabled for sub-accounts.** Any other workspace gets `403 sub_accounts_fi_only` or `403 sub_accounts_not_enabled` on `POST /v1/accounts`. Contact your account manager to get set up.
* **An API key with the account and application scopes**: `create:accounts`, `read:accounts`, `update:accounts`, `create:applications`, `read:applications` and `update:applications` (see [Scopes](https://docs.zuba.com/authentication.md#scopes)).

The examples use the sandbox host `https://api.sandbox.zuba.com`. In production, swap it for `https://api.zuba.com`; the calls are the same except for the approval in step 6.

## Step 1: Create the sub-account

```bash theme={"dark"}
curl -X POST "https://api.sandbox.zuba.com/v1/accounts" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Idempotency-Key: 6f1c2a0e-4c1b-4b7e-9d53-2f6f1f0a9b11" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Northwind Trading Ltd", "country": "GB" }'
```

```json theme={"dark"}
{
  "id": "e307c3df-fb80-4a1d-89ef-60229d37c2ec",
  "parentAccountId": "0b9f4c3e-7a55-4d0e-8a51-0f3c2b1d9e77",
  "name": "Northwind Trading Ltd",
  "accountType": "sub",
  "status": "pending",
  "country": "GB",
  "createdAt": "2026-11-12T09:00:00.000Z"
}
```

`Idempotency-Key` is required; repeating the call with the same key returns the same account. Keep the `id`: it is the value of the `Zuba-Account-Id` header on the calls that follow. The `account.created` webhook is delivered.

## Step 2: Create the application

`POST /v2/applications` with `Zuba-Account-Id` naming the sub-account creates its application as a `draft`. A sub-account holds one active application; a second create answers `409`.

An application is made of sections, and each section you send completes one or more steps. `POST /v2/applications/{id}/submit` refuses with `403 incomplete_steps` and a `missingSteps` list until every step is complete:

| `missingSteps` value | Completed by |
| - | - |
| `your_details` | Sending `applicant` |
| `business_info`, `addresses` | Sending `businessInfo` |
| `business_activity` | Sending `businessActivity` |
| `directors_shareholders` | Sending `hasIndirectControl`. Adding people does not complete it, and it is accepted only once `your_details` is complete |
| `individual_activity` | Sending `individualActivity` (individual applications) |
| `verify_identity` | The applicant's identity verification (step 3) |
| `documents` | Uploading the required documents (step 4) |

You can send every section on the create call, or create with less and add the rest with `PATCH /v2/applications/{id}`. A section is sent whole: a `PATCH` carrying `businessInfo` carries all of its required fields.

### A business (KYB)

```bash theme={"dark"}
curl -X POST "https://api.sandbox.zuba.com/v2/applications" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Zuba-Account-Id: e307c3df-fb80-4a1d-89ef-60229d37c2ec" \
  -H "Content-Type: application/json" \
  -d '{
    "applicationType": "business",
    "persona": "sme",
    "applicant": {
      "applicantFirstName": "Amelia",
      "applicantLastName": "Hart",
      "applicantDateOfBirth": "1985-06-15",
      "applicantNationality": "GB",
      "applicantNationalId": "QQ123456C",
      "applicantPhone": "+447700900123",
      "applicantResidentialAddress": {
        "street": "14 Mill Lane",
        "city": "Leeds",
        "state": "West Yorkshire",
        "postalCode": "LS1 4AB",
        "country": "GB"
      }
    },
    "businessInfo": {
      "legalName": "Northwind Trading Ltd",
      "registrationNumber": "09876543",
      "countryOfIncorporation": "GB",
      "entityType": "llc_ltd",
      "industry": "trade",
      "businessDescription": "Northwind Trading imports packaged food from suppliers in West Africa and sells it to independent grocers across the United Kingdom.",
      "incorporationAddress": {
        "street": "2 Canal Street",
        "city": "Leeds",
        "state": "West Yorkshire",
        "postalCode": "LS2 7HY",
        "country": "GB"
      },
      "sameAsIncorporation": true,
      "incorporationDate": "2015-03-02",
      "taxId": "GB123456789",
      "website": "https://northwind.example"
    },
    "businessActivity": {
      "sourceOfFunds": "revenue",
      "accountPurposes": ["cross_border_payments"],
      "monthlyFiatVolume": "50k_to_500k",
      "monthlyCryptoVolume": "none",
      "isMsb": false,
      "isRegulated": false,
      "movesFundsOnBehalfOfOthers": false
    },
    "persons": [
      {
        "role": "director_and_shareholder",
        "isApplicant": true,
        "firstName": "Amelia",
        "lastName": "Hart",
        "dateOfBirth": "1985-06-15",
        "nationality": "GB",
        "title": "Managing Director",
        "emailAddress": "amelia.hart@northwind.example",
        "phoneNumber": "+447700900123",
        "taxId": "QQ123456C",
        "ownershipPercentage": 100,
        "residentialAddress": {
          "street": "14 Mill Lane",
          "city": "Leeds",
          "state": "West Yorkshire",
          "postalCode": "LS1 4AB",
          "country": "GB"
        }
      }
    ],
    "hasIndirectControl": false
  }'
```

The response is the application, with its `id` and `status: "draft"`.

* **`persons`** lists every director and shareholder. `role` is `director`, `shareholder`, `director_and_shareholder` or `signing_officer`. Mark the person who is also the applicant with `isApplicant: true`; their names must match the applicant's. After creation, manage people with `POST`, `PATCH` and `DELETE` on `/v2/applications/{id}/persons`.
* **`hasIndirectControl`** answers whether anyone controls the business other than through the people listed. With `true`, send `indirectControlDetails` describing it. This answer is what completes `directors_shareholders`, so an application created without it needs:

```bash theme={"dark"}
curl -X PATCH "https://api.sandbox.zuba.com/v2/applications/APPLICATION_ID" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "hasIndirectControl": false }'
```

* **`monthlyFiatVolume`** is a bucket, not an amount, and the business's `countryOfIncorporation` selects the list:

| Country of incorporation | `monthlyFiatVolume` | `accountPurposes` |
| - | - | - |
| `NG`, `KE` | `less_than_10k`, `10k_to_50k`, `50k_to_200k`, `200k_to_1m`, `above_1m` | `pay_overseas_suppliers`, `repatriate_export_proceeds`, `pay_licence_fees`, `collect_overseas_payments`, `other` |
| Any other | `less_than_5k`, `5k_to_50k`, `50k_to_500k`, `500k_to_5m`, `above_5m` | `business_operations`, `capital_deployment`, `cross_border_payments`, `stablecoin_conversion`, `other` |

`monthlyCryptoVolume` takes `less_than_5k`, `5k_to_50k`, `50k_to_500k`, `500k_to_5m`, `above_5m` or `none` for every country. `sourceOfFunds` is `revenue`, `investment` or `other`. `entityType` is `corporation`, `llc_ltd`, `partnership`, `non_profit`, `trust` or `sole_proprietorship`.

Every business, wherever it is incorporated, must carry these before it can be submitted. Each one missing is reported as `incomplete_steps`, with a `message` naming it and the step it belongs to in `missingSteps`:

| Requirement | Field | Step |
| - | - | - |
| The business's industry | `businessInfo.industry` | `business_info` |
| The business's legal form | `businessInfo.entityType` | `business_info` |
| Whether the business is regulated by a government or financial authority | `businessActivity.isRegulated` | `business_activity` |
| Whether the business moves money or digital assets on behalf of others | `businessActivity.movesFundsOnBehalfOfOthers` | `business_activity` |
| An email address for every director and shareholder | `emailAddress` on each person | `directors_shareholders` |

A business incorporated outside `NG` and `KE` must also carry these before it can be submitted. Each one missing is reported as `incomplete_steps`, with a `message` naming it:

| Requirement | Field |
| - | - |
| The Money Services Business answer | `businessActivity.isMsb` |
| The applicant's tax ID | `applicant.applicantNationalId` |
| The applicant's residential address | `applicant.applicantResidentialAddress` |
| A tax ID for every director and shareholder | `taxId` on each person |

The applicant's tax ID and residential address are required of an individual too, when their residential address is in a country other than `NG` and `KE` (see below).

### An individual (KYC)

An individual application has no `businessInfo`, `businessActivity` or `persons`. The country of `applicantResidentialAddress` plays the part a business's country of incorporation does: outside `NG` and `KE`, the application must carry `applicantNationalId` (the applicant's tax ID) and `applicantResidentialAddress`, or submit answers `403 incomplete_steps` naming `your_details`.

```bash theme={"dark"}
curl -X POST "https://api.sandbox.zuba.com/v2/applications" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Zuba-Account-Id: SUB_ACCOUNT_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "applicationType": "individual",
    "applicant": {
      "applicantFirstName": "Kwame",
      "applicantLastName": "Mensah",
      "applicantDateOfBirth": "1990-02-01",
      "applicantNationality": "GH",
      "applicantNationalId": "P0012345678",
      "applicantPhone": "+233241234567",
      "applicantResidentialAddress": {
        "street": "4 Oxford Street",
        "city": "Accra",
        "state": "Greater Accra",
        "postalCode": "GA-184",
        "country": "GH"
      }
    },
    "individualActivity": {
      "applicantSourceOfFunds": ["INCOME"],
      "applicantSourceOfWealth": ["INCOME"],
      "applicantAccountPurposes": ["CROSS_BORDER_PAYMENTS"],
      "applicantEmploymentStatus": "FULL_TIME",
      "applicantOccupation": "INFORMATION_TECHNOLOGY_PROFESSIONAL",
      "applicantAnnualIncome": "45000.00",
      "applicantExpectedFiatMonthlyVolume": "LESS_THAN_5K",
      "applicantExpectedCryptoMonthlyVolume": "NONE",
      "applicantExpectedCounterpartyCountries": ["GH", "NG"]
    }
  }'
```

The individual lists are upper case:

| Field | Values |
| - | - |
| `applicantSourceOfFunds` | `INCOME`, `ASSET_SALE`, `SAVINGS`, `OTHER` |
| `applicantSourceOfWealth` | `INCOME`, `OWNERSHIP_STAKE`, `INVESTMENT_INCOME`, `INHERITANCE`, `OTHER` |
| `applicantAccountPurposes` | `PERSONAL_BANKING`, `INVESTMENTS`, `CROSS_BORDER_PAYMENTS`, `STABLECOIN_CONVERSION`, `OTHER` |
| `applicantEmploymentStatus` | `FULL_TIME`, `PART_TIME`, `UNEMPLOYED` |
| `applicantExpectedFiatMonthlyVolume` | `LESS_THAN_5K`, `5K_TO_50K`, `50K_TO_500K`, `500K_TO_5M`, `ABOVE_5M` |
| `applicantExpectedCryptoMonthlyVolume` | The fiat values, or `NONE` |

`applicantOccupation` values are listed on [Create a KYB/KYC application](https://docs.zuba.com/api-reference/applications-v2/create-a-kybkyc-application.md). A field answered `OTHER` takes a matching `...OtherDescription`.

## Step 3: Verify the applicant's identity

Every application, business or individual, needs its applicant's identity verified before the first submission:

```bash theme={"dark"}
curl -X POST "https://api.sandbox.zuba.com/v2/applications/APPLICATION_ID/identity-verification/session" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
```

In production the response carries `url`, a hosted page the applicant completes; the outcome arrives as the `application.identity_verification_updated` webhook. In the sandbox the call verifies the applicant at once and answers `status: "verified"`.

On a business, each director, and each shareholder at or above the ownership threshold (10% for `NG`, `GH` and `KE`, 25% elsewhere), other than the applicant, verifies through their own link. Zuba emails it to them when the application is submitted, and you can start one yourself by sending `{ "personId": "..." }` on the same call. Their verification can finish after submission.

`GET /v2/applications/{id}/identity-verification` shows the applicant's outcome and each person's. If it reads `reliance: true`, Zuba relies on your own identity checks for this sub-account: nobody is sent a link, and you upload your identity verification report (document type `customer_identity_verification_report`) for the applicant and each listed person in step 4 instead.

## Step 4: Upload the documents

Each document takes three calls. Ask for an upload URL:

```bash theme={"dark"}
curl -X POST "https://api.sandbox.zuba.com/v2/applications/APPLICATION_ID/documents/upload-url" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "documentType": "certificate_of_incorporation",
    "fileName": "certificate.pdf",
    "fileSize": 184320,
    "mimeType": "application/pdf"
  }'
```

```json theme={"dark"}
{
  "documentId": "5d0c7c1e-9b0a-4f0e-b0a5-3a1f6c2e8d44",
  "uploadUrl": "https://...",
  "documentKey": "..."
}
```

Send the file to `uploadUrl`, with the same content type and size you declared:

```bash theme={"dark"}
curl -X PUT "UPLOAD_URL" \
  -H "Content-Type: application/pdf" \
  --data-binary @certificate.pdf
```

Then confirm it. A document counts only once it is confirmed:

```bash theme={"dark"}
curl -X POST "https://api.sandbox.zuba.com/v2/applications/APPLICATION_ID/documents/DOCUMENT_ID/confirm" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
```

Files are PDF, JPEG or PNG, up to 10 MB. To file a document against a director or shareholder, add their `personId` (from `GET /v2/applications/{id}/persons`) to the upload-url call; without it the document belongs to the company or, for `photo_id`, to the applicant.

**What a business needs:**

| Document | `documentType` | Needed |
| - | - | - |
| Certificate of incorporation | `certificate_of_incorporation` | Always, except a `sole_proprietorship` |
| Memorandum and articles | `memorandum_articles` | Always, except a `sole_proprietorship` |
| Organisation chart | `org_chart` | Always, for every business, a `sole_proprietorship` and a single owner holding 100% included |
| AML/CTF policy | `aml_ctf_policy` | When the business is regulated (`isRegulated: true`) or moves money on behalf of others (`movesFundsOnBehalfOfOthers: true`). Never for a `sole_proprietorship` |
| The applicant's government ID | `photo_id`, no `personId` | When incorporated outside `NG` and `KE`. One missing is refused as `403 incomplete_steps` naming `documents`, not as `missing_documents` |
| Each person's government ID and proof of address | `photo_id` and `proof_of_address_personal`, with `personId` | For every listed person who does not verify through their own link (step 3). The applicant's verification files both on the applicant's own person record when that person is marked `isApplicant: true` before the verification starts, is a director or a shareholder at or above the ownership threshold, and the application is not under reliance. In production a document is filed only when the check captured it and the name on the ID matches that person, so upload whatever submit still lists for them. Upload both for a person who carries the applicant's names without that mark, and for a shareholder below the threshold who is not a director. The applicant's `photo_id` with no `personId` does not count here |
| Your identity verification report | `customer_identity_verification_report`: the applicant's with no `personId`, each person's with theirs | Only under reliance (step 3), for the applicant and each person it lists as verifying by report, alongside that person's `photo_id` and `proof_of_address_personal` |

**What an individual needs:** the applicant's `photo_id`, with no `personId`. Under reliance, also your `customer_identity_verification_report` for the applicant, with no `personId`.

When one of these is missing, submit answers `403 missing_documents`: `missingCompanyDocuments` lists the missing company document types, the applicant's `customer_identity_verification_report` when it is owed on either kind of application, and an individual applicant's `photo_id`, and `personsWithoutDocuments` the people still owed theirs. The one exception is the applicant's `photo_id` on a business, which is refused as `403 incomplete_steps` with `missingSteps: ["documents"]`.

## Step 5: Submit

```bash theme={"dark"}
curl -X POST "https://api.sandbox.zuba.com/v2/applications/APPLICATION_ID/submit" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
```

The application moves to `under_review` and `application.under_review` is delivered. A refusal changes nothing, so fix what it names and submit again:

| Response | Meaning | Fix |
| - | - | - |
| `403 incomplete_steps` | A step in `missingSteps` is not complete, or an answer or document it owns is missing. `message` says which | Send the section from the table in step 2, or the field or document `message` names |
| `403 missing_documents` | A required document, other than a business applicant's own `photo_id`, is not uploaded and confirmed | Upload what `missingCompanyDocuments` and `personsWithoutDocuments` list |
| `409` | The application is already `under_review`, `approved` or `rejected` | Nothing to submit |

[Submit an application](https://docs.zuba.com/api-reference/applications-v2/submit-or-resubmit-an-application-for-review.md) lists every response.

## Step 6: Approval

In production a Zuba reviewer decides the application. You hear the result as a webhook:

* `application.approved`: the sub-account becomes `active`.
* `application.rejected`: the sub-account becomes `closed`.
* `application.more_info_requested`: the payload carries `moreInfoReason` and `editableSections`. Edit those sections and submit again.

In the sandbox you decide it yourself:

```bash theme={"dark"}
curl -X POST "https://api.sandbox.zuba.com/v1/sandbox/accounts/SUB_ACCOUNT_ID/approve" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
```

`POST /v1/sandbox/accounts/{accountId}/reject` rejects it instead. Neither call takes a body or a `Zuba-Account-Id` header, and both need the `update:accounts` scope. See [Sub-account approval](https://docs.zuba.com/guides/sandbox-testing.md#sub-account-approval) for their error cases.

## Account terms

Submit asks for no terms. The terms a sub-account accepts belong to the account it opens, so they come with that account's requirements, and only for the currency you request.

You can read them from the moment the application exists, before you submit it:

```bash theme={"dark"}
curl "https://api.sandbox.zuba.com/v1/virtual-accounts/requirements?currency=EUR" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Zuba-Account-Id: SUB_ACCOUNT_ID"
```

While the sub-account awaits approval, the response lists `kyb_approval_required` and, when terms are outstanding, `disclosure.acknowledgement`. Its `disclosures` array carries each document's `slug`, `title`, `version`, `pdfUrl`, `checkboxWording` and `acknowledgePath`. Show them to your customer, then record each acceptance on its `acknowledgePath`:

```bash theme={"dark"}
curl -X POST "https://api.sandbox.zuba.com/v2/applications/APPLICATION_ID/disclosures/SLUG/acknowledge" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Zuba-Account-Id: SUB_ACCOUNT_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "documentVersion": "VERSION_FROM_THE_REQUIREMENTS",
    "attestation": {
      "acceptedAt": "2026-11-19T10:22:33.000Z",
      "ip": "203.0.113.42",
      "userAgent": "Mozilla/5.0 ...",
      "signerName": "Giulia Rossi",
      "signerEmail": "giulia@example.com"
    }
  }'
```

Send the `version` the requirements name; an older one is refused with `409`. Acceptances can be recorded before or after approval, and the key needs the `create:disclosures` scope.

In production, `POST /v1/virtual-accounts` refuses until every listed document is accepted. The sandbox lists the same terms the live account would need, so you can build and test the acceptance step, but it does not enforce them: a sandbox account opens whether or not they were accepted. Accept them in the sandbox anyway, so your flow matches what production requires.

## Next steps

Once the sub-account is `active`, send `Zuba-Account-Id` to act for it:

* [Sending from a sub-account](https://docs.zuba.com/concepts/payouts.md#sending-from-a-sub-account)
* [Orders for a sub-account](https://docs.zuba.com/guides/orders.md#orders-for-a-sub-account)
* [Developer fees](https://docs.zuba.com/guides/developer-fees.md) on the payouts your sub-accounts send
* [Webhooks](https://docs.zuba.com/guides/webhooks.md) for the `account.*` and `application.*` events


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.