NICEPAY API
...
Payout API (Disbursement)
Cancel - API Payout (Disbursement)
7 min
tentang cancel payout (disbursement) {{api}} untuk membatalkan {{transaksi}} {{payout}} {{yang}} sudah disetujui, akan tetapi sesaat sebelum {{proses}} {{disbursement}} berjalan api cancel payout (disbursement) 202,542,117 false false 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 json for payout (disbursement) cancel 167,97,86,186,186,220 false 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 json for payout (disbursement) cancel 144,73,89,207,207,241 false 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 json sample for payout (disbursement) cancel json request { "timestamp" "20221219235959", "imid" "ionpaytest", "merchanttoken" "bae24edba7badd731c4bca1acd0609377581cd91a47d18d3c24a3c47256161e8", "txid" "ionpaytest07202212191748188703" } json response { "resultcd" "0000", "benefnm" "pt ionpay networks", "transtm" null, "referenceno" "ord12345", "accountno" "5345000060", "bankcd" "bdin", "txid" "ionpaytest07202212191748188703", "amt" "10000", "transdt" null, "resultmsg" "success", "imid" "ionpaytest" } java request // cancel payout hashmap\<string, object> requestmap = new hashmap\<string, object>(); requestmap put("timestamp", "20221219235959"); requestmap put("imid", "ionpaytest"); requestmap put("merchanttoken",nicepay getmerchanttoken()); requestmap put("txid", "ionpaytest07202212191748188703"); //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/cancelpayout"); 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(); } }