NICEPAY API
...
Payout (Disbursement) API
Approve - API Payout (Disbursement)
8 min
about api payout approve the approval aims to request your confirmation related to request for a transfer of funds along with details of beneficiary this uses to confirm request from docid\ n5gqghicwz p jmbdkzmi api payout approve 201,541,117 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type request parameter api payout approve 142,86,68,212,213,210 true unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type response parameter api payout approve if ever got a timeout during approve to , hopefully doesn't treat as success or failed, but suspect because fund deduction already s on this transactions that are considered suspect will still be ed, and only need extra time after finishes, will get that final from registered callback url to 174,86,96,171,171,168 true unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type sample json for payout approve json request { 	"timestamp" "20221219085959", 	"imid" "ionpaytest", 	"merchanttoken" "9f33948e1ce99b6f42c2a223234ec50ff1bc450c78a16885227c57fae4f4ff80", 	"txid" "ionpaytest07202212191238107952" } json response { 	"resultcd" "0000", 	"resultmsg" "success", 	"txid" "ionpaytest07202212191238107952", 	"referenceno" "ordno 20230504110578", 	"imid" "ionpaytest", 	"benefnm" "pt ionpay networks", 	"accountno" "5345000060", 	"bankcd" "bdin", 	"amt" "100000", 	"transdt" null, 	"transtm" null, 	"validdate" "20230505", //only for cashout 	"validtime" "110217", //only for cashout 	"cashouttoken" "0030456405", //only for cashout 	"mcode" "nicepay cashout test" //only for cashout } java request // approve payout hashmap\<string, object> requestmap = new hashmap\<string, object>(); requestmap put("timestamp", "20221221131217"); requestmap put("imid", "ionpaytest"); requestmap put("merchanttoken",nicepay getmerchanttoken()); requestmap put("txid", "ionpaytest07202212211309324833"); //nicepay api domain string mydomain = "https //dev nicepay co id"; //response json string string resultdata = ""; try { objectmapper mapper = new objectmapper(); string contents = mapper writevalueasstring(requestmap); url url = new url(mydomain + "/nicepay/api/direct/v2/rejectpayout"); urlconnection conn = url openconnection(); conn setdooutput(true); conn setusecaches(false); conn setrequestproperty("content type", "application/json"); dataoutputstream os = null; try { os = new dataoutputstream(conn getoutputstream()); os writebytes(contents); os flush(); } finally { if (out != null) os close(); } }