Enkash Developer Portal
Home
Home
Login
  1. Token APIs
  • Back to home
  • Petty Cash API
  • Token APIs
    • Authentication
      POST
  • Money Allocation
    • Create And Allocate Fund To Handle
    • Get Petty Cash Account Details
    • Get Transaction Details
    • Get User Details
    • Get User Handle Details
  1. Token APIs

Authentication

POST
/oauth/token
📌

Get userName and password from EnKash
Call Auth Token Api to generate Bearer Token
Bearer and refresh tokens are valid for 5 minutes and must be regenerated after expiry
The Distribution Platform validates the identity and parameters of each OAuth2.0 API request. After 3 consecutive failed attempts, the account will be locked and an invalid response returned

Request

Header Params

Body Params application/x-www-form-urlencoded

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 --request POST '/oauth/token' \
--header 'Authorization: Basic Q0VLMUdaQk82QTo2NGIwZmYwMzMyZjA1OGI1NjQwMmI2M2E5YmFhNjAyMTRmMmQ2MWQz' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'username=9167019711' \
--data-urlencode 'password=Test@1234567' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'clientId=CEK1GZBO6A'

Responses

🟢200Success
application/json
Body

Example
{"access_token":"bCFIP675fIyGKIf6CWak43LF1rI","token_type":"bearer","refresh_token":"i2UQSYGeDZPogy_V6szNOi5Q0W0","expires_in":86399,"scope":"read write trust"}
Modified at 2025-11-19 13:19:32
Next
Create And Allocate Fund To Handle
Built with