What You’ll Achieve:
- Learn how to create a new balance account for a specific currency
- Understand how to retrieve a list of all your existing balance accounts
- Confirm successful API interactions for managing currency balances
Prerequisites
Before you begin, ensure you have:- A Busha Business Account and Secret API Key (from the Quick Start Tutorial)
- An understanding of the API Environments (Sandbox vs. Production) and their respective base URLs (from the Make Your First Request Guide).
Managing Your Balance Accounts
1
Identify Supported Currencies
Before creating a balance account, you must know which currencies Busha currently supports. This ensures your requests are valid.To find supported currencies:
- Refer to the Supported Currencies Reference for the most up-to-date list of available currency codes.
- When presenting a currency options to your customers, ensure you only display those returned by Busha’s API or listed in our documentation to prevent invalid requests.
2
Retrieve All Your Balance Accounts
To view a comprehensive list of all existing balance accounts associated with your business, use a GET request. This is useful for displaying current balances or iterating through available currencies.To retrieve balance accounts:Expected ResponseA successful response will return a JSON object containing an array of all your balance accounts.
- Open your terminal or command prompt
- Use the
GETrequest below, replacing the placeholders:YOUR_BASE_URL: Use your chosen environment’s base URL.{YOUR_SECRET_API_KEY}: Your actual Secret API Key.
Troubleshooting
401 Unauthorized Request: Double-check your API key.
What’s Next?
Now that you know how to retrieve balance accounts, you can:- Explore all related endpoints and data structures in detail: Multi-Currency Accounts API Reference