RRoyal Pay API docs
Menu

Pay-in status

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

Returns a pay-in's current status. Use it to reconcile: when a webhook is late, when your server was down, or before crediting a large deposit. Webhooks remain the main way to learn the result; don't poll every second.

Query parameters #

ParameterRequiredDescription
accessKeyyesYour access key.
secretKeyyesYour secret key.
transactionIdyesThe transactionId from Create a pay-in.
cURL
curl "https://api.royalpe.site/merchant/transaction-status?accessKey=YOUR_ACCESS_KEY&secretKey=YOUR_SECRET_KEY&transactionId=RP-7f3a9c21d84e5b02"
Node.js
const q = new URLSearchParams({
  accessKey: process.env.ROYALPAY_ACCESS_KEY,
  secretKey: process.env.ROYALPAY_SECRET_KEY,
  transactionId: "RP-7f3a9c21d84e5b02",
});
const { data } = await (await fetch("https://api.royalpe.site/merchant/transaction-status?" + q)).json();
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"]

Response #

200
{
  "success": true,
  "message": "Transaction status retrieved successfully",
  "data": {
    "transactionId": "RP-7f3a9c21d84e5b02",
    "status": "approved",
    "amount": 500,
    "remarks": "Payment successful",
    "updatedAt": "2026-11-30T10:16:42.118Z",
    "orderId": "ORDER-10045",
    "userId": "USER-881",
    "utrNumber": "531512345678"
  }
}
FieldTypeDescription
transactionIdstringRoyal Pay's ID for the pay-in.
statusstringprogress, pending, approved, rejected or cancelled. See Statuses.
amountnumberAmount in rupees.
remarksstring | nullWhy it ended this way: Payment successful, the rejection reason, or the cancellation reason (Cancelled by the payer, Payer left the checkout, Checkout timed out: …).
updatedAtstringWhen the status last changed (ISO 8601, UTC).
orderIdstringYour orderId.
userIdstringYour userId.
utrNumberstring | nullThe payer's UTR (bank reference), once they've submitted it.

This is the same object a webhook sends.

Errors #

HTTPmessage
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