This API retrieves wallet balance information including the current balance, wallet label, and last update timestamp for a specific organization wallet. The timestamp is automatically converted from the organization's timezone to UTC for consistent data handling.
💡 Pro Tip
Use this API to build real-time billing dashboards and payment tracking systems. The UTC timestamp conversion ensures consistent time handling across different timezones for global organizations.
Request Endpoint: https://app.zyntrohq.com/apis/public/fetchWalletBalance.php
Request Method: POST
Request Payload:
{
"api_key": "your_zyntro_api_key",
"org_id": "your_organization_id",
"wallet_id": "your_wallet_id"
}Response (JSON):
{
"status": "success",
"data": {
"wallet_id": "wallet_unique_id",
"wallet_label": "Main Wallet",
"wallet_balance": "150.75",
"wallet_last_update": "2025-01-15T10:30:00+00:00"
}
}Response Fields:
- status: Indicates success or error status
- data: Object containing wallet details
- wallet_id: Unique identifier for the wallet
- wallet_label: Human-readable label for the wallet
- wallet_balance: Current balance amount as a string (supports decimal values)
- wallet_last_update: Timestamp of the last wallet update in UTC format (ISO 8601)
Notes:
- This is a public API and requires an API Key. You can get your API Key from inside your Zyntro Account under Me > API Keys
- Ensure that the api_key, org_id, and wallet_id are valid and correspond to your Zyntro account credentials
- The org_id should correspond to an existing organization within your account
- The wallet_id should correspond to an existing wallet within the specified organization
- Organization must be active for API calls to be processed successfully
- Wallet balance is returned as a string to preserve decimal precision
- Last update timestamp is automatically converted from organization timezone to UTC
- Timestamp format follows ISO 8601 standard with timezone information