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

Get Transaction Status

GET
/api/v0/payment/{transactionId}
order-controller

Request

Path Params
transactionId
string 
required
Header Params
Authorization
string 
required
merchantAccessKey
string 
required

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 GET '/api/v0/payment/' \
--header 'Authorization;' \
--header 'merchantAccessKey;'

Responses

🟢200OK
application/json
Body
response_code
integer <int32>
optional
response_message
string 
optional
payload
object (OrderTransactionResponse) 
optional
transactionId
string 
optional
The unique identifier for the transaction.
created
string <date-time>
optional
The timestamp indicating when the transaction was created.
lastModified
string <date-time>
optional
The timestamp indicating when the transaction was last modified.
type
enum<string> 
optional
The type of transaction.
Allowed values:
SALEREFUND
amount
number 
optional
The amount associated with the transaction.
currency
string 
optional
The currency in which the transaction amount is specified.
status
enum<string> 
optional
The current status of the transaction.
Allowed values:
CREATEDPENDING_WITH_BANKSUCCESSFAILEDCANCELLEDCHECKOUT_RENDEREDREFUNDEDPARTIALLY_REFUNDEDAUTHORIZEDPROCESSINGHOLD
paymentDetail
object (PaymentDetailResponse) 
optional
bankResponse
object (BankResponseModel) 
optional
Response from the bank for the transaction.
txnMessage
string 
optional
Additional message or information related to the transaction.
txnDate
string <date-time>
optional
The date when the transaction was initiated.
surcharge
number 
optional
The surcharge amount for the transaction.
surchargeGst
number 
optional
GST applied on the surcharge amount.
finalAmount
number 
optional
The final amount after considering surcharge and GST.
txnMsg
string 
optional
Additional message or information related to the transaction.
mdr
number 
optional
Merchant Discount Rate (MDR) applied on the transaction.
mdrGst
number 
optional
GST applied on the Merchant Discount Rate (MDR).
transactionAmount
number 
optional
The transaction amount.
Example
{
    "response_code": 0,
    "response_message": "string",
    "payload": {
        "transactionId": "string",
        "created": "2019-08-24T14:15:22Z",
        "lastModified": "2019-08-24T14:15:22Z",
        "type": "SALE",
        "amount": 0,
        "currency": "string",
        "status": "CREATED",
        "paymentDetail": {
            "paymentMode": "NET_BANKING",
            "cardHolderName": "string",
            "cardNumber": "string",
            "expiry": "string",
            "cardType": "CREDIT_CARD",
            "cardSchemeType": "VISA",
            "bankCode": "string",
            "bankName": "string",
            "accountNumber": "string",
            "ifsc": "string"
        },
        "bankResponse": {
            "terminalID": "string",
            "bankTransactionId": "string"
        },
        "txnMessage": "string",
        "txnDate": "2019-08-24T14:15:22Z",
        "surcharge": 0,
        "surchargeGst": 0,
        "finalAmount": 0,
        "txnMsg": "string",
        "mdr": 0,
        "mdrGst": 0,
        "transactionAmount": 0
    }
}
Previous
Submit Payment Detail
Next
Validate OTP
Built with