Loading...

Knowledge Base

Generate a Sub-Reseller Login Token Using the API

When you want to generate a temporary login token for a sub-reseller using the API. This article explains the required authentication parameters, reseller and IP validation, token-based sub-reseller control panel access, and token validity limitations.

Generating a Login Token

 

Description

Returns an authentication token for a Sub-Reseller.

You can login to the Sub-Reseller's Control Panel using the generated token. The Control panel can be accessed at following link, where XXXXX is the generated token.

http://login-URL/servlet/AutoLoginServlet?userLoginId=XXXXX&role=reseller

 

Note

The token will be valid for a duration of only 120 seconds.

 

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
reseller-idIntegerRequiredReseller ID of the Sub-Reseller
ipStringRequiredIP address of the Sub-Reseller

HTTP Method

GET

Example Test URL Request

https://test.httpapi.com/api/resellers/generate-login-token.json?auth-userid=0&api-key=key&reseller-id=0&ip=1.1.1.1

Response

Returns a token (String).

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