Enkash Developer Portal
Home
Home
Login
  1. Home
  • Back to home
  • Payment Gateway APIs
  • Merchant
    • Generate Authorization Token
      POST
    • Payment Modes Details
      GET
  • 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
      POST
    • Get Transaction Status
      GET
    • Validate OTP
      POST
    • Resend OTP
      GET
    • Payment Notify Request
      POST
    • Get UPI Transaction Status
      GET
    • Verify UPI VPA
      POST
  • Refund
    • Refund
      POST
  • Settlement
    • Get Settlement Payout By ID
      GET
    • Search Settlement Payouts
      POST
  • Split Settlement
    • Create Split Settlement Account
      POST
    • Update Split Settlement Account
      POST
    • Get All Split Settlement Account
      GET
    • Deactivate Split Settlement Account
      PATCH
    • Activate Split Settlement Account
      PATCH
    • Submit Payment with Split Details
      POST
    • Edit Or Deferred Split Settlement
      POST
  • 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. Home

Order Initialization for Payment Processing

Creating an order is the first and critical step in processing a payment through the EnKash Payment Gateway. The Order API generates a unique OrderID, which acts as the core reference throughout the transaction lifecycle.

Purpose#

Order Security: Ensures transaction integrity by preventing tampering with amount or details.
Payment Binding: Ties a single successful payment to each order to avoid duplicates.
Integration Backbone: Links the order to Checkout, enabling a secure and traceable flow.

Workflow#

1
Customer Action
The customer clicks the "Pay" button on your platform.
2
Order Creation
Your backend calls the Order API, which returns a unique Order ID along with transaction details (amount, currency, etc.).
3
Checkout Integration
The Order ID is passed to the EnKash Checkout for secure and streamlined payment handling.

Advantages#

Single Successful Payment Enforcement
Prevents multiple payments from being accepted against the same order.
Optimized Querying
Simplifies reconciliation by associating multiple payment attempts to a single order.

Key Integration Steps#

1
Create Order
Use the Create Order API with transaction metadata such as amount, currency, and optional custom fields.
2
Initiate Checkout
Pass the generated OrderID to EnKash Checkout for rendering the payment UI.
3
Track Order
Use Get Order Status or related APIs to monitor order status through the payment lifecycle.

Order Lifecycle Statuses#

StatusDescription
CREATEDOrder successfully created and ready for Checkout
CHECKOUT_RENDEREDCustomer redirected to EnKash Checkout
ATTEMPTEDCustomer attempted payment
PAIDPayment completed successfully
CANCELLEDCustomer canceled the transaction
EXPIREDOrder expired due to timeout or inactivity
Modified at 2025-07-05 12:02:02
Previous
Payment Modes Details
Next
Create Order
Built with