Endpoint
POST /v3/onboarding/managed_accounts/create
Authentication and target
A user-scoped credential is required. The owner must have exactly one active Master Account and the managed-account feature must be enabled. Do not send X-ISPB or X-Account-Number. This user-only management route rejects account-targeting headers. For a PA, linked_account is a JSON request-body field, not an account-targeting header.Before you create an account
1
Confirm the account creation fee
Ask your administrator to configure the account creation fee before submitting the request. If the configuration is missing, the API returns
4004004.2
Fund the Master Account
Ensure the Master Account has enough available funds to pay the creation fee. If the fee cannot be charged because of insufficient funds, the API returns
4001999. Add funds and retry with the same reference_id.3
Choose the account model
MOR reuses approved Master Account compliance. VA supports CNPJ. PA supports CPF for personal verification (KYC) and CNPJ for business verification (KYB).
Request body
Compliance payload
The confirmed identity fields are:The examples below use
compliance_mode: 1 (Hosted Link). They establish the identity object format; they are not a complete KYC/KYB submission schema for compliance_mode: 2 (API Body).Linked account for PA
Sendlinked_account as an object containing ispb and account_number, both strings. It must identify an eligible active Master Account or VA under the owner. Preserve leading zeros. This object is required for PA and forbidden for MOR and VA.
Success data
The response containsreference_id, model, current status, and verification_url. The supplied MOR example returns status: 2 (Active) and an empty verification URL. The Hosted Link VA and PA examples return status: 1 (Pending) and a verification URL; direct the applicant to that URL to complete verification.
The confirmed examples also include error: null and result: null. Do not infer a populated schema for these fields from these examples.
Behavior and validation
MOR reuses approved Master compliance. VA and PA create independent compliance sessions, so activation is asynchronous. A same-owner/model/reference/parent match reuses the existing identity; keepreference_id stable on retry.
Account creation fee errors
These are values of the outer JSON
code, not HTTP status codes. Interpret them in the context of this operation; see Error Catalog.
Other errors
Every call can fail for missing or invalid signature headers, an expired timestamp, nonce replay, an invalid body hash or signature, insufficient permission, or a downstream service error. Endpoint-specific errors include:field_requiredorfield_invalidfor model-specific field matrix violations.invalid_userwhen an eligible active Master context is unavailable.permission_deniedwhen a linked account is outside the owner’s allowed relationship.
Request examples
Use a user-scoped credential and sign the exact JSON body with the required HMAC headers. The examples contain placeholders: replace document and account identifiers with valid authorized test data. The placeholder strings are not valid CPF/CNPJ values.- MOR
- VA · CNPJ
- PA · CPF
- PA · CNPJ
request.json. Generate the signature for its exact bytes before sending: