Loading...

Knowledge Base

Generate Authentication Token for a Sub-Reseller Using the API

When you want to authenticate a sub-reseller and generate an authentication token using the API. This article explains the required authentication parameters, IP address validation, token generation process, and returned account information.

Generate Token

Description

Authenticates Sub-Reseller and returns authentication token, if the Sub-Reseller is authenticated successfully.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
ipStringRequiredIP Address of the Sub-Reseller

HTTP Method

GET

Example Test URL Request

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

Response

Returns the below details if the Sub-Reseller is authenticated successfully:

  • Company (company)

  • Name (name)

  • Sub-Reseller Brand Name (brandname)

  • Reseller Id (userid)

  • Username (username)

  • Parent Id (parentid)

  • Sub-Reseller Account Status (resellerstatus)

  • Token (userLoginId)

  • Technical Support Contact Email Address (technicalsupportmailaddr)

  • Technical Support URL (technicalsupporturl)

  • Accounting Currency Symbol (accountingcurrencysymbol)

  • Selling Currency Symbol (sellingcurrencysymbol)

  • Whether Password has Expired (ispasswdexpired)

  • Signout URL (logoutURL)

  • Language Preference for Contro Panel and Emails (langpref)

  • Country (country)

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