Description
Returns an authentication token for a Customer.
You can login to the Customer's Control Panel using the generated token. The Control panel can be accessed at following link, where XXXXX is the generated token.
http://manage.cxwz.com/servlet/AutoLoginServlet?userLoginId=XXXXX&role=customer
Note
The token will be valid for a duration of only 120 seconds.
Parameters
Name | Data Type | Required / Optional | Description |
---|---|---|---|
auth-userid | Integer | Required | Authentication Parameter |
api-key | String | Required | Authentication Parameter |
customer-id | Integer | Required | Customer ID of the Customer |
ip | String | Required | IP address of the Customer |
HTTP Method
GET
Example Test URL Request
https://test.httpapi.com/api/customers/generate-login-token.json?auth-userid=0&api-key=key&customer-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.