About Authorization
The Get Authorization Token API is essential for authenticating requests made to our other APIs. Here’s a step-by-step guide to help you integrate this API into your system:
Purpose
The Get Authorization Token API generates an authentication token that must be included in the headers of subsequent API requests. This token verifies that the request is from an authorized source, ensuring secure communication with our server.
Endpoint URL: https://olympus-pg-uat.enkash.in/api/v0/merchant/token (Test Environment)
Method: Post
Request Headers
Ensure you include the following headers in your request:
Content-Type: application/json
API-Key: Your unique API key provided by Enkash
Response
On a successful request, the server responds with a JSON object containing the authentication token. Example
Field | Type | Description | |
---|---|---|---|
token | string | The generated authentication token | |
expiry | integer (int64) | The expiration time of the token, represented in milliseconds | |
resultCode | integer (int32) | The result code indicating the status of the token generation request | |
resultMessage | string | A message providing additional information about the result of the token generation request |