First API Call
Getting Started: Get Balances
Get BalancesThis endpoint allows customers to quickly obtain real-time information about the current state of their accounts, including the available balance and any pending transactions that might affect this balance.
This API endpoint is a GET request, which makes it a great endpoint for inital testing as it's configuration is relatively simple and straightforward. Remember to configure your request's header with both Authorization and otp fields.
Get Account Balances
Fetches a list of the user’s asset accounts along with the current balances, including total, available, and pending balances. This endpoint is essential for users to obtain a clear overview of their financial status within the system.
Endpoint:
/api/v1/customer/accounts/balancesMethod:
GET
Response:
- assetAccountId: Asset account ID
- asset: Asset account asset
- totalBalance: Total balance
- availableBalance: Total balance minus incoming pending transaction amounts
- pendingBalance: Sum of pending transaction amounts
JWT Authorization header using the Bearer scheme.
Example: "Authorization: Bearer {token}"
Tokens can be generated using the /api/v1/public/auth/login endpoint.
One time pass for the request
Success
Bad Request
Query Parameters:
pageNumber(Integer, Optional): The page of results to return.pageSize(Integer, Optional): The maximum number of results to return.
If pageNumber and pageSize are not supplied, then an unpaginated list will be returned.
Request Example:
To request the first page with ten results:
Response Body Parameters:
id(Integer): Not used in the example.details(Array of Objects): Each object contains the details of an asset account balance.id(Integer): The ID of the asset account.asset(String): The type of asset the account holds.totalBalance(Decimal): The total balance in the account.availableBalance(Decimal): The available balance that is ready for use.pendingBalance(Decimal): The balance that is currently in pending transactions and not yet cleared.bSuppressed(Boolean): Indicates whether the use of this account is currently disabled.
Success Response Example:
Last updated