- 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 RequestPOST
- Webhook Send Purchase Order ResponsePOST
- Webhook Confirm Purchase Order RequestPOST
- Webhook Confirm Purchase Order ResponsePOST
- Webhook Edit Purchase Order RequestPOST
- Webhook Edit Purchase Order ResponsePOST
- Webhook Status Change Purchase Order RequestPOST
- Webhook Status Change Purchase Order ResponsePOST
- Bill Payments
- Bill Payments Overview
- Get Authentication TokenPOST
- Get BillerTypesGET
- Get BillersGET
- Fetch BillPOST
- Create Bill APIPOST
- Create Bill Without Bill FetchPOST
- Bill PaymentPOST
- Utility Bill Approval APIPUT
- Get Utility Bill StatusGET
- Get Utility Bill by Reference IdGET
- Get Utility Bills DetailPOST
- Bill Payment WebhookPOST
- Payouts
- Payouts Overview
- Payouts Sign Up
- Payout Methods
- Payout API Response Codes
- Payouts Integration Steps
- Encrypting and Decrypting Payload
- Payouts Status Codes
- Get Authentication Token
- Beneficiary Apis
- Transfer Apis
- Payout Account Apis
- Webhook Data Apis
- Accounts Payable Management Tool
- About AP Management Tool
- Vendor Management
- Invoice Management
- Bharat Connect 2.0 AP
- Update BeneficiaryPUT
- Account Receivable
- Accounts Receivable Overview
- Get Authentication Token Copy
- Customer Management
- Customer Contacts Management
- Customer Apis
- Invoice Management
- Payment Reminders
- Bharat Connect 2.0 AR
- Expense Management
- Loyalty
- Card Management
- EnKash Card Management Systems Overview
- Cards We Issue
- API Reference
- VKYC
- Developer Guide
- Cards Integration Steps
- Encryption / Decryption of API requests / Response
- Encryption & Decryption Guide
- Token Api
- Gift Card
- Meal Cards
- Prepaid Cards
- Fuel_cards
- Advance Card Feature
- Verification Suite
- Verification Suite Overview
- Bank Account Verification
- GSTN Verification
- PAN Verification
- UPI(VPA) Verification
Webhook Payment Request
POST
api/v0/payment/req-pay
Request
Body Params application/json
device
objectÂ
required
tag
objectÂ
required
b2bIds
objectÂ
required
buyerB2BId
stringÂ
required
Match pattern:
^([^\\\"]){1,100}$
supplierB2BId
stringÂ
required
Match pattern:
^([^\\\"]){1,100}$
payment
objectÂ
required
objectId
stringÂ
required
Match pattern:
^[PMT]{3}[A-Za-z0-9]{32,32}$
ts
stringÂ
required
type
enum<string>Â
required
Allowed values:
ONPLATFORMOFFPLATFORM
mode
enum<string>Â
required
Allowed values:
INTERNET BANKINGDEBIT CARDCREDIT CARDIMPSCASHUPIWALLETNEFTPREPAID CARDACCOUNT TRANSFERCHEQUE
utr
stringÂ
required
Match pattern:
^([^\\\"]){1,50}$
currency
enum<string>Â
required
Allowed value:
INR
paymentAmount
objectÂ
required
invoicesPayInfos
array [object {7}]Â
required
additionalInfos
array [object {2}]Â
optional
name
stringÂ
optional
value
stringÂ
optional
Example
{
"device": {
"tag": {
"name": "GEOCODE",
"value": "string"
}
},
"b2bIds": {
"buyerB2BId": "string",
"supplierB2BId": "string"
},
"payment": {
"objectId": "string",
"ts": "string",
"type": "ONPLATFORM",
"mode": "INTERNET BANKING",
"utr": "string",
"currency": "INR",
"paymentAmount": {
"netPaidAmount": 0,
"netAdjustmentAmount": 0,
"totalAmount": 0,
"currency": "INR"
},
"invoicesPayInfos": [
{
"objectId": "string",
"supplierInvoiceNumber": "string",
"objectVersion": {
"currentVersion": 1,
"newVersion": 1
},
"statusTransition": {
"currentStatus": "CREATED",
"newStatus": "CREATED"
},
"invoiceAmount": {
"dueAmount": 0,
"totalAmount": 0,
"currency": "INR"
},
"invoicePaymentAmount": {
"netPaidAmount": 0,
"netAdjustmentAmount": 0,
"totalAmount": 0,
"currency": "INR",
"splits": [
{
"name": "string",
"value": 0,
"refNo": "string"
}
]
},
"supplierBankAccountDetails": {
"maskedAccountNumber": "string",
"ifsc": "string",
"beneficiaryName": "string",
"businessVPA": "string"
}
}
]
},
"additionalInfos": [
{
"name": "string",
"value": "string"
}
]
}
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 'api/v0/payment/req-pay' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200Success
application/json
Body
response_code
integerÂ
required
response_message
stringÂ
required
payload
object (PaymentResponse)Â
required
resp
objectÂ
required
b2bIds
objectÂ
required
payment
objectÂ
required
additionalInfos
array [object {2}]Â
required
Example
{
"response_code": 0,
"response_message": "string",
"payload": {
"resp": {
"reqMsgId": "string",
"result": "string",
"errorCd": "string",
"errorDtl": "string",
"errorField": "string"
},
"b2bIds": {
"buyerB2BId": "string",
"supplierB2BId": "string"
},
"payment": {
"objectId": "string",
"ts": "string",
"type": "string",
"mode": "string",
"utr": "string",
"currency": "string",
"paymentAmount": {
"netPaidAmount": 0,
"netAdjustmentAmount": 0,
"totalAmount": 0,
"currency": "string"
},
"invoicesPayInfos": [
{
"objectId": "string",
"supplierInvoiceNumber": "string",
"objectVersion": {
"currentVersion": 0,
"newVersion": 0
},
"statusTransition": {
"currentStatus": "string",
"newStatus": "string"
},
"invoiceAmount": {
"dueAmount": 0,
"totalAmount": 0,
"currency": "string"
},
"invoicePaymentAmount": {
"netPaidAmount": 0,
"netAdjustmentAmount": 0,
"totalAmount": 0,
"currency": "string",
"splits": [
{
"name": "string",
"value": 0,
"refNo": "string"
}
]
},
"supplierBankAccountDetails": {
"maskedAccountNumber": "string",
"ifsc": "string",
"beneficiaryName": "string",
"businessVPA": "string"
}
}
]
},
"additionalInfos": [
{
"name": "string",
"value": "string"
}
]
}
}
Modified at 2024-10-10 08:29:16