- EnKash Developer Portal Overview
- Payment Gateway
- Payment Gateway Overview
- Payment Gateway Sign Up
- Payment Methods
- Supported Integrations
- Payment Gateway APIs
- Web Integration
- Server to Server Integration
- Test Card Details
- Authorization
- Orders
- Payments
- Refunds
- Settlements
- Split Settlements
- E-Commerce Plugins
- Payment Links
- Payment Button
- Qr Code
- UPI Mandate
- Payment Links
- Bharat Connect (BBPS)
- About Bharat Connect
- B2B Invoicing
- Invoice
- Payment
- Financing
- Onboarding
- cdNote
- Purchase Order
- webhook-invoice
- webhook-payments
- webhook-business-onboarding
- webhook-financing
- webhook-cdNote
- Webhook Purchase Order
- Webhook Send Purchase Order Request
- Webhook Send Purchase Order Response
- Webhook Confirm Purchase Order Request
- Webhook Confirm Purchase Order Response
- Webhook Edit Purchase Order Request
- Webhook Edit Purchase Order Response
- Webhook Status Change Purchase Order Request
- Webhook Status Change Purchase Order Response
- Bill Payments
- Payouts
- Accounts Payable Management Tool
- Account Receivable
- Expense Management
- Loyalty
- Card Management
- Verification Suite
User Authentication
POST
/oauth/token
1.
2.
3.
4.
Request
Header Params
Authorization
stringÂ
required
Example:
Basic Q0VLMUdaQk82QTo2NGIwZmYwMzMyZjA1OGI1NjQwMmI2M2E5YmFhNjAyMTRmMmQ2MWQz
Content-Type
stringÂ
required
Example:
application/x-www-form-urlencoded
Body Params application/x-www-form-urlencoded
username
stringÂ
required
Example:
9167019711
password
stringÂ
required
Example:
Test@1234567
grant_type
stringÂ
required
Example:
password
clientId
stringÂ
required
Example:
CEK1GZBO6A
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 Q0VLMUdaQk82QTo2NGIwZmYwMzMyZjA1OGI1NjQwMmI2M2E5YmFhNjAyMTRmMmQ2MWQz' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'username=9167019711' \
--data-urlencode 'password=Test@1234567' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'clientId=CEK1GZBO6A'
Responses
🟢200Success
application/json
Body
access_token
stringÂ
required
token_type
stringÂ
required
refresh_token
stringÂ
required
expires_in
integerÂ
required
scope
stringÂ
required
Example
{
"access_token": "bCFIP675fIyGKIf6CWak43LF1rI",
"token_type": "bearer",
"refresh_token": "i2UQSYGeDZPogy_V6szNOi5Q0W0",
"expires_in": 86399,
"scope": "read write trust"
}
Modified at 2025-01-08 07:53:39