Enkash APIs
HomePayment GatewayPayoutsCreate Account
HomePayment GatewayPayoutsCreate Account
Login
  1. Get Authentication Token
  • Payouts Overview
  • Payouts Sign Up
  • Payout Methods
  • Payout API Response Codes
  • Payouts Integration Steps
  • Encrypting and Decrypting Payload
  • Payouts Status Codes
  • 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 Balance
      GET
    • Get Source Bank Account Details
      GET
    • Add Source Bank Account
      POST
    • Fetch Bank Statement
      POST
  • Webhook Data Apis
    • Get Webhook Data
      GET
    • Create Webhook Data
      POST
  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
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 'https://test.your-api-server.com/oauth/token' \
--header 'Authorization: Basic ZW5rYXNoLWNsaWVudDplbmthc2gtc2VjcmV0' \
--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
accessToken
string 
optional
tokenType
string 
optional
expiresIn
integer <int32>
optional
refreshToken
string 
optional
Example
{
  "accessToken": "string",
  "tokenType": "string",
  "expiresIn": 0,
  "refreshToken": "string"
}
Modified at 2025-03-28 05:40:21
Previous
Payouts Status Codes
Next
Beneficiary Apis
Built with