Royal Pay API
Royal Pay takes deposits from your users through a hosted checkout. You create a pay-in from your server, send the user to the checkout link, and Royal Pay tells your server the result by webhook.
| API base URL | https://api.royalpe.site |
| Checkout | https://pay.royalpe.site/gateway/…, a link you get for each pay-in |
| Format | JSON over HTTPS. Amounts are in rupees (INR), up to 2 decimals. |
| Times | ISO 8601, UTC (for example 2026-11-30T10:15:00.000Z) |
How a pay-in works #
- Create the pay-in from your server:
POST /merchant/initial-payment. You get apaymentUrland atransactionId. - Redirect your user to
paymentUrl. The checkout shows a UPI QR, the UPI ID, app buttons, or bank details. - The user pays in their UPI app and uploads the payment screenshot. Royal Pay reads the UTR from it.
- Royal Pay verifies the payment and sends your
webhookUrlthe result:approved,rejectedorcancelled. See Webhooks. - You credit the user once, on
approved. When you're unsure, askGET /merchant/transaction-status.
Quick start #
curl -X POST https://api.royalpe.site/merchant/initial-payment \
-H "Content-Type: application/json" \
-d '{
"accessKey": "YOUR_ACCESS_KEY",
"secretKey": "YOUR_SECRET_KEY",
"amount": 500,
"orderId": "ORDER-10045",
"userId": "USER-881",
"webhookUrl": "https://shop.example.com/royalpay/webhook",
"redirectUrl": "https://shop.example.com/deposit/done"
}'{
"success": true,
"message": "Payment URL generated successfully",
"data": {
"paymentUrl": "https://pay.royalpe.site/gateway/Xq3v9KfP2mZt7LbR8sWn4cYd1HgJ6aEu0oTi5kNp",
"orderId": "ORDER-10045",
"transactionId": "RP-7f3a9c21d84e5b02",
"amount": 500,
"status": "progress",
"userId": "USER-881"
}
}Pages #
- Authentication: your access key, secret key and webhook signing key.
- Create a pay-in, Pay-in status, Submit a UTR.
- Webhooks: payload, signature check, retries.
- Hosted checkout: what your user sees, the secure session, cancellation.
- Statuses, Errors, Payouts, Going live, Changelog.
For AI agents #
These docs are plain HTML that reads without JavaScript. Every page is also available as Markdown: add .md to its address, or send Accept: text/markdown.
/llms.txt: an index of every page./llms-full.txt: all the docs in one Markdown file./openapi.json: the API as OpenAPI 3.1.