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 #
| Parameter | Required | Description |
|---|---|---|
accessKey | yes | Your access key. |
secretKey | yes | Your secret key. |
transactionId | yes | The transactionId from Create a pay-in. |
curl "https://api.royalpe.site/merchant/transaction-status?accessKey=YOUR_ACCESS_KEY&secretKey=YOUR_SECRET_KEY&transactionId=RP-7f3a9c21d84e5b02"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();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 #
{
"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"
}
}| Field | Type | Description |
|---|---|---|
transactionId | string | Royal Pay's ID for the pay-in. |
status | string | progress, pending, approved, rejected or cancelled. See Statuses. |
amount | number | Amount in rupees. |
remarks | string | null | Why it ended this way: Payment successful, the rejection reason, or the cancellation reason (Cancelled by the payer, Payer left the checkout, Checkout timed out: …). |
updatedAt | string | When the status last changed (ISO 8601, UTC). |
orderId | string | Your orderId. |
userId | string | Your userId. |
utrNumber | string | null | The payer's UTR (bank reference), once they've submitted it. |
This is the same object a webhook sends.
Errors #
| HTTP | message |
|---|---|
| 400 | Access key is required, Secret key is required, transactionId is required |
| 401 | Invalid access key or secret key |
| 403 | Transaction does not belong to this merchant |
| 404 | Transaction not found |