Enkash APIs
HomePayment GatewayPayoutsCreate Account
HomePayment GatewayPayoutsCreate Account
Login
  1. Payment Gateway APIs
  • Payment Gateway Overview
  • Getting Started
  • Payment Methods
  • Integration
  • Payment Gateway APIs
    • Authorisation
      • Get Authorization Token
    • Order
      • Create Order
      • Get Order Status
      • Get Order By Merchant Order Id
      • Get BNPL Payment Methods
      • Get Dynamic UPI QR
      • UPI Intent Links
    • Payment
      • Submit Payment Request
      • Get Transaction Status
      • Validate OTP
      • Resend OTP
      • Payment Notify Request
      • Get UPI Transaction Status
      • Verify UPI VPA
    • Refund
      • Refund
    • Settlement
      • Settlement Reporting
      • 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/Deferred Split Settlement
    • E-Commerce Plugins
    • Payment Button
    • Qr Code
      • Create Qr Code
      • Get QR Code
      • Search QR Code
      • createCustomer
      • searchCustomer
      • Cancel QR Code
    • UPI Mandate
      • 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 Links Overview
      • Payment Link APIs
      • Payment Link
        • Create Payment Link
        • Get Payment Link Details
        • Delete Payment Link
      • Payment Link Webhook
        • Payment Link Webhook Request
  1. Payment Gateway APIs

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-06-26 05:58:37
Previous
Get Authorization Token
Next
Create Order
Built with