- 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
Create Order
POST
/api/v0/orders
order-controller
Request
Header Params
merchantAccessKey
stringÂ
required
Authorization
stringÂ
required
Body Params application/json
orderId
stringÂ
required
amount
object (Amount)Â
required
value
numberÂ
required
>= 0.01
currency
enum<string>Â
required
Allowed value:
INR
returnUrl
stringÂ
optional
notifyUrl
stringÂ
optional
customerInfo
object (CustomerDetail)Â
optional
firstName
stringÂ
optional
lastName
stringÂ
optional
address
object (Address)Â
optional
email
stringÂ
optional
phoneNumber
stringÂ
optional
customParameters
objectÂ
optional
Additional properties
stringÂ
optional
description
stringÂ
optional
paymentDetail
object (OrderPaymentDetail)Â
optional
accountNumber
stringÂ
optional
>= 9 characters<= 36 characters
ifsc
stringÂ
optional
>= 11 characters<= 11 characters
Example:
KKBK0000432
Match pattern:
^[A-Z]{4}0[A-Z0-9]{6}$
restrictedPaymentOptions
objectÂ
optional
restrictedPaymentOptions is to restrict payment options on check for this order, this field a map containg paymentMode as key and List as value.
NETBANKING: List of Netbanking codes
CREDIT_CARD: null
DEBIT_CARD: null
UPI: null
WALLET: List of wallet codes
Example
{
"orderId": "string",
"amount": {
"value": 0.01,
"currency": "INR"
},
"returnUrl": "string",
"notifyUrl": "string",
"customerInfo": {
"firstName": "string",
"lastName": "string",
"address": {
"streetName": "string",
"city": "string",
"state": "string",
"country": "string",
"zipcode": "string"
},
"email": "string",
"phoneNumber": "string"
},
"customParameters": {
"property1": "string",
"property2": "string"
},
"description": "string",
"paymentDetail": {
"accountNumber": "stringstr",
"ifsc": "KKBK0000432"
},
"restrictedPaymentOptions": {}
}
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/orders' \
--header 'merchantAccessKey;' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200OK
application/json
Body
response_code
integer <int32>
optional
response_message
stringÂ
optional
payload
object (OrderCreateResponse)Â
optional
redirectionUrl
stringÂ
optional
orderId
stringÂ
optional
Example
{
"response_code": 0,
"response_message": "string",
"payload": {
"redirectionUrl": "string",
"orderId": "string"
}
}
Modified at 2025-03-28 04:10:13