# 6. Manual UTR upload

`POST https://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 title="JSON"
{
  "accessKey": "merchant_abc123",
  "secretKey": "secret_xyz456",
  "transactionId": "RP-7f3a9c21d84e5b02",
  "utrNumber": "531512345678"
}
```

| Field | Type | Required | Description |
|---|---|---|---|
| `accessKey` | string | Yes | Merchant access key |
| `secretKey` | string | Yes | Merchant secret key |
| `transactionId` | string | Yes | Payment transaction ID |
| `utrNumber` | string | Yes | Bank transaction reference, as the customer's app shows it (usually 12 digits; up to 128 characters) |

```bash title="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

```json title="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

```json title="Error"
{ "success": false, "message": "Invalid access key or secret key" }
```

| HTTP code | Message |
|---|---|
| 401 | `Invalid access key or secret key` |
| 404 | `Transaction not found` |
| 403 | `Transaction does not belong to this merchant` |
| 400 | `This payment is already accepted` |
| 400 | `A payment has already been accepted with this UTR number` |
| 400 | `Invalid UTR number`, `utrNumber is required`, `transactionId is required` |
| 409 | `Payment cannot be submitted in this state` (the pay-in is `rejected` or `cancelled`) |

---

Source: https://docs.royalpe.site/payin/manual-utr-upload · All docs: https://docs.royalpe.site/llms-full.txt · Updated 2026-11-30
