# Check Balance [API Reference](https://docs.credyt.ai/api/customer-wallet-ops-get-customer-wallet.md) You can check a customer’s wallet balance at any time via the Customer Wallet API. A customer wallet may contain multiple accounts of different currencies or assets. In this guide we’ve placed this step last to show how the balance updates after usage events are sent. In practice, you'll typically want to check the balance before allowing the customer to perform the billable action. Overdrafts are enabled on wallet accounts by default, ensuring that usage can be billed in full. We recommend that you check balances according to your own business logic and overdraft tolerance. ### Get Wallet Example[​](#get-wallet-example "Direct link to Get Wallet Example") After submitting a few `video_promoted` events in the [previous section](https://docs.credyt.ai/quickstart/send-usage.md) we can see our balance has been reduced accordingly. * REST API * TypeScript SDK * Python SDK GET https\://api.credyt.ai/customers/{customerId}/wallet ```http ``` **Response** ```json { "accounts": [ { "id": "default:USD", "name": "default", "asset": "USD", "available": 998.5 } ] } ``` ```typescript await client.customerWalletOps.getCustomerWallet(); ``` [View full sample on GitHub](https://github.com/credyt/sdk-ts/blob/main/samples/walletsCustomerWalletOpsGetCustomerWalletSample.ts#L11) **SDK response object** ```typescript const response = { accounts: [ { id: "default:USD", name: "default", asset: "USD", available: 998.5, }, ], }; ``` ```python response = client.customer_wallet_ops.get_customer_wallet() ``` **SDK response object** ```python response = { "accounts": [ { "id": "default:USD", "name": "default", "asset": "USD", "available": 998.5, }, ], } ``` ### Get Account Example[​](#get-account-example "Direct link to Get Account Example") If you know the address of the account you wish to check, you can use the [Wallet Account API](https://docs.credyt.ai/api/customer-wallet-ops-get-account.md). Typically this will be in the format `default:{currency}`. * REST API * TypeScript SDK * Python SDK GET https\://api.credyt.ai/customers/{customerId}/wallet/{accountId} ```http ``` **Response** ```json { "id": "default:USD", "name": "default", "asset": "USD", "available": 998.5, "pending_in": 0, "pending_out": 0 } ``` ```typescript await client.customerWalletOps.getAccount(); ``` [View full sample on GitHub](https://github.com/credyt/sdk-ts/blob/main/samples/walletsCustomerWalletOpsGetAccountSample.ts#L27) **SDK response object** ```typescript const response = { id: "default:USD", name: "default", asset: "USD", available: 998.5, pendingIn: 0, pendingOut: 0, }; ``` ```python response = client.customer_wallet_ops.get_account() ``` **SDK response object** ```python response = { "id": "default:USD", "name": "default", "asset": "USD", "available": 998.5, "pending_in": 0, "pending_out": 0, } ```