NICEPAY API
...
Payout (Disbursement) API
Check Balance - API Payout (Disbursement)
8 min
about check balance api payout (disbursement) this {{api}} used to check {{the}} {{payout}} total {{balance}} on our {{system}} if your {{payout}} {{balance}} is insufficient, please {{proceed}} with {{the}} fund deposit firsthand on your {{payout}} {{balance}} {{please}} check {{the}} docid\ b3gbwzifvfxav30llqfqp {{page}} to view further related {{information}} api check balance inquiry payout (disbursement) api endpoint /nicepay/api/direct/v2/balanceinquiry request method application/json application/json post post header content type application/json merchant token sha256 (timestamp + merchant id + merchant key) request parameter for payout check balance parameter type size description example / notes imid required required an 10 {{merchant}} id ionpaytest timestamp required required n 14 {{api}} request date 20221219235959 merchanttoken required required an 64 {{merchant}} token 86e63619e2f4187e720840aea9d025fdf2d605c78d0becf9d6679acd63da9440 response parameter for payout check balance parameter type size description example / notes resultcd n 4 docid 2r5sr3xvppu1eju1nitg 0000 resultmsg an 14 result message docid 4 fpewlvczfhcvygxwck9 success balance n 20 balance information 8549359050 scheduled n 20 {{settlement}} amount to be transferred to {{the}} seller {{balance}} 0 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(); }