Create Withdrawal Order (Nepal)
API for creating Nepalese Rupee (NPR) withdrawal orders, supporting Nepal bank accounts and e-wallet accounts. The beneficiary mobile number is required.
Request Information
- Request URL:
/gateway/api/v2/payouts - Method:
POST - Content-Type:
application/json;charset=utf-8
Request Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| platform_id | Yes | String(6) | Merchant ID |
| service_id | Yes | String(7) | Service ID, fixed value SVC0004 |
| payout_cl_id | Yes | String(64) | Merchant Order ID |
| amount | Yes | Integer(10) | Amount (in paisa) |
| notify_url | No | String(256) | Callback URL for transaction results |
| bank_name | Yes | String(45) | Bank / e-wallet code, or the English name (case-insensitive), see Bank List |
| name | Yes | String(64) | Beneficiary name |
| number | Yes | String(64) | Beneficiary account number, 12-20 digits |
| phone_number | Yes | String(11) | Beneficiary mobile number, 10 digits starting with 9, e.g. 9801234567 (without country code) |
| currency | Yes | String(3) | Fixed value: npr |
| request_time | Yes | Integer(10) | Request time (seconds) |
| sign_type | No | String(16) | Signature type, fixed value HMAC-SHA256 |
| sign | Yes | String(32|64) | Order Signature |
Service ID
SVC0004Bank Card Payout
Response Example
{
"error_code": "0000",
"data": { "payout_id": "POT00000001" }
}
Remarks
Important
In case of a timeout or HTTP 500 error, rely on the order query interface for the status; do not treat it as a failed order.
- Transaction amount is in Nepalese Rupee (paisa), please multiply by 100 before sending
bank_namemust be a code or English name listed in the Nepal Bank List (e-wallets included)numberformat: 12-20 digits; spaces or-separators are allowed and will be stripped; no other charactersphone_numberis required: a 10-digit Nepal mobile number starting with 9 (without country code), e.g.9801234567; a missing or malformed value is rejected at order creation- If the beneficiary details fail validation, the error is returned at creation time and no order is created:
0002(Invalid request parameters) whenbank_nameis missing,nameis empty,numberis empty, orphone_numberis missing or malformed;0065(Invalid card number) whennumbercontains disallowed characters or is not 12-20 digits;0012(Bank not found) whenbank_nameis not in the bank list - "0000" only means the API call succeeded; call the query interface to confirm the result