Enkash Developer Portal
Home
Home
Login
  1. Redemption
  • Back to home
  • Reward APIs
  • Token APIs
    • Authentication
    • Single Sign On (SSO)
  • 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
      POST
    • Get Cart for User
      GET
    • Search Catalog
      POST
    • Get Product Catalog Details
      GET
    • Get Product Configs (Denominations)
      GET
    • Add to cart
      POST
    • Update Cart
      PATCH
    • Create Order
      POST
    • Order Search
      POST
    • create order
      POST
    • Fetch Order Info by Partner order Reference id
      POST
  • Point Management
    • Overview
    • Create Event
    • Get Event
    • Update Event
    • Allocate Coins
    • Get Balance
  1. Redemption

User Authentication

POST
/oauth/token
1.
Get userName and password from enkash
2.
Call auth token Api to generate Bearer token
3.
Bearer token has expiry of 5 min and refresh token will be valid for 5 min . It will require regeneration once expired.
4.
Distribution Platform verifies the identity of each Oauth2.0 API request, and whether the call parameters are valid. After 3 consecutive incorrect attempts, the account will be locked. Invalid response

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-01-08 07:53:39
Previous
Get User Details
Next
Get Cart for User
Built with