Enkash Developer Portal
Home
Home
Login
  1. Get Authentication Token Copy
  • Back to home
  • Account Receivable APIs
  • Get Authentication Token Copy
    • Get Authentication Token
      POST
  • Customer Management
    • Customer Apis
      • Activate customer
      • createBulkCustomer
      • bulkUpdate
      • Deactivate customer
      • deleteCustomerByCustomerId
      • updateCustomer
  • Customer Contacts Management
    • Customer Apis
      • getCustomerContactDetails
  • Invoice Management
    • invoice-controller
      • createInvoice
      • invoiceBulkUpload
      • Dispatch Invoice Collection
      • Delete Invoice Collection
      • searchCollectionInvoices
      • getInvoice
      • updateInvoice
  • Payment Reminders
    • customer-reminder-controller
      • createCustomerReminder
      • getCustomerReminders
      • getCustomerReminder
      • deleteReminder
      • updateCustomerReminder
  • Bharat Connect 2.0 AR
    • Payment Confirmation Request
    • Change Invoice Status Request
    • Bulk Create Invoice
  1. Get Authentication Token Copy

Get Authentication Token

Developing
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-07-07 18:44:29
Next
Activate customer
Built with