Skip to main content
GET
Get Crypto Balance
Use this endpoint to check the crypto asset balances held in a merchant’s custody wallet. Pass a specific merchantId to scope results to a single merchant, or pass 0 to receive aggregated totals across all merchants linked to your API key. Each asset entry shows the total balance, the free (available) portion, and any locked amount (reserved for pending orders).
All requests must include the X-BH-TOKEN header with a business token from GET /v2/token/generate.

Endpoint

GET https://api.velafi.com/v2/assets/account/assets

Query Parameters

integer
required
The ID of the merchant to query. Pass 0 to aggregate balances across all merchants linked to this API key.

Response Fields

number
HTTP-style response code. 200 indicates success.
string
Human-readable status message, e.g. SUCCESS.
object

Examples

cURL
Response
When merchantId is 0, the API sums balances across all merchants bound to the same account. Use this to get a portfolio-level view without looping through individual merchant IDs.