RRoyal Pay API docs
Menu

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 URLhttps://api.royalpe.site
Checkouthttps://pay.royalpe.site/gateway/…, a link you get for each pay-in
FormatJSON over HTTPS. Amounts are in rupees (INR), up to 2 decimals.
TimesISO 8601, UTC (for example 2026-11-30T10:15:00.000Z)

How a pay-in works #

  1. Create the pay-in from your server: POST /merchant/initial-payment. You get a paymentUrl and a transactionId.
  2. Redirect your user to paymentUrl. The checkout shows a UPI QR, the UPI ID, app buttons, or bank details.
  3. The user pays in their UPI app and uploads the payment screenshot. Royal Pay reads the UTR from it.
  4. Royal Pay verifies the payment and sends your webhookUrl the result: approved, rejected or cancelled. See Webhooks.
  5. You credit the user once, on approved. When you're unsure, ask GET /merchant/transaction-status.

Quick start #

cURL
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"
  }'
Response
{
  "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 #

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.