Requesting a Token
Once you have an access key, you can request a token using the token REST API. A typical request includes these elements:
URL
HTTP Header:
Content-type:application/json |
The parameters in the HTTP header are described in this table.
Parameter | Description |
---|---|
x-api-key | The access key ID for which you want to generate a token. its unique for each partner |
Request Body
The request body contains all URL parameters as JSON body
{ |
Response
If successful, the service will return a 200 status code with the token and expiration time.
status: 200 Ok |
On error, the service will return a 403 error code with a descriptive error message.
status: 403 Forbidden |
Token validation
You can optionally validate a token with the verification endpoint
URL
HTTP Header
Content-type:application/json |
The parameters in the HTTP header are described in this table.
Parameter | Description |
---|---|
x-api-token | token generated using |
Response
If successful, the service will return a 200 status code with all URL parameters which is passed using /generate
endpoint
Status: 200 OK |
On error, the service will return a 403 error code with a descriptive error message.
status: 403 Forbidden |