Guides
Journeys

Open an account

Create a multi-currency account, upload documents and UBOs, submit it for review and get the funding instructions.

Every account is multi-currency: USDT and USDC are always included and you declare which fiat assets (today, BRL) to enable. For each fiat asset you pick the account type:

accountTypeHeld byBRL funding instruction
NAMEDThe owner, residentPix key with the owner's CPF or CNPJ
NAMED_NON_RESIDENTThe owner, non-residentPix key with the owner's document
VIRTUALTrace FinanceShared random Pix key, with an accountIdentifier that routes the funds

The flow is the same for all three: create, upload documents, register UBOs (companies only), submit for review and wait for activation.

If you only want to test operations, skip this guide and create an account that is already ACTIVE with npx mimicr action trace account.create_active (see Quickstart).

1. Create the account

bash
curl --request POST \
  --url https://trace.mimicr.dev/v1/accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Idempotency-Key: <uuid>' \
  --header 'Content-Type: application/json' \
  --data '{
    "assets": [{ "code": "BRL", "accountType": "VIRTUAL" }],
    "owner": {
      "type": "COMPANY",
      "legalName": "Acme Importação Ltda",
      "identificationDocument": { "value": "11222333000181", "type": "CNPJ" },
      "industry": "SOFTWARE_DEVELOPMENT",
      "expectedMonthlyVolume": "FROM_0_TO_50000",
      "incorporateDate": "2018-05-12",
      "isStartup": false,
      "address": {
        "addressLine1": "Rua das Flores, 100",
        "addressLine2": "Suite 456",
        "city": "São Paulo",
        "state": "SP",
        "country": "BR",
        "postalCode": "01234-567"
      }
    }
  }'

The response is 201 with the account in ACTION_REQUIRED, the assets in ONBOARDING and what is missing in requirements.currentlyDue. The ACCOUNT_CREATED webhook fires.

json
{
  "id": "4383a293-dbff-4585-bd8c-ee73ab1a14e3",
  "assets": [
    { "currency": "BRL", "allowsVirtualAccounts": true, "status": "ONBOARDING" },
    { "currency": "USDT", "allowsVirtualAccounts": false, "status": "ONBOARDING" },
    { "currency": "USDC", "allowsVirtualAccounts": false, "status": "ONBOARDING" }
  ],
  "requirements": {
    "currentlyDue": [
      { "type": "INCORPORATION_DOCUMENT", "options": [{ "documentType": "ARTICLES_OF_ASSOCIATION" }, { "documentType": "INCORPORATION_ARTICLES" }] },
      { "type": "ACCOUNT_DOCUMENT", "documentType": "PROOF_OF_ADDRESS", "documentSubType": null, "requiredMetadata": null, "metadata": null }
    ],
    "pendingVerification": [],
    "errors": [],
    "satisfied": []
  },
  "currentState": { "status": "ACTION_REQUIRED", "createdAt": "2026-11-05T20:10:30Z" }
}

For an individual, use owner.type: INDIVIDUAL with firstName and lastName. A PASSPORT requires country.

Common errors: a fiat asset without accountType (ACCOUNT_TYPE_REQUIRED_FOR_NON_CRYPTO), an unknown asset such as ETH (400 UNSUPPORTED_ASSET), a CPF or CNPJ with a wrong check digit (VALIDATE_IDENTIFICATION_DOCUMENT). Reference: Create an account.

Requirements Mimicr asks for

Trace returns the exact set in requirements.currentlyDue. In Mimicr the set is this one, a short version of Trace's compliance lists:

OwnerRequirement
CompanyINCORPORATION_DOCUMENT: ARTICLES_OF_ASSOCIATION or INCORPORATION_ARTICLES
CompanyACCOUNT_DOCUMENT PROOF_OF_ADDRESS
Company with a NAMED or NAMED_NON_RESIDENT accountalso ACCOUNT_DOCUMENT FINANCIAL_STATEMENT
Each UBOIDENTITY_VERIFICATION: ID_CARD or DRIVER_LICENSE (front and back) or PASSPORT, with metadata.country
Each UBOUBO_DOCUMENT PROOF_OF_ADDRESS
IndividualIDENTITY_VERIFICATION, ACCOUNT_DOCUMENT PROOF_OF_ADDRESS and ACCOUNT_DOCUMENT SELFIE

2. Upload the documents

One document per call, as multipart: a body part with the JSON and a file part with the file.

bash
curl --request POST \
  --url https://trace.mimicr.dev/v1/accounts/<account-id>/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Idempotency-Key: <uuid>' \
  --form 'body={"documentType":"ARTICLES_OF_ASSOCIATION","holder":{"type":"ACCOUNT","referenceId":"<account-id>"}};type=application/json' \
  --form 'file=@articles-of-association.pdf'

The response is 204. The requirement moves from currentlyDue to pendingVerification. For two-sided documents, upload both sides (documentSubType FRONT_SIDE and BACK_SIDE); in Mimicr the requirement is only met with both.

Empty files answer EMPTY_FILE, files over 10 MB FILE_TOO_LARGE and executables UNSUPPORTED_FILE_TYPE. Reference: Upload a document.

3. Register the UBOs (companies)

bash
curl --request POST \
  --url https://trace.mimicr.dev/v1/accounts/<account-id>/ubos \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Idempotency-Key: <uuid>' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "João Silva",
    "identificationDocument": { "value": "52998224725", "type": "CPF" },
    "address": {
      "addressLine1": "Rua das Flores, 100",
      "city": "São Paulo",
      "state": "SP",
      "country": "BR",
      "postalCode": "01234-567"
    },
    "phone": "5511999999999",
    "email": "joao.silva@example.com",
    "ownershipPercentage": 50,
    "isLegalRepresentative": false
  }'

The UBO starts PENDING and is approved together with the account. Rules:

  • Individual account: 422 UBOS_NOT_ALLOWED_FOR_INDIVIDUAL.
  • Ownership below 25% without being the legal representative: 422 INSUFFICIENT_OWNERSHIP.
  • Same tax id twice: 409 DUPLICATE_UBO.
  • An approved UBO cannot change or be removed: 422 APPROVED_UBO.
  • In Mimicr, UBOs only change while the account is ACTION_REQUIRED (422 ACCOUNT_NOT_MODIFIABLE).

Then upload each UBO's documents on the same documents endpoint, with holder.type: UBO and holder.referenceId set to the UBO id:

bash
curl --request POST \
  --url https://trace.mimicr.dev/v1/accounts/<account-id>/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Idempotency-Key: <uuid>' \
  --form 'body={"documentType":"ID_CARD","documentSubType":"FRONT_SIDE","holder":{"type":"UBO","referenceId":"<ubo-id>"},"metadata":{"country":"BR"}};type=application/json' \
  --form 'file=@id-front.pdf'

References: Add a beneficial owner, List beneficial owners, Update a beneficial owner, Remove a beneficial owner.

4. Submit for review

bash
curl --request POST \
  --url https://trace.mimicr.dev/v1/accounts/<account-id>/review \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Idempotency-Key: <uuid>'

The response is 202 with no body and the account moves from ACTION_REQUIRED to REVIEWING.

ErrorWhen
422 MISSING_DOCUMENTS_FOR_REVIEWA document is missing; details.missingDocumentTypes lists them (a company with no UBO includes UBO_VERIFICATION)
409 REVIEW_ALREADY_SUBMITTEDThe account is already REVIEWING
409 NO_PROVIDER_ACCOUNT_REQUIRES_ANALYSISThe account is OPENING, ACTIVE, REJECTED or CLOSED

Reference: Submit account for review.

5. Wait for activation

Trace documents no approval timing or trigger. In Mimicr, with automatic approval on:

  1. About 3 s after review, documents and UBOs are approved, the account moves to OPENING and USDT and USDC become ACTIVE, with one ACCOUNT_ASSET_ACTIVATED per asset.
  2. About 3 s later, BRL becomes ACTIVE, fires ACCOUNT_ASSET_ACTIVATED and the account moves to ACTIVE.

An account with no fiat asset becomes ACTIVE together with the stablecoins. Only ACCOUNT_CREATED, ACCOUNT_ACTION_REQUIRED, ACCOUNT_ASSET_ACTIVATED and ACCOUNT_ASSET_FAILED produce webhooks; poll Get an account for the other transitions. Each transition is appended to states[] and currentState is the last one.

6. Get the funding instructions

bash
curl --url https://trace.mimicr.dev/v1/accounts/<account-id>/fundingInstructions \
  --header 'Authorization: Bearer <token>'
json
[
  { "asset": "BRL", "rail": "PIX_KEY", "keyType": "RANDOM", "key": "36b25b8a-affa-42c4-a2aa-baf3c2a4d5b8", "accountIdentifier": "VA-000001" },
  { "asset": "USDT", "rail": "CRYPTO", "network": "ETHEREUM", "address": "0x8d1835acf7b6578540f31f8eee88bb5441378294" },
  { "asset": "USDC", "rail": "CRYPTO", "network": "ETHEREUM", "address": "0x8d1835acf7b6578540f31f8eee88bb5441378294" }
]

Only ACTIVE assets are listed. Filter with ?asset= and ?rail=. On VIRTUAL accounts the Pix key is shared and accountIdentifier tells which account the funds go to. On NAMED accounts the key is the owner's CPF or CNPJ, with accountIdentifier: null. In Mimicr the crypto address is fixed per account. Reference: List funding instructions.

Fix returned data

If compliance sends an item back, the account returns to ACTION_REQUIRED with the item in requirements.errors and fires ACCOUNT_ACTION_REQUIRED. Upload the document again or replace the owner with Update an account (PATCH replaces the whole owner and is only accepted in ACTION_REQUIRED; otherwise it answers 422 ACCOUNT_NOT_MODIFIABLE), then submit again.

Test the other side

Turn autoApproveAccounts off and decide as compliance:

bash
curl --request POST \
  --url https://api.mimicr.dev/v1/trace/actions/account.reject_requirement \
  --header 'Authorization: Bearer mk_...' \
  --header 'Content-Type: application/json' \
  --data '{ "accountId": "<account-id>", "requirement": "PROOF_OF_ADDRESS", "message": "Unreadable proof of address" }'
ActionEffect
account.approveApproves now; with activateFiat (default true) BRL activates right away
account.reject_requirementSends back a document (by documentType) or an owner field (e.g. legalName)
account.rejectRejects the account (REJECTED)
account.fail_assetAn asset in ONBOARDING fails (FAILED, ACCOUNT_ASSET_FAILED); if it was the only fiat asset, in Mimicr the account stays OPENING

To wait for activation in a test: npx mimicr wait trace object id=<account-id> status=ACTIVE.