EnKash API Document
HomePayment GatewayPayoutsCreate Account
HomePayment GatewayPayoutsCreate Account
Login
  1. Authorization
  • Payment Gateway Overview
  • Payment Gateway Sign Up
  • Payment Methods
  • Supported Integrations
  • Payment APIs
  • Test Card Details
  • Authorization
    • About Authorization
    • Get Authorization Token
      POST
  • Orders
    • Order Overview
    • About Order
    • Create Order
      POST
    • Get Order Status
      GET
    • Get BNPL Payment Modes
      GET
  • Payments
    • Payment Overview
    • About Payment
    • Get Transaction Status
      GET
    • Submit Payment Detail
      POST
  • Refunds
    • About Refund
    • Refund
      POST
  • Payment Links
    • Upi Intent Link Detail
      GET
  • Settlements
    • About Settlement
    • Get Settlement Payout By Id
      GET
    • Search Settlement Payouts
      POST
  • QR Generation API
    • Get Dynamic QR Code
  • Payment Button
  • Qr Code
    • Create QR
    • Create QR Customer
    • Search QR Code
    • Get QR Code
    • Cancel QR Code
  1. Authorization

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"
}
Previous
About Authorization
Next
Orders
Built with