API Reference
Accounts

Get account balance

GET/v1/accounts/{accountId}/balances
Base URL: https://trace.mimicr.dev · provider: https://api.sandbox.tracefinance.com

Retrieves the multi-currency balance for the given account, grouped into fiat and crypto arrays.

When an upstream provider is unreachable for a given currency, the corresponding entry is returned with synced: false and amount: null instead of failing the entire request. See Errors for the standard error envelope.

Authorization

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

Headers

X-Trace-Versionstring

API version. Omit to use the default version.

Example: "1"

Path parameters

accountIdstring<uuid>required

UUID of the account.

Responses

200Account balance.
accountIdstring<uuid>required

Identifier of the account these balances belong to.

Example: "5b7c1f2a-3d4e-4f8a-9b1c-2d3e4f5a6b7c"
fiatobject[]required

Fiat balances, one entry per enabled fiat currency.

Show child attributes
amountobject

The available balance. Null when synced is false.

AmountResponse
valuestringrequired

Decimal amount in the asset's canonical scale.

Example: "5000.00"
assetstringrequired

ISO 4217 currency code or stablecoin ticker. The maximum decimal scale of an AmountValue paired with this asset depends on the asset:

AssetDecimals
BRL2
USDT6
USDC6
BRLUSDTUSDC
Example: "BRL"
decimalsintegerrequired

Number of decimal places for the asset.

Example: 2
variant
syncedbooleanrequired

Whether the balance was successfully retrieved from the underlying provider.

Example: true
cryptoobject[]required

Crypto balances, one entry per enabled crypto currency.

Show child attributes
amountobject

The available balance. Null when synced is false.

AmountResponse
valuestringrequired

Decimal amount in the asset's canonical scale.

Example: "5000.00"
assetstringrequired

ISO 4217 currency code or stablecoin ticker. The maximum decimal scale of an AmountValue paired with this asset depends on the asset:

AssetDecimals
BRL2
USDT6
USDC6
BRLUSDTUSDC
Example: "BRL"
decimalsintegerrequired

Number of decimal places for the asset.

Example: 2
variant
syncedbooleanrequired

Whether the balance was successfully retrieved from the underlying provider.

Example: true
400Invalid account ID format.
codestringrequired

Machine-readable error code.

messagestringrequired

Human-readable description.

detailsobject
401Missing or invalid authentication token.
codestringrequired

Machine-readable error code.

messagestringrequired

Human-readable description.

detailsobject
404No balance found for the given account.
codestringrequired

Machine-readable error code.

messagestringrequired

Human-readable description.

detailsobject