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

Body Params application/x-www-form-urlencoded

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

Example
{
    "access_token": "string",
    "token_type": "string",
    "expires_in": 0,
    "refresh_token": "string",
    "scope": "string"
}
Modified at 2024-07-30 10:44:09
Previous
Ecrypting and Decrypting Payload
Next
Beneficiary Apis
Built with