RRoyal Pay API docs
Menu

Submit a UTR

POSThttps://api.royalpe.site/merchant/manual-utr-upload

Submits the payer's UTR (the bank reference of their UPI payment) for a pay-in. Use it when your user gives the UTR to you, for example through your support team, instead of uploading it at the checkout. The pay-in moves to pending and is verified like any other.

Request #

FieldTypeRequiredDescription
accessKeystringyesYour access key.
secretKeystringyesYour secret key.
transactionIdstringyesThe pay-in's transactionId.
utrNumberstringyesThe UTR exactly as the payer's app shows it, usually 12 digits. Up to 128 characters.
cURL
curl -X POST https://api.royalpe.site/merchant/manual-utr-upload \
  -H "Content-Type: application/json" \
  -d '{"accessKey":"YOUR_ACCESS_KEY","secretKey":"YOUR_SECRET_KEY","transactionId":"RP-7f3a9c21d84e5b02","utrNumber":"531512345678"}'

Response #

200
{
  "success": true,
  "message": "UTR number updated successfully",
  "data": { "transactionId": "RP-7f3a9c21d84e5b02", "status": "pending" }
}

You'll get a pending webhook, then the result (approved or rejected). Sending the same UTR again for a pending pay-in changes nothing. Sending a different one restarts the check with the new UTR.

Errors #

HTTPmessageMeaning
400This payment is already acceptedThe pay-in is already approved.
400A payment has already been accepted with this UTR numberThat UTR was used for another approved pay-in.
400Invalid UTR numberEmpty, or over 128 characters.
401Invalid access key or secret key
403Transaction does not belong to this merchant
404Transaction not found
409Payment cannot be submitted in this stateThe pay-in is rejected or cancelled. Create a new pay-in.