Enkash Developer Portal
Home
Home
Login
  1. Home
  • Back to home
  • Payment Gateway APIs
  • Merchant
    • Generate Authorization Token
      POST
    • Payment Modes Details
      GET
  • Order
    • Create Order
      POST
    • Get Order Status
      GET
    • Get Order By Merchant Order Id
      GET
    • Get BNPL Payment Methods
      GET
    • Get Dynamic UPI QR
      GET
    • UPI Intent Links
      GET
  • Payment
    • Submit Payment Request
      POST
    • Get Transaction Status
      GET
    • Validate OTP
      POST
    • Resend OTP
      GET
    • Payment Notify Request
      POST
    • Get UPI Transaction Status
      GET
    • Verify UPI VPA
      POST
  • Refund
    • Refund
      POST
  • Settlement
    • Get Settlement Payout By ID
      GET
    • Search Settlement Payouts
      POST
  • Split Settlement
    • Create Split Settlement Account
      POST
    • Update Split Settlement Account
      POST
    • Get All Split Settlement Account
      GET
    • Deactivate Split Settlement Account
      PATCH
    • Activate Split Settlement Account
      PATCH
    • Submit Payment with Split Details
      POST
    • Edit Or Deferred Split Settlement
      POST
  • E-Commerce Plugins
  • UPI QR
    • Create UPI QR
    • Get UPI QR
    • Search UPI QR
    • Create Customer
    • Search Customer
    • Cancel UPI QR
  • UPI Autopay
    • Create UPI Mandate
    • Update UPI Mandate
    • Revoke UPI Mandate
    • Get UPI Mandate
    • UPI Mandate Callback
    • Mandate Pre-debit Notification
    • Execute Mandate Debit
    • Mandate Debit Callback
  • Payment Links
    • Payment Link APIs
    • Create Payment Link
    • Get Payment Link Details
    • Delete Payment Link
    • Webhook Request
  1. Home

Get Your API Authorization Token

The Get Authorisation Token API is a critical step for authenticating all subsequent API requests. This token ensures secure communication by verifying the legitimacy of the requesting source.

Purpose#

The API generates an authentication token that must be included in the headers of all subsequent API requests. This token acts as proof of authorization and helps maintain secure interactions with Enkash servers.

Endpoint#

EnvironmentEndpoint URL
Testhttps://olympus-pg-uat.enkash.in/api/v0/merchant/token

Request Headers#

HeaderValueDescription
Content-Typeapplication/jsonSpecifies the media type of the request body.
API-KeyYour unique API keyProvided by Enkash upon registration.

Sample Request:#

POST https://olympus-pg-uat.enkash.in/api/v0/merchant/token  
Headers:  
{  
  "Content-Type": "application/json",  
  "API-Key": "your-api-key"  
}  

Response#

Upon a successful request, the server will return a JSON object containing the generated token and additional details:
FieldTypeDescription
tokenstringThe generated authentication token
expiryinteger (int64)Token expiration time in milliseconds
resultCodeinteger (int32)Status code indicating the outcome of the token generation request
resultMessagestringAdditional information about the request's result

Sample Response:#

{  
  "token": "abcdef1234567890",  
  "expiry": 1672531199000,  
  "resultCode": 200,  
  "resultMessage": "Token generated successfully."  
}  

Integration Notes#

The token must be included in the Authorization header for all subsequent API requests
Authorization: Bearer {token}  
Ensure you handle token expiration by either:
Monitoring the expiry timestamp and refreshing the token in advance
Implementing retry logic for requests that fail due to expired tokens
Modified at 2025-07-05 12:01:33
Next
Generate Authorization Token
Built with