RRoyal Pay API docs
Menu

6. Manual UTR upload

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

Submit a UTR (Unique Transaction Reference) from a bank payment for verification of a pay-in. Use it when the customer gives you the UTR, for example through your support team, instead of uploading proof at the checkout.

Request body #

JSON
{
  "accessKey": "merchant_abc123",
  "secretKey": "secret_xyz456",
  "transactionId": "RP-7f3a9c21d84e5b02",
  "utrNumber": "531512345678"
}
FieldTypeRequiredDescription
accessKeystringYesMerchant access key
secretKeystringYesMerchant secret key
transactionIdstringYesPayment transaction ID
utrNumberstringYesBank transaction reference, as the customer'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"}'

Success response #

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

Successful submission changes the payment status to pending for verification, and sends a pending webhook. The result follows as approved or rejected. Sending the same UTR again changes nothing; a different UTR restarts verification.

Error responses #

Error
{ "success": false, "message": "Invalid access key or secret key" }
HTTP codeMessage
401Invalid access key or secret key
404Transaction not found
403Transaction does not belong to this merchant
400This payment is already accepted
400A payment has already been accepted with this UTR number
400Invalid UTR number, utrNumber is required, transactionId is required
409Payment cannot be submitted in this state (the pay-in is rejected or cancelled)