API Reference
Customers

Create customer

POST/api/v1/customer
Base URL: https://bloquo.mimicr.dev · provider: https://api.bloquo.io

Creates a new customer under an existing parent. The parent must have childEnabled = true and sufficient maxChildDepth. Customer authorities (upline) are registered automatically.

Authorization

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

Body

application/json
namestringrequired

Legal name of the customer.

Example: "Acme Corp Ltda"
taxIdstringrequired

Tax identification number (CPF for individuals, CNPJ for companies).

Example: "12.345.678/0001-90"
countrystringrequired

ISO 3166-1 alpha-2 country code.

Example: "BR"
parentIdinteger<int64> | nullrequired

ID of the parent customer. Required, all customers must have a parent.

Example: 1
typeIdinteger<int64>required

ID of the customer type (see GET /api/v1/customer/types).

Example: 2
enabledboolean

Whether the customer is active and allowed to operate.

Important (V1 endpoints only): This field is declared as bool in C# with no explicit default. When omitted from the request body, the runtime initializes it as false, silently creating a disabled customer with no error or warning. This affects POST /api/v1/customer and POST /api/v1/customer/kit only.

The V2 sub-account endpoint (POST /api/v1/subaccount/{parentId}) hardcodes enabled = true and is not affected.

To re-enable a customer created with enabled: false, use: PUT /api/v1/customer/{customerId} with { "enabled": true }.

Example: true
childLoginAllowedboolean

Whether sub-customer users can log in through this customer's portal. Defaults to false.

Example: false
maxChildDepthinteger | null

Maximum depth of sub-customers allowed below this customer.

Example: 1
liquidityOperationsCapabilitiesinteger

Bitmask of liquidity operations this customer is allowed to perform. Defaults to SelfLiquidation | ThirdPartyLiquidation (3). Values: None=0, SelfLiquidation=1, ThirdPartyLiquidation=2, LiquidationViaFxPayment=4.

Example: 3
platformModulesintegerrequired

Bitmask of platform modules enabled for this customer.

Example: 7

Responses

201Customer created successfully.
statusboolean
Example: true
statusCodeinteger
Example: 201
resultobject
Show child attributes
idinteger<int64>
Example: 42
typeIdinteger<int64>

ID of the customer type (see GET /api/v1/customer/types).

Example: 3
namestring
Example: "Acme Corp Ltda"
taxIdstring
Example: "12.345.678/0001-90"
countrystring
Example: "BR"
parentIdinteger<int64> | null
Example: 1
childEnabledboolean
Example: false
childLoginAllowedboolean

Whether sub-customer users can log in through this customer's portal.

Example: false
childDepthinteger

Current depth of this customer in the hierarchy (root = 0).

Example: 1
maxChildDepthinteger | null
Example: 1
liquidityOperationsCapabilitiesinteger

Bitmask of liquidity operations this customer is allowed to perform.

Example: 3
platformModulesinteger

Bitmask of platform modules enabled for this customer.

Example: 7
enabledboolean
Example: true
typeobject

Customer type details. Present only when includes=type is requested.

Show child attributes
idinteger<int64>
Example: 1
namestring
Example: "EndCustomer"
createdBystring
Example: "admin"
lastUpdatedBystring
Example: "admin"
createdAtstring<date-time>
Example: "2024-01-15T10:30:00Z"
lastUpdatedAtstring<date-time>
Example: "2024-01-15T10:30:00Z"
messagestring | null
400Business validation failed. All customer-service errors return 400. Common reasons: - parentId is null or parent customer does not exist. - Parent does not allow child customers (childEnabled: false). - maxChildDepth of child must be smaller than parent's.
statusboolean
resultany | null
messagestring