EnKash Developer Portal
Home
Home
Login
  1. Authorization
  • Back to home
  • APIs - Payment Gateway
  • Authorization
    • Generate Authorization Token
      POST
    • Payment Modes Details
      GET
  • Order
    • UPI Intent Links
    • Get Dynamic UPI QR
    • Create Order
    • Get Order Status
    • Get Order By Merchant Order Id
    • Get BNPL Payment Methods
    • Search Order
  • Payment
    • Get Transaction Status
    • Submit Payment Request
    • Payment Notify Request
    • Verify UPI VPA
    • Validate OTP
    • Get UPI Transaction Status
    • Resend OTP
    • Search Transaction
  • Refund
    • Refund
    • Get Refund Transaction Status
    • Refund Webhook Request
  • Settlement
    • Get Settlement Payout By ID
    • Search Settlement Payouts
  • Split Settlement
    • Get All Split Settlement Account
    • Deactivate Split Settlement Account
    • Submit Payment with Split Details
    • Activate Split Settlement Account
    • Edit Or Deferred Split Settlement
    • Create Split Settlement Account
    • Update Split Settlement Account
    • Get IntentLink/QrCode with Split details
  • E-Commerce Plugins
  • UPI QR
    • Create UPI QR
    • Get UPI QR
    • Search UPI QR
    • Create Customer
    • Search Customer
    • Cancel UPI QR
  • UPI Autopay
    • Mocking & Simulator (UAT)
    • 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
    • Webhook Request
    • Get Payment Link Details
    • Delete Payment Link
  • E-Collect
    • Create Virtual Account
    • View Virtual Account by Id
    • Update Virtual Account
    • View Virtual Account by Account Number
    • Search Virtual Account
    • Search Transactions
    • View Virtual Account by Customer Reference Id
  1. Authorization

Generate Authorization Token

POST
/api/v0/merchant/token
📌
This API generates an authentication token that must be included in the headers of all subsequent API requests. The token authenticates the client and ensures that only authorized users can interact with the server, providing a secure communication channel.

Request

Body Params application/json

Example
{
    "secretKey": "0be69636edcc31fc3a7c0d189ddaf99baee2df17043ab13e8e37",
    "accessKey": "Vl83xTM1298"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://olympus-pg-uat.enkash.in/api/v0/merchant/token' \
--header 'Content-Type: application/json' \
--data '{
    "secretKey": "0be69636edcc31fc3a7c0d189ddaf99baee2df17043ab13e8e37",
    "accessKey": "Vl83xTM1298"
}'

Responses

🟢200OK
application/json
Bodyapplication/json

Example
{
    "token": "obnlw-824206346745059CiLdi",
    "expiry": 1767770228192,
    "resultCode": 0,
    "resultMessage": "Success"
}
🟢200Failed
Modified at 2026-02-19 09:30:04
Previous
Authorization
Next
Payment Modes Details
Built with