Client Authentication
POST
/oauth/token- Get userName and password from enkash
- Call auth token Api to generate Bearer token
- Bearer token has expiry of 5 min and refresh token will be valid for 5 min . It will require regeneration once expired.
- 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
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
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"
}
Last modified: 2 months ago