RRoyal Pay API docs
Menu

4. Get transaction status

GEThttps://api.royalpe.site/merchant/transaction-status

Retrieve the status and details of a pay-in transaction belonging to the authenticated merchant.

Query parameters #

ParameterTypeRequiredDescription
accessKeystringYesMerchant access key
secretKeystringYesMerchant secret key
transactionIdstringYesGateway transaction identifier

Request example #

HTTP
GET /merchant/transaction-status?accessKey=YOUR_ACCESS_KEY&secretKey=YOUR_SECRET_KEY&transactionId=RP-7f3a9c21d84e5b02
cURL
curl "https://api.royalpe.site/merchant/transaction-status?accessKey=YOUR_ACCESS_KEY&secretKey=YOUR_SECRET_KEY&transactionId=RP-7f3a9c21d84e5b02"
Python
import os, requests

data = requests.get("https://api.royalpe.site/merchant/transaction-status", params={
    "accessKey": os.environ["ROYALPAY_ACCESS_KEY"],
    "secretKey": os.environ["ROYALPAY_SECRET_KEY"],
    "transactionId": "RP-7f3a9c21d84e5b02",
}, timeout=15).json()["data"]

Success response (HTTP 200) #

200
{
  "success": true,
  "message": "Transaction status retrieved successfully",
  "data": {
    "transactionId": "RP-7f3a9c21d84e5b02",
    "status": "approved",
    "amount": 1000.5,
    "remarks": "Payment successful",
    "updatedAt": "2026-11-30T10:30:00.000Z",
    "orderId": "ORDER123",
    "userId": "USER456",
    "utrNumber": "123456789012"
  }
}
data fieldDescription
transactionIdGateway transaction identifier
statusCurrent payment status (below)
amountTransaction amount in rupees
remarksAdditional notes, nullable: Payment successful, the rejection reason, or the cancellation reason
updatedAtLast status update, ISO timestamp (UTC)
orderIdMerchant order ID
userIdCustomer identifier
utrNumberUTR/reference number, nullable until the customer submits it

A pay-in webhook carries the same object.

Payment status values #

ValueFinalMeaning
progressnoPayment created, waiting for customer action
pendingnoPayment submitted, awaiting verification
approvedyesPayment confirmed: credit the customer, once
rejectedyesPayment rejected; remarks says why
cancelledyesEnded before any payment proof was submitted: the customer cancelled (Cancelled by the payer), left the checkout (Payer left the checkout), or it stopped responding for 30 minutes (Checkout timed out: …)
Lifecycle
progress ──proof submitted──▶ pending ──verified──▶ approved
    │                            └──not accepted──▶ rejected
    └──cancelled / left / timed out──▶ cancelled

A pending pay-in can receive a corrected UTR, which restarts verification. approved, rejected and cancelled never change again.

Error responses #

Error
{ "success": false, "message": "Access key is required" }
HTTP codeMessage
400Access key is required, Secret key is required, transactionId is required
401Invalid access key or secret key
403Transaction does not belong to this merchant
404Transaction not found
500Something went wrong

All three query parameters are validated and required. Access is restricted to the authenticated merchant's own transactions. Webhooks remain the main way to learn results: poll a transaction at most every 10 seconds.