Get the Available Balance of a Sub-Reseller Account Using the API
When you want to retrieve the available balance details for a sub-reseller account. This article explains the required parameters and API request format for fetching sub-reseller balance information in the selling currency.
Gets the Available Balance of the specified Sub-Reseller.
Parameters
| Name | Data Type | Required / Optional | Description |
|---|---|---|---|
| auth-userid | Integer | Required | Authentication Parameter |
| api-key | String | Required | Authentication Parameter |
| reseller-id | Integer | Required | Reseller Id of the Sub-Reseller whose Available Balance is to be fetched |
HTTP Method
GET
Example Test URL Request
https://test.httpapi.com/api/billing/reseller-balance.json?auth-userid=0&api-key=key&reseller-id=0
Response
Returns a hash map of the Sub-Reseller's Available Balance containing the below details:
-
Selling Currency Symbol of the Parent Reseller (sellingcurrencysymbol)
-
Available Balance Amount in the Selling Currency (sellingcurrencybalance)
-
Locked Amount in the Selling Currency (sellingcurrencylockedbalance)
In case of any errors, a status key with value as ERROR alongwith an error message will be returned.