Generating a Token

KB Tags associated with this article:
Use all tags
KB Tags
Body

Description

Authenticates a Customer by returning an authentication token on successful authentication.

Note

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

HTTP Method

GET

Example Test URL Request

https://test.httpapi.com/api/customers/generate-token.json?auth-userid=0&api-key=key&[email protected]&passwd=customerpassword&ip=1.1.1.1

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Authentication Parameter
api-key String Required Authentication Parameter
username String Required Username of the Customer
passwd String Required Password of the Customer
ip String Required IP address of the Customer

Response

Returns a token (String) if the Customer is authenticated successfully.

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