Enkash Developer Portal
Home
Home
Login
  1. Token APIs
  • Back to home
  • Reward APIs
  • Token APIs
    • Authentication
      POST
    • Single Sign On (SSO)
      POST
  • Reward Allocation
    • Create And Allocate Points
    • Bulk Create And Allocate Rewards
    • Get Reward Account Details
    • Get Reward Transaction Details
    • Get User Details
    • Get User Card Details
  • Incentive Allocation
    • Incentive Create And Allocation
    • Get Incentive Transaction details
    • Get User Details
  • Redemption
    • User Authentication
    • Get Cart for User
    • Search Catalog
    • Get Product Catalog Details
    • Get Product Configs (Denominations)
    • Add to cart
    • Update Cart
    • Create Order
    • Order Search
    • create order
    • Fetch Order Info by Partner order Reference id
  • Point Management
    • Overview
    • Create Event
    • Get Event
    • Update Event
    • Allocate Coins
    • Get Balance
  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
Authorization
string 
required
Example:
Basic Q0VLMUdaQk82QTo2NGIwZmYwMzMyZjA1OGI1NjQwMmI2M2E5YmFhNjAyMTRmMmQ2MWQz
Content-Type
string 
required
Example:
application/x-www-form-urlencoded
Body Params application/x-www-form-urlencoded
username
string 
required
Example:
9167019711
password
string 
required
Example:
Test@1234567
grant_type
string 
required
Example:
password
clientId
string 
required
Example:
CEK1GZBO6A

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 '/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
access_token
string 
required
token_type
string 
required
refresh_token
string 
required
expires_in
integer 
required
scope
string 
required
Example
{"access_token":"bCFIP675fIyGKIf6CWak43LF1rI","token_type":"bearer","refresh_token":"i2UQSYGeDZPogy_V6szNOi5Q0W0","expires_in":86399,"scope":"read write trust"}
Modified at 2025-05-24 06:50:20
Next
Single Sign On (SSO)
Built with