Enkash Developer Portal
Home
Home
Login
  1. Home
  • Back to home
  • Prepaid Card APIs
  • Encryption & Decryption Guide
  • Auth Token
    POST
  • Create Card Account
    POST
  • Create Gift Card
    POST
  • Create Prepaid Card
    POST
  • Set Card PIN
    POST
  • Load Card Balance
    POST
  • Get Card Account Details
    POST
  • Generate Card OTP
    POST
  • View Card Details
    POST
  • Card Usage Controls
    POST
  • Get Card Usage Limits
    POST
  • Request Card Replacement
    POST
  • Block Card
    POST
  • Order Physical Card
    POST
  • Get Card Details
    POST
  • Get Transaction Details
    POST
  • Get All Transaction details
    POST
  1. Home

Auth Token

Developing
POST
https://ekpayout-uat.enkash.in/oauth/token
📌
This API is used to generate a Partner Token, which is required for authentication when calling other EnKash Prepaid Card APIs. The token must be passed in the Authorization header as a Bearer token in subsequent requests

Request

Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Header Params
Cookie
string 
required
Example:
_cfuvid=f5yil.adja6WY54i74vh4ra.7UO0u2fMcW3Sd7nDXbM-1737528925925-0.0.1.1-604800000; JSESSIONID=3811B357B64F1FB6E0C97811B55F13AA
Content-Type
string 
required
Example:
application/x-www-form-urlencoded
Body Params application/x-www-form-urlencoded
username
string 
required
Mobile number of the partner
Example:
6660686687
password
string 
required
Password
Example:
Test@1234567
grant_type
string 
required
Example:
password
clientId
string 
required
Company Id of partner
Example:
CEKEY1SKIU

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://ekpayout-uat.enkash.in/oauth/token' \
--header 'Cookie: _cfuvid=f5yil.adja6WY54i74vh4ra.7UO0u2fMcW3Sd7nDXbM-1737528925925-0.0.1.1-604800000; JSESSIONID=3811B357B64F1FB6E0C97811B55F13AA' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic Og==' \
--data-urlencode 'username=6660686687' \
--data-urlencode 'password=Test@1234567' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'clientId=CEKEY1SKIU'

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2025-05-26 17:18:28
Previous
Encryption & Decryption Guide
Next
Create Card Account
Built with