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):
- Create the sub-account.
- Create its application.
- Verify the applicant’s identity.
- Upload the documents.
- Submit.
- Approve it (in the sandbox you do this yourself).
Prerequisites
- A financial-institution workspace enabled for sub-accounts. Any other workspace gets
403 sub_accounts_fi_onlyor403 sub_accounts_not_enabledonPOST /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:applicationsandupdate:applications(see Scopes).
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
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:
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)
id and status: "draft".
personslists every director and shareholder.roleisdirector,shareholder,director_and_shareholderorsigning_officer. Mark the person who is also the applicant withisApplicant: true; their names must match the applicant’s. After creation, manage people withPOST,PATCHandDELETEon/v2/applications/{id}/persons.hasIndirectControlanswers whether anyone controls the business other than through the people listed. Withtrue, sendindirectControlDetailsdescribing it. This answer is what completesdirectors_shareholders, so an application created without it needs:
monthlyFiatVolumeis a bucket, not an amount, and the business’scountryOfIncorporationselects the list:
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:
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:
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 nobusinessInfo, 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.
applicantOccupation values are listed on Create a KYB/KYC application. 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: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:uploadUrl, with the same content type and size you declared:
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:
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
under_review and application.under_review is delivered. A refusal changes nothing, so fix what it names and submit again:
Submit an application 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 becomesactive.application.rejected: the sub-account becomesclosed.application.more_info_requested: the payload carriesmoreInfoReasonandeditableSections. Edit those sections and submit again.
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 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: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:
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 isactive, send Zuba-Account-Id to act for it:
- Sending from a sub-account
- Orders for a sub-account
- Developer fees on the payouts your sub-accounts send
- Webhooks for the
account.*andapplication.*events