EnKash API Document
HomePayment GatewayPayoutsCreate Account
HomePayment GatewayPayoutsCreate Account
Login
  1. Get Authentication Token
  • Payouts Overview
  • Payouts Sign Up
  • Payout Methods
  • Payouts Integration Steps
  • Ecrypting and Decrypting Payload
  • Get Authentication Token
    • Get Authentication Token
      POST
  • Beneficiary Apis
    • Create Beneficiary
      POST
    • Search Beneficiary
      POST
    • Delete Beneficiary
      DELETE
  • Transfer Apis
    • Create Payout
      POST
    • Search Payouts
      POST
    • Create Batch Payout
      POST
  • Payout Account Apis
    • Get Source Bank Account Details
      GET
    • Add Source Bank Account
      POST
    • Get Balance
      GET
  1. Get Authentication Token

Get Authentication Token

POST
/oauth/token
To generate an authentication token, you need to send a POST request to our OAuth endpoint. This request will authenticate your credentials and return an access token, which you can use to authorize subsequent API requests. Ensure that your credentials are properly encoded and secure during this process.
Note: Encryption and Decrytion is not needed in Get Authentication Api

Request

Header Params
Content-Type
string 
required
Example:
application/x-www-form-urlencoded
Authorization
string 
required
Basic Authorization token generated using Base64 encoding {clientId}:{clientSecret}
Example:
Basic ZW5rYXNoLWNsaWVudDplbmthc2gtc2VjcmV0
User-Agent
string 
required
Body Params application/x-www-form-urlencoded
username
string 
required
Registered Email Id
Example:
saquib.n+ins@enkash.com
password
string 
required
Password for the user
Example:
Password@123
grant_type
string 
required
Default:
password
Example:
password
clientId
string 
required
Client Id
Example:
CEKFOWV7UQ

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 ZW5rYXNoLWNsaWVudDplbmthc2gtc2VjcmV0' \
--header 'User-Agent;' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'username=saquib.n+ins@enkash.com' \
--data-urlencode 'password=Password@123' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'clientId=CEKFOWV7UQ'

Responses

🟢200Success
application/json
Body
access_token
string 
optional
The token that can be used for authentication and authorization in API requests.
token_type
string 
optional
The type of the token issued. Typically, it is 'Bearer'.
expires_in
integer <int32>
optional
The duration in seconds after which the token expires and needs to be refreshed.
refresh_token
string 
optional
The token that can be used to obtain a new access token without re-authenticating.
scope
string 
required
The scope of access granted by the access token.
Example
{
    "access_token": "string",
    "token_type": "string",
    "expires_in": 0,
    "refresh_token": "string",
    "scope": "string"
}
Previous
Ecrypting and Decrypting Payload
Next
Beneficiary Apis
Built with