Enkash APIs
HomePayment GatewayPayoutsCreate Account
HomePayment GatewayPayoutsCreate Account
Login
  1. Authorisation
  • Payment Gateway Overview
  • Getting Started
  • Payment Methods
  • Integration
  • API Endpoints
  • APIs
    • Authorisation
      • Get Authorization Token
        POST
    • Order
      • Create Order
      • Get Order Status
      • Get Order By Merchant Order Id
      • Get BNPL Payment Modes
      • Get Dynamic QR Code
      • UPI Intent Links
    • Payment
      • Submit Payment Detail
      • Get Transaction Status
      • Validate OTP
      • Resend OTP
      • Payment Notify Request
      • Get UPI Transaction Status
      • Verify VPA
    • Refund
      • Refund
    • Settlement
      • Settlement Reporting
      • Get Settlement Payout By ID
      • Search Settlement Payouts
    • Split Settlement
      • Create Split Settlement Account
      • Update Split Settlement Account
      • Get All Split Settlement Account
      • Deactivate Split Settlement Account
      • Activate Split Settlement Account
      • Submit Payment with Split Details
      • Edit/Deferred Split Settlement
    • E-Commerce Plugins
    • Payment Button
    • Qr Code
      • Create Qr Code
      • Get QR Code
      • Search QR Code
      • createCustomer
      • searchCustomer
      • Cancel QR Code
    • UPI Mandate
      • 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 Links Overview
      • Payment Link APIs
      • Payment Link
        • Create Payment Link
        • Get Payment Link Details
        • Delete Payment Link
      • Payment Link Webhook
        • Payment Link Webhook Request
  1. Authorisation

Get Authorization Token

POST
/api/v0/merchant/token
token-api-controller
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

Request

Body Params application/json
accessKey
string 
required
The access key generated for your account.
secretKey
string 
required
The secret key generated for your account.
Example
{
    "accessKey": "string",
    "secretKey": "string"
}

Request 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 --request POST '/api/v0/merchant/token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "accessKey": "string",
    "secretKey": "string"
}'

Responses

🟢200OK
application/json
Body
token
string 
optional
The generated authentication token.
expiry
integer <int64>
optional
The expiration time of the token (in milliseconds since UNIX epoch).
resultCode
integer <int32>
optional
The result code indicating the status of the token generation request.
resultMessage
string 
optional
A message providing additional information about the result of the token generation request.
Example
{
    "token": "string",
    "expiry": 0,
    "resultCode": 0,
    "resultMessage": "string"
}
Modified at 2025-05-27 19:03:24
Previous
Authorisation
Next
Order
Built with