Accounts

Get balances

Retrieve credit balances for an account.

GET
/accounts/{id}/balances

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Query Parameters

currency?string

Filter by currency.

asset_code?string

Filter by asset code.

Response Body

application/json

application/json

curl -X GET "https://api.sandbox.billingrails.com/v1/accounts/string/balances"

{
  "account_id": "acc_IhMUl3rrZ3",
  "balances": [
    {
      "type": "currency",
      "currency": "USD",
      "available": 5000
    },
    {
      "type": "asset",
      "currency": "TKN",
      "available": 2
    }
  ]
}

{
  "error": {
    "type": "request_error",
    "code": "account_not_found",
    "message": "Account 'acc_nonexistent' not found"
  }
}