Enkash Developer Portal
Home
Home
Login
  1. APIs
  • Back to home
  • Bill Payment
  • APIs
    • Generate Authentication Token
      POST
    • Fetch Current Bill
      POST
    • Fetch Biller List
      GET
    • Fetch Biller Categories
      GET
    • Fetch Bulk Bill Details
      POST
    • Get Utility Bill By Reference ID
      GET
    • Get Utility Bill Status
      GET
    • Confirm Debit for Bill Payment
      PUT
    • Initiate Bill Payment via EnKash PG
      POST
    • Create Bill Without Bill Fetch
      POST
    • Create Bill After Successful Bill Fetch
      POST
  • Webhook
    • Setup Webhook Endpoint
  1. APIs

Generate Authentication Token

POST
/oauth/token
📌
To generate an authentication token, send a POST request to our OAuth endpoint. This request authenticates your credentials and returns an access token, which you will use to authorize all subsequent API calls.
Make sure your credentials are properly encoded and transmitted securely during this process to protect sensitive information.

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-07-08 19:50:09
Previous
APIs
Next
Fetch Current Bill
Built with