GET
/
v1
/
ledger
/
{ledger_key}
/
account
/
{account_key}
/
asset
/
{asset_code}
/
balance
curl --request GET \
  --url https://api.sandbox.nxos.io/v1/ledger/{ledger_key}/account/{account_key}/asset/{asset_code}/balance \
  --header 'Authorization: <authorization>'
{
  "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "account_ref": "<string>",
  "asset_code": "<string>",
  "amount": 123
}

Headers

Authorization
string
required

The Basic Authentication header. Format: "Basic {base64(orgID:apiKey)}"

Path Parameters

ledger_key
string
required

The key of the ledger. Examples:

  • "123e4567-e89b-12d3-a456-426614174000"
  • "id:123e4567-e89b-12d3-a456-426614174000"
  • "ref:ledger:customer_a"
account_key
string
required

The key of the account. Examples:

  • "123e4567-e89b-12d3-a456-426614174000"
  • "id:123e4567-e89b-12d3-a456-426614174000"
  • "ref:internal:revenue:fx"
asset_code
string
required

The code of the asset. Examples:

  • "USD" (US Dollar)
  • "EUR" (Euro)
  • "AAPL" (Apple Inc. stock)
  • "BTC" (Bitcoin)
  • "USD/2" (Custom USD variant)
  • "USD/4" (Another USD variant)
  • "GOLD_OZ" (Gold per ounce)
  • "LOYALTY_PTS" (Custom loyalty points)

Response

200 - application/json
The request has succeeded.
account_id
string
required

The internally generated Id of the account (uuid)

account_ref
string
required

The account reference

Minimum length: 1
asset_code
string
required

The asset reference

Minimum length: 1
amount
integer
required

The balance of the account