API Reference
Get account balance
/v1/accounts/{accountId}/balanceshttps://trace.mimicr.dev · provider: https://api.sandbox.tracefinance.comRetrieves 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
API version. Omit to use the default version.
"1"Path parameters
UUID of the account.
Responses
200Account balance.
Identifier of the account these balances belong to.
"5b7c1f2a-3d4e-4f8a-9b1c-2d3e4f5a6b7c"Fiat balances, one entry per enabled fiat currency.
Show child attributes
The available balance. Null when synced is false.
AmountResponse
Decimal amount in the asset's canonical scale.
"5000.00"ISO 4217 currency code or stablecoin ticker. The maximum decimal scale of an AmountValue paired with this asset depends on the asset:
| Asset | Decimals |
|---|---|
| BRL | 2 |
| USDT | 6 |
| USDC | 6 |
BRLUSDTUSDC"BRL"Number of decimal places for the asset.
2variant
Whether the balance was successfully retrieved from the underlying provider.
trueCrypto balances, one entry per enabled crypto currency.
Show child attributes
The available balance. Null when synced is false.
AmountResponse
Decimal amount in the asset's canonical scale.
"5000.00"ISO 4217 currency code or stablecoin ticker. The maximum decimal scale of an AmountValue paired with this asset depends on the asset:
| Asset | Decimals |
|---|---|
| BRL | 2 |
| USDT | 6 |
| USDC | 6 |
BRLUSDTUSDC"BRL"Number of decimal places for the asset.
2variant
Whether the balance was successfully retrieved from the underlying provider.
true400Invalid account ID format.
Machine-readable error code.
Human-readable description.
401Missing or invalid authentication token.
Machine-readable error code.
Human-readable description.
404No balance found for the given account.
Machine-readable error code.
Human-readable description.