RRoyal Pay API docs
Menu

Payouts

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

Create a payout #

POSThttps://api.royalpe.site/payout/merchant/api/generate-payout

FieldTypeRequiredDescription
amountnumberyesRupees, at least 1000.
accountNumberstringyes9 to 18 digits.
accountHolderNamestringyes2 to 100 letters, spaces and dots.
ifscCodestringyesIFSC, for example HDFC0001234.
orderIdstringyesYour unique ID. The same orderId with the same details returns the same payout. With different details: 409.
remarksstringnoUp to 200 characters.
callbackUrlstringnoHTTPS address, kept with the payout.
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"}'
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.

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 #

HTTPmessage
400orderId 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
401Access key and secret key are required, Invalid access key or secret key
403Payouts not enabled for this server address.
404Payout transaction not found
409Order ID already used with different details