NICEPAY API
...
Payout API (Disbursement)
Check Balance - API Payout (Disbursement)
8 min
tentang check balance api payout (disbursement) ini digunakan untuk memeriksa jumlah ada di dalam kami apabila tidak cukup, silakan lakukan deposit dana terlebih dahulu pada balance kunjungi docid\ vdidxx3ugz0y1dgvucmgp untuk melihat rincian terkait api check balance inquiry payout (disbursement) 199,543,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 for payout check balance 155,84,99,123,268,234,100 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 response parameter for payout check balance 118,63,76,178,304,204 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 sample json for payout check balance json request { "timestamp" "20221219235959", "imid" "ionpaytest", "merchanttoken" "86e63619e2f4187e720840aea9d025fdf2d605c78d0becf9d6679acd63da9440", } json response { "resultcd" "0000", "balance" "8549359050", "scheduled" "0", "resultmsg" "success" } java request // check balance hashmap\<string, object> requestmap = new hashmap\<string, object>(); requestmap put("timestamp", "20221219235959"); requestmap put("imid", "ionpaytest"); requestmap put("merchanttoken",nicepay getmerchanttoken()); //nicepay api domain string mydomain = "https //dev nicepay co id"; //response json string string resultdata = ""; try { //make json objectmapper mapper = new objectmapper(); string contents = mapper writevalueasstring(requestmap); url url = new url(mydomain + "/nicepay/api/direct/v2/balanceinquiry"); 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(); } inputstreamreader isr = new inputstreamreader(conn getinputstream(), "utf 8"); bufferedreader br = new bufferedreader(isr); string str = ""; resultdata = ""; while ((str = br readline()) != null) { resultdata += str; } br close(); } catch (malformedurlexception e) { system out println("the url address is incorrect "); e printstacktrace(); } catch (exception e) { system out println("it can't connect to the web page "); e printstacktrace(); }