Skip to main content
Base URL: https://your-domain.com/api
All endpoints on this page require Authorization: Bearer {token}.

GET /get-default-wallet-balance

Returns the formatted balance of the user’s default wallet (the wallet marked is_default = Yes).

Request parameters

user_id
number
required
The authenticated user’s ID.

Response fields

success
object

Error responses

StatusReason
401User not found or no default wallet set
curl --request GET \
  --url 'https://your-domain.com/api/get-default-wallet-balance?user_id=42' \
  --header 'Authorization: Bearer {token}'

GET /available-balance

Returns all wallets belonging to the user, including currency codes and current balances. Use this endpoint to populate wallet selectors across the app.

Request parameters

user_id
number
required
The authenticated user’s ID.

Response fields

success
object
wallets
array
Array of wallet objects. Each item contains:

Error responses

StatusReason
401user_id parameter missing
curl --request GET \
  --url 'https://your-domain.com/api/available-balance?user_id=42' \
  --header 'Authorization: Bearer {token}'

Build docs developers (and LLMs) love