Enkash APIs
HomePayment GatewayPayoutsCreate Account
HomePayment GatewayPayoutsCreate Account
Login
  1. Payment
  • Payment Gateway Overview
  • Getting Started
  • Payment Methods
  • Integration
  • API Endpoints
  • APIs
    • Authorisation
      • Get Authorization Token
    • Order
      • Create Order
      • Get Order Status
      • Get Order By Merchant Order Id
      • Get BNPL Payment Modes
      • Get Dynamic QR Code
      • UPI Intent Links
    • Payment
      • Submit Payment Detail
        POST
      • Get Transaction Status
        GET
      • Validate OTP
        POST
      • Resend OTP
        GET
      • Payment Notify Request
        POST
      • Get UPI Transaction Status
        GET
      • Verify VPA
        POST
    • 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 create 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

Validate OTP

Developing
POST
/pay/otp/validate

Request

Body Params application/json
ekPayId
string 
required
otp
string 
required
checkSum
string 
optional
Example
{
    "ekPayId": "string",
    "otp": "string",
    "checkSum": "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 '/pay/otp/validate' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ekPayId": "string",
    "otp": "string",
    "checkSum": "string"
}'

Responses

🟢200Success
application/json
Body
response_code
integer <int32>
optional
response_message
string 
optional
payload
object (OTPResponse) 
optional
uniqueTransactionId
string 
optional
publicIdentifierKey
string 
optional
transactionId
string 
optional
amount
string 
optional
currency
string 
optional
otpReferenceNumber
string 
optional
txnMessage
string 
optional
txnStatus
string 
optional
txnDate
string 
optional
orderId
string 
optional
Example
{
    "response_code": 0,
    "response_message": "string",
    "payload": {
        "uniqueTransactionId": "string",
        "publicIdentifierKey": "string",
        "transactionId": "string",
        "amount": "string",
        "currency": "string",
        "otpReferenceNumber": "string",
        "txnMessage": "string",
        "txnStatus": "string",
        "txnDate": "string",
        "orderId": "string"
    }
}
Previous
Get Transaction Status
Next
Resend OTP
Built with