> For the complete documentation index, see [llms.txt](https://docs.xyb.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xyb.co/xyb-platform-1/api-reference/accounts/account-wallets-apis.md).

# Account Wallets APIs

## GET /api/v2.0/account/{idRef}/wallets/gcb/{walletType}/{walletCurrency}

> Get global balance by account idref, wallet type and currency

```json
{"openapi":"3.0.3","info":{"title":"Account Service","version":"0.18.1-bb9ff03"},"paths":{"/api/v2.0/account/{idRef}/wallets/gcb/{walletType}/{walletCurrency}":{"get":{"tags":["AccountWalletController"],"description":"Get global balance by account idref, wallet type and currency","operationId":"AccountWalletController::getWalletGcbBalance","parameters":[{"name":"idRef","in":"path","required":true,"schema":{"type":"string"}},{"name":"walletType","in":"path","required":true,"schema":{"type":"string"}},{"name":"walletCurrency","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response to /api/v2.0/account/{idRef}/wallets/gcb/{walletType}/{walletCurrency}","content":{"application/json":{"schema":{"$ref":"#/components/schemas/cac_account_schema_wallet_live"}}}}}}}},"components":{"schemas":{"cac_account_schema_wallet_live":{"type":"object","properties":{"account_balance":{"type":"string","description":"Wallet LIVE balance"},"available_balance":{"type":"string","description":"Wallet LIVE available balance"},"code":{"type":"string","description":"Wallet code used to group wallets. DEFAULT being default wallet and SECONDARY being supporting wallets"},"currency":{"type":"string","description":"The currency in which the wallet is denominated."},"hold_balance":{"type":"string","description":"Wallet LIVE hold balance"},"updated_at":{"type":"string","format":"date-time","description":"The time at which the wallet balance was last updated"}},"required":["currency","code","available_balance","hold_balance","account_balance","updated_at"],"title":"WalletLive"}}}}
```

## GET /api/v2.0/account/{idRef}/wallets/gcb

> Get all global balance by account idref

```json
{"openapi":"3.0.3","info":{"title":"Account Service","version":"0.18.1-bb9ff03"},"paths":{"/api/v2.0/account/{idRef}/wallets/gcb":{"get":{"tags":["AccountWalletController"],"description":"Get all global balance by account idref","operationId":"AccountWalletController::getAllWalletsGcbBalance","parameters":[{"name":"idRef","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response to /api/v2.0/account/{idRef}/wallets/gcb","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/cac_account_schema_wallet_live"}}}}}}}}},"components":{"schemas":{"cac_account_schema_wallet_live":{"type":"object","properties":{"account_balance":{"type":"string","description":"Wallet LIVE balance"},"available_balance":{"type":"string","description":"Wallet LIVE available balance"},"code":{"type":"string","description":"Wallet code used to group wallets. DEFAULT being default wallet and SECONDARY being supporting wallets"},"currency":{"type":"string","description":"The currency in which the wallet is denominated."},"hold_balance":{"type":"string","description":"Wallet LIVE hold balance"},"updated_at":{"type":"string","format":"date-time","description":"The time at which the wallet balance was last updated"}},"required":["currency","code","available_balance","hold_balance","account_balance","updated_at"],"title":"WalletLive"}}}}
```

## GET /api/v2.0/account/{idRef}/wallets

> Get all live balances by account idref

```json
{"openapi":"3.0.3","info":{"title":"Account Service","version":"0.18.1-bb9ff03"},"paths":{"/api/v2.0/account/{idRef}/wallets":{"get":{"tags":["AccountWalletController"],"description":"Get all live balances by account idref","operationId":"AccountWalletController::getAllLiveBalancesByIdRef","parameters":[{"name":"idRef","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response to /api/v2.0/account/{idRef}/wallets","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/cac_account_schema_wallet_live"}}}}}}}}},"components":{"schemas":{"cac_account_schema_wallet_live":{"type":"object","properties":{"account_balance":{"type":"string","description":"Wallet LIVE balance"},"available_balance":{"type":"string","description":"Wallet LIVE available balance"},"code":{"type":"string","description":"Wallet code used to group wallets. DEFAULT being default wallet and SECONDARY being supporting wallets"},"currency":{"type":"string","description":"The currency in which the wallet is denominated."},"hold_balance":{"type":"string","description":"Wallet LIVE hold balance"},"updated_at":{"type":"string","format":"date-time","description":"The time at which the wallet balance was last updated"}},"required":["currency","code","available_balance","hold_balance","account_balance","updated_at"],"title":"WalletLive"}}}}
```

## GET /api/v2.0/account/{idRef}/wallets/{walletType}/{walletCurrency}

> Get live balance by account idref, wallet type and currency

```json
{"openapi":"3.0.3","info":{"title":"Account Service","version":"0.18.1-bb9ff03"},"paths":{"/api/v2.0/account/{idRef}/wallets/{walletType}/{walletCurrency}":{"get":{"tags":["AccountWalletController"],"description":"Get live balance by account idref, wallet type and currency","operationId":"AccountWalletController::getWalletLiveBalance","parameters":[{"name":"idRef","in":"path","required":true,"schema":{"type":"string"}},{"name":"walletType","in":"path","required":true,"schema":{"type":"string"}},{"name":"walletCurrency","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response to /api/v2.0/account/{idRef}/wallets/{walletType}/{walletCurrency}","content":{"application/json":{"schema":{"$ref":"#/components/schemas/cac_account_schema_wallet_live"}}}}}}}},"components":{"schemas":{"cac_account_schema_wallet_live":{"type":"object","properties":{"account_balance":{"type":"string","description":"Wallet LIVE balance"},"available_balance":{"type":"string","description":"Wallet LIVE available balance"},"code":{"type":"string","description":"Wallet code used to group wallets. DEFAULT being default wallet and SECONDARY being supporting wallets"},"currency":{"type":"string","description":"The currency in which the wallet is denominated."},"hold_balance":{"type":"string","description":"Wallet LIVE hold balance"},"updated_at":{"type":"string","format":"date-time","description":"The time at which the wallet balance was last updated"}},"required":["currency","code","available_balance","hold_balance","account_balance","updated_at"],"title":"WalletLive"}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.xyb.co/xyb-platform-1/api-reference/accounts/account-wallets-apis.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
