NICEPAY API
...
Payout (Disbursement) API
Check Balance - API Payout (Disbursement)
8 min
about check balance api payout (disbursement) this used to check total on our if your is insufficient, please with fund deposit firsthand on your check docid\ b3gbwzifvfxav30llqfqp to view further related 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 id ionpaytest timestamp required required n 14 request date 20221219235959 merchanttoken required required an 64 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 amount to be transferred to seller 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(); }