API Reference
Create sub-account
/api/v1/subaccount/{parentId}https://bloquo.mimicr.dev · provider: https://api.bloquo.ioCreates a new sub-account (end-customer) under the specified parent customer. Sub-accounts are the correct way to onboard end users, do not use POST /api/v1/customer for this purpose.
Erros comuns
| HTTP | Cenário |
|---|---|
| 409 | CPF/CNPJ/Passaporte já registrado sob o mesmo pai |
| 400 | CPF com dígito verificador inválido |
| 400 | Conta pai não habilitada para criar sub-accounts |
| 400 | Beneficial owner com participação ≤ 25% |
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
ID of the parent customer under which the sub-account will be created.
Body
application/jsonSub-account type. Determines which document fields are required and sets the entityType automatically.
kind | EntityType derived | Required document | --- | --- | --- | BrazilianIndividual | Individual | cpfNumber + dateOfBirth | BrazilianLegalEntity | Company | cnpjNumber + beneficialOwners | ForeignIndividual | Individual | dateOfBirth + (passportNumber or foreignTaxId) + countryCodeIso3 | ForeignLegalEntity | Company | foreignTaxId + countryCodeIso3 + beneficialOwners |
|---|
BrazilianIndividualBrazilianLegalEntityForeignIndividualForeignLegalEntity"BrazilianIndividual"Full name (individual) or company name.
"João da Silva"Contact email address.
"joao@email.com"Contact phone number (E.164 format recommended).
"+5511999999999"CPF number. Required for BrazilianIndividual. Validated with check digits.
"123.456.789-09"CNPJ number. Required for BrazilianLegalEntity. Validated with check digits.
Passport number. Required for ForeignIndividual if foreignTaxId is not provided.
Foreign tax identification number (e.g. EIN 12-3456789). Required for ForeignLegalEntity. For ForeignIndividual, required if passportNumber is absent.
ISO 3166-1 alpha-3 country code. Required for ForeignIndividual and ForeignLegalEntity.
Date of birth. Required for BrazilianIndividual and ForeignIndividual. Prohibited for company types.
"1990-05-20"Optional. Brazilian individuals only.
Expected monthly transaction volume in BRL. Must be >= 0.
10000Whether the entity is a US person for FATCA purposes.
falseWhether the entity is politically exposed (PEP).
falseAnnual income in BRL. Optional. Individuals only.
Annual revenue in BRL. Optional. Company types only.
Date of incorporation. Optional. Company types only.
Show child attributes
"Rua das Flores""100""Centro""São Paulo""SP""01310-100"ISO 3166-1 alpha-3 country code.
"BRA"Show child attributes
List of enabled currency codes. Cannot be empty.
Trading pairs the sub-account can operate. Spreads in percentage (e.g. 1.5 = 1.5%).
Show child attributes
"USD""BRL"Buy spread in percentage (0–100).
1.5Sell spread in percentage (0–100).
1.5Coming soon: Currency codes for which named accounts should be provisioned for this sub-account. Each currency must also appear in enabledCurrencyCodes. Provisioning is asynchronous, the sub-account is created immediately; each account opens in the background with an SLA of 1–3 business days. Use GET /api/v1/customer/{customerId}/accounts to track status. Supported values: USD, EUR, GBP, BRL.
USDEURGBPBRLRequired for BrazilianLegalEntity and ForeignLegalEntity. At least 1 owner required. Each owner must hold more than 25% ownership. The sum of all ownership percentages must not exceed 100%.
Show child attributes
"Ana Souza"cpfpassportforeign_tax_id"cpf""987.654.321-09""1985-03-15""ana@empresa.com""+5511988887777"Ownership percentage. Must be > 25. Sum across all UBOs must not exceed 100.
51"BRA"Responses
201Sub-account created. Returns only the new customer's ID. Balance accounts and trading pairs are provisioned automatically.
trueShow child attributes
ID of the created sub-account.
123