Enkash Developer Portal
Home
Home
Login
  1. Order
  • Back to home
  • Payment Gateway APIs
  • Authorisation
    • Get Authorization Token
  • Order
    • Create Order
      POST
    • Get Order Status
      GET
    • Get Order By Merchant Order Id
      GET
    • Get BNPL Payment Methods
      GET
    • Get Dynamic UPI QR
      GET
    • UPI Intent Links
      GET
  • Payment
    • Submit Payment Request
    • Get Transaction Status
    • Validate OTP
    • Resend OTP
    • Payment Notify Request
    • Get UPI Transaction Status
    • Verify UPI VPA
  • Refund
    • Refund
  • Settlement
    • Get Settlement Payout By ID
    • Search Settlement Payouts
  • Split Settlement
    • Create Split Settlement Account
    • Update Split Settlement Account
    • Get All Split Settlement Account
    • Deactivate Split Settlement Account
    • Activate Split Settlement Account
    • Submit Payment with Split Details
    • Edit Or Deferred Split Settlement
  • E-Commerce Plugins
  • UPI QR
    • Create UPI QR
    • Get UPI QR
    • Search UPI QR
    • Create Customer
    • Search Customer
    • Cancel UPI QR
  • UPI Autopay
    • Create UPI Mandate
    • Update UPI Mandate
    • Revoke UPI Mandate
    • Get UPI Mandate
    • UPI Mandate Callback
    • Mandate Pre-debit Notification
    • Execute Mandate Debit
    • Mandate Debit Callback
  • Payment Links
    • Payment Link APIs
    • Create Payment Link
    • Get Payment Link Details
    • Delete Payment Link
    • Webhook Request
  1. Order

Create Order

POST
/api/v0/orders
📌
Use this API to create an order. The generated order acts as a prerequisite for initiating a transaction and collecting payments, enabling a seamless and secure payment flow within your application.

Request

Header Params

Body Params application/json

Example
{
    "orderId": "RANDOMID123",
    "amount": {
        "value": 100.00,
        "currency": "INR"
    },
    "returnUrl": "https://glaring-version.net/",
    "notifyUrl": "https://inconsequential-annual.biz/",
    "customerInfo": {
        "firstName": "Merlin",
        "lastName": "Collins",
        "address": {
            "streetName": "Jill Zemlak",
            "city": "Darioside",
            "state": "Minnesota",
            "country": "Angola",
            "zipcode": "06422"
        },
        "email": "[email protected]",
        "phoneNumber": "9889890909",
        "customerIpAddress": "1.204.130.102"
    },
    "customParameters": {
        "customParam1": "value",
        "customParam2": "value2"
    },
    "description": "Order description",
    "restrictedPaymentOptions": {
        "UPI": null,
        "NET_BANKING": [
            "NB001"
        ],
        "CREDIT_CARD": [
            "MASTERCARD"
        ]
    }
}

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 '{
    "orderId": "RANDOMID123",
    "amount": {
        "value": 100.00,
        "currency": "INR"
    },
    "returnUrl": "https://glaring-version.net/",
    "notifyUrl": "https://inconsequential-annual.biz/",
    "customerInfo": {
        "firstName": "Merlin",
        "lastName": "Collins",
        "address": {
            "streetName": "Jill Zemlak",
            "city": "Darioside",
            "state": "Minnesota",
            "country": "Angola",
            "zipcode": "06422"
        },
        "email": "[email protected]",
        "phoneNumber": "9889890909",
        "customerIpAddress": "1.204.130.102"
    },
    "customParameters": {
        "customParam1": "value",
        "customParam2": "value2"
    },
    "description": "Order description",
    "restrictedPaymentOptions": {
        "UPI": null,
        "NET_BANKING": [
            "NB001"
        ],
        "CREDIT_CARD": [
            "MASTERCARD"
        ]
    }
}'

Responses

🟢200OK
application/json
Body

Example
{
    "response_code": 0,
    "response_message": "string",
    "payload": {
        "redirectionUrl": "string",
        "orderId": "string"
    }
}
Modified at 2025-08-07 17:54:48
Previous
Order
Next
Get Order Status
Built with