- Explore Our Product Suite
- Payment Gateway
- Payouts
- Prepaid Cards
- About Prepaid Card
- Key Capabilities
- Getting Started
- APIs
- API Access & Authorization
- Encryption & Decryption Guide
- Auth Token
- Create Card Account
- Create Gift Card
- Create Prepaid Card
- Set Card PIN
- Load Card Balance
- Get Card Account Details
- Generate Card OTP
- View Card Details
- Card Usage Controls
- Get Card Usage Limits
- Request Card Replacement
- Block Card
- Order Physical Card
- Get Card Details
- Get Transaction Details
- Get All Transaction details
- Bharat Connect (BBPS)
- About Bharat Connect
- Invoice Payments
- 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
- Accounts Payable
- Account Receivable
- Expense Management
- Rewards & Incentives
- About Rewards
- Getting Started
- Encryption & Decryption Guide
- Reward Allocation
- Incentive Allocation
- APIs
- Token APIs
- Reward Allocation
- Incentive Allocation
- Redemption
- Point 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"}