Balance accounts on Busha are designed to hold specific currencies, making them a crucial component for managing your multi-currency transactions. This guide will walk you through the process of programmatically creating new balance accounts and retrieving existing ones via the Busha API.Documentation Index
Fetch the complete documentation index at: https://docs.busha.io/llms.txt
Use this file to discover all available pages before exploring further.
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
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.
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