RRoyal Pay API docs
Menu

12. Contract details

The details 777 Pay's documentation leaves open, as Royal Pay defines them.

TopicRoyal Pay
Test environmentNo separate sandbox. Royal Pay gives you a test merchant with its own keys. Its pay-ins use real UPI payments, so test with ₹1 amounts.
Amount unitsRupees (INR) as a JSON number, at most 2 decimals. Pay-in: more than 0. Payout: at least 1000. Your account may also have per-deposit minimums and maximums: Royal Pay tells you yours.
Requested vs returned amountAlways identical. data.amount echoes what you sent.
Create failure response{ "success": false, "message": "…" } with a 4xx or 5xx status. Payouts: { "status": false, "message": "…" }. See Errors.
IdempotencyOn orderId, per merchant, for pay-ins and payouts. Same orderId and same details return the original; different details answer 409 with Order ID already used with different details.
Duplicate order IDsAs above: never two transactions for one orderId.
Rate limitsNone enforced today. Create transactions as needed; poll status at most every 10 seconds per transaction.
API retriesRetry 5xx and network errors with backoff. Creates are safe to retry with the same orderId. Don't retry 4xx.
Webhook signingX-Signature = hex HMAC-SHA256 with your webhook signing key over X-Event-Id + "." + X-Timestamp + "." + raw body. Refuse timestamps more than 5 minutes old.
Webhook acknowledgementAny 2xx within 8 seconds. Redirects aren't followed.
Webhook retriesAfter 10 s, 30 s, 1 min, 5 min, 15 min, 30 min, 1 h, 3 h and 6 h: 10 attempts, about 12 hours, same X-Event-Id.
Time formatsupdatedAt and payout timestamp: ISO 8601 UTC with milliseconds (2026-11-30T10:30:00.000Z). X-Timestamp: Unix seconds.
Redirect after checkoutThe checkout's Return to … link opens your redirectUrl exactly as you sent it. No parameters are added: look up the result by webhook or status.
Payout status namesThe create and status endpoints say processing; the webhook says progress for the same state. Final: completed (unless later reversed), failed, cancelled, rejected, reversed. All arrive by webhook.
Pay-in statusesprogress, pending, approved, rejected, plus cancelled (ended before proof was submitted). All arrive by webhook, progress first.
Currency and precisionINR only, paise precision (2 decimals).
UPI intent modeSwitched on per merchant by Royal Pay. On: pay-ins paid to a UPI ID return isUpiIntent: true and upiIntentUrl. Off, or a bank-transfer pay-in: false, without upiIntentUrl.