API Reference
Customers

Create sub-account

POST/api/v1/subaccount/{parentId}
Base URL: https://bloquo.mimicr.dev · provider: https://api.bloquo.io

Creates 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

HTTPCenário
409CPF/CNPJ/Passaporte já registrado sob o mesmo pai
400CPF com dígito verificador inválido
400Conta pai não habilitada para criar sub-accounts
400Beneficial owner com participação ≤ 25%

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

parentIdinteger<int64>required

ID of the parent customer under which the sub-account will be created.

Body

application/json
kindstringrequired

Sub-account type. Determines which document fields are required and sets the entityType automatically.

kindEntityType derivedRequired document---------BrazilianIndividualIndividualcpfNumber + dateOfBirthBrazilianLegalEntityCompanycnpjNumber + beneficialOwnersForeignIndividualIndividualdateOfBirth + (passportNumber or foreignTaxId) + countryCodeIso3ForeignLegalEntityCompanyforeignTaxId + countryCodeIso3 + beneficialOwners
BrazilianIndividualBrazilianLegalEntityForeignIndividualForeignLegalEntity
Example: "BrazilianIndividual"
namestringrequired

Full name (individual) or company name.

Example: "João da Silva"
emailstring<email>required

Contact email address.

Example: "joao@email.com"
phoneNumberstringrequired

Contact phone number (E.164 format recommended).

Example: "+5511999999999"
cpfNumberstring

CPF number. Required for BrazilianIndividual. Validated with check digits.

Example: "123.456.789-09"
cnpjNumberstring

CNPJ number. Required for BrazilianLegalEntity. Validated with check digits.

passportNumberstring | null

Passport number. Required for ForeignIndividual if foreignTaxId is not provided.

foreignTaxIdstring | null

Foreign tax identification number (e.g. EIN 12-3456789). Required for ForeignLegalEntity. For ForeignIndividual, required if passportNumber is absent.

countryCodeIso3string | null

ISO 3166-1 alpha-3 country code. Required for ForeignIndividual and ForeignLegalEntity.

dateOfBirthstring<date> | null

Date of birth. Required for BrazilianIndividual and ForeignIndividual. Prohibited for company types.

Example: "1990-05-20"
motherNamestring | null

Optional. Brazilian individuals only.

expectedMonthlyVolumeBrlnumberrequired

Expected monthly transaction volume in BRL. Must be >= 0.

Example: 10000
isUsPersonbooleanrequired

Whether the entity is a US person for FATCA purposes.

Example: false
isPoliticallyExposedPersonbooleanrequired

Whether the entity is politically exposed (PEP).

Example: false
annualIncomeBrlnumber | null

Annual income in BRL. Optional. Individuals only.

annualRevenueBrlnumber | null

Annual revenue in BRL. Optional. Company types only.

incorporationDatestring<date> | null

Date of incorporation. Optional. Company types only.

addressobjectrequired
Show child attributes
streetstringrequired
Example: "Rua das Flores"
numberstringrequired
Example: "100"
complementstring | null
neighborhoodstringrequired
Example: "Centro"
citystringrequired
Example: "São Paulo"
regionstringrequired
Example: "SP"
postalCodestringrequired
Example: "01310-100"
countryCodeIso3stringrequired

ISO 3166-1 alpha-3 country code.

Example: "BRA"
settingsobjectrequired
Show child attributes
enabledCurrencyCodesstring[]required

List of enabled currency codes. Cannot be empty.

tradingPairsobject[]required

Trading pairs the sub-account can operate. Spreads in percentage (e.g. 1.5 = 1.5%).

Show child attributes
baseCurrencyCodestringrequired
Example: "USD"
quoteCurrencyCodestringrequired
Example: "BRL"
buySpreadPercentagenumberrequired

Buy spread in percentage (0–100).

Example: 1.5
sellSpreadPercentagenumberrequired

Sell spread in percentage (0–100).

Example: 1.5
requestedNamedAccountsstring[]

Coming 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.

USDEURGBPBRL
beneficialOwnersobject[]

Required 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
fullNamestringrequired
Example: "Ana Souza"
identityDocTypestringrequired
cpfpassportforeign_tax_id
Example: "cpf"
identityDocValuestringrequired
Example: "987.654.321-09"
dateOfBirthstring<date>required
Example: "1985-03-15"
emailstringrequired
Example: "ana@empresa.com"
phoneNumberstringrequired
Example: "+5511988887777"
ownershipPercentagenumberrequired

Ownership percentage. Must be > 25. Sum across all UBOs must not exceed 100.

Example: 51
countryCodeIso3string | null
Example: "BRA"

Responses

201Sub-account created. Returns only the new customer's ID. Balance accounts and trading pairs are provisioned automatically.
statusboolean
Example: true
resultobject
Show child attributes
idinteger<int64>

ID of the created sub-account.

Example: 123
messagestring | null
400Validation failed. Common reasons: - Parent not found or does not allow child customers. - CPF/CNPJ/Passport/ForeignTaxId invalid. - Document already registered under this parent (409 is returned as 400 from the service). - UBO ownership below 25% or total exceeds 100%. - Currency not in allowlist or trading pair configuration invalid.
statusboolean
resultany | null
messagestring
500Sub-account and accounts were persisted but the compliance notification failed to publish. Contact Bloquo support with the sub-account ID to trigger compliance evaluation manually.