# Payouts

> **Enabled on request.** Payouts are switched on per merchant, for requests from server IP addresses you register with Royal Pay. Until then these endpoints answer `403`. Ask your Royal Pay contact to enable them.

Payout endpoints take your keys as **headers**, `accessKey` and `secretKey`, and answer with `status` (not `success`) in the envelope.

## Create a payout

`POST https://api.royalpe.site/payout/merchant/api/generate-payout`

| Field | Type | Required | Description |
|---|---|---|---|
| `amount` | number | yes | Rupees, at least `1000`. |
| `accountNumber` | string | yes | 9 to 18 digits. |
| `accountHolderName` | string | yes | 2 to 100 letters, spaces and dots. |
| `ifscCode` | string | yes | IFSC, for example `HDFC0001234`. |
| `orderId` | string | yes | Your unique ID. The same `orderId` with the same details returns the same payout. With different details: `409`. |
| `remarks` | string | no | Up to 200 characters. |
| `callbackUrl` | string | no | HTTPS address, kept with the payout. |

```bash title="cURL"
curl -X POST https://api.royalpe.site/payout/merchant/api/generate-payout \
  -H "Content-Type: application/json" \
  -H "accessKey: YOUR_ACCESS_KEY" -H "secretKey: YOUR_SECRET_KEY" \
  -d '{"amount":1500,"accountNumber":"000123456789","accountHolderName":"Asha Verma","ifscCode":"HDFC0001234","orderId":"PO-2291","remarks":"Withdrawal"}'
```

```json title="201"
{
  "status": true,
  "message": "Payout request generated successfully",
  "data": { "orderId": "PO-2291", "transactionId": "PO-1a2b3c4d5e6f7a8b", "amount": 1500, "status": "processing" }
}
```

The amount is reserved from your available balance at once. Royal Pay's team completes the transfer.

## Payout status

`GET https://api.royalpe.site/payout/merchant/api/payout-status?transactionId=PO-1a2b3c4d5e6f7a8b` (or `?orderId=PO-2291`), with the key headers.

```json title="200"
{
  "status": true,
  "message": "Payout transaction status retrieved successfully",
  "data": { "transactionId": "PO-1a2b3c4d5e6f7a8b", "orderId": "PO-2291", "amount": 1500, "status": "processing", "remarks": "Withdrawal", "utr": "" }
}
```

`utr` is filled in once the transfer is made. Payout webhooks are **not** sent yet, so check the payout status to follow a payout.

## Errors

| HTTP | `message` |
|---|---|
| 400 | `orderId is required`, `Minimum payout amount is 1000`, `Invalid beneficiary details`, `Invalid remarks`, `Insufficient balance for this payout`, `No payout approver assigned to this merchant`, `transactionId or orderId is required` |
| 401 | `Access key and secret key are required`, `Invalid access key or secret key` |
| 403 | Payouts not enabled for this server address. |
| 404 | `Payout transaction not found` |
| 409 | `Order ID already used with different details` |

---

Source: https://docs.royalpe.site/payouts · All docs: https://docs.royalpe.site/llms-full.txt · Updated 2026-11-30
