Loading...

Knowledge Base

Add Funds to a Sub-Reseller Account Using the API

When you want to add funds to a Sub-Reseller account using the API. This article explains the required parameters, transaction types, receipt update options, and API request details for adding funds.

Adding Funds in a Sub-Reseller Account

 

Description

Adds funds in a Sub-Reseller's account.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
reseller-idIntegerRequiredReseller Id of the Sub-Reseller in whose Debit Account these funds are to be added
amountFloatRequiredAmount to be added
descriptionStringRequiredDescription for the Transaction
transaction-typeArray of StringsRequiredType of Transactions. Possible values can be credit or receipt.
transaction-keyStringRequiredA unique Transaction key
update-total-receiptBooleanRequiredPossible values are true or false. Pass true if this amount needs to be added to the Total Receipts figure of the Sub-Reseller.

HTTP Method

POST

Example Test URL Request

https://test.httpapi.com/api/billing/add-reseller-fund.json?auth-userid=0&api-key=key&reseller-id=0&amount=0&description=description-text&transaction-type=credit&transaction-key=transaction-key-text&update-total-receipt=true

Response

Returns a Transaction Id (Integer) if funds are added successfully in the specified Sub-Reseller's Account.

In case of any errors, a status key with value as ERROR alongwith an error message will be returned.