NICEPAY API
...
API Version 2 (V2)
Payout (Disbursement) API
Inquiry - API Payout (Disbursement)
7min
about payout (disbursement) inquiry this {{api}} uses by {{merchant}} s to check {{the}} {{status}} of {{payout}} {{transaction}} s with {{transaction}} {{status}} success, fail, and others api payout (disbursement) inquiry api endpoint /nicepay/api/direct/v2/inquirypayout request method post post header content type application/json merchant token sha256 (timestamp + imid + txid+ accountno + merchantkey) request json for payout inquiry parameter type size description example / notes timestamp required required n 14 {{api}} request date 20221219085959 txid required required an 30 transaction id ionpaytest07202212191238107952 imid required required an 10 {{merchant}} id ionpaytest accountno required required n 20 beneficiary account number 5345000060 merchanttoken required required an 255 {{merchant}} token 9fd6e4088eb01d9ff93c9f5799bd3e6995f66990793e0e67ac0f651bc2a6fa78 response json for payout inquiry parameter type size description example / notes resultcd n 4 result code docid 2r5sr3xvppu1eju1nitg 0000 resultmsg an 255 result message error code docid 4 fpewlvczfhcvygxwck9 success txid an 30 transaction id (key from {{merchant}} ) ionpaytest07202212191238107952 imid an 10 {{merchant}} id ionpaytest accountno n 20 beneficiary account number 5345000060 amt n 12 {{payout}} amount 10000 beneftype n 2 beneficiary type 1 personal 2 company 3 government 1 bankcd a 4 bank code docid\ qbeq29lj53z vbvxtvb7l bdin referenceno ans 20 {{merchant}} order number (key from {{merchant}} ) ord12345 status n 1 transaction status 0 approved 3 request 4 cancel 8 timeout 9 failed 5 reject before approved 0 reqdt n 8 transaction request date ( yyyymmdd ) 20221219 reqtm n 6 transaction request time ( hh24miss ) 123810 transdt n 8 transaction date ( yyyymmdd ) 20221219 transtm n 6 transaction time ( hh24miss ) 124824 benefstatus n 2 beneficiary status 1 wni 2 wna 1 benefid an 100 beneficiary id null benefnm an 40 beneficiary name pt ionpay networks json sample for payout inquiry json request { "imid" "ionpaytest", "timestamp" "20221219085959", "merchanttoken" "9fd6e4088eb01d9ff93c9f5799bd3e6995f66990793e0e67ac0f651bc2a6fa78", "accountno" "5345000060", "txid" "ionpaytest07202212191238107952" } json response { "reqtm" "123810", "resultcd" "0000", "transtm" "124824", "referenceno" "ord12345", "txid" "ionpaytest07202212191238107952", "amt" "10000", "benefstatus" "1", "resultmsg" "success", "imid" "ionpaytest", "benefnm" "pt ionpay networks", "beneftype" "1", "accountno" "5345000060", "bankcd" "bdin", "reqdt" "20221219", "transdt" "20221219", "benefid" null, "status" "0" } java request hashmap\<string, object> requestmap = new hashmap\<string, object>(); requestmap put("timestamp", "20221219085959"); requestmap put("imid", "ionpaytest"); requestmap put("accountno", "5345000060"); requestmap put("merchanttoken", "9fd6e4088eb01d9ff93c9f5799bd3e6995f66990793e0e67ac0f651bc2a6fa78"); requestmap put("txid", "ionpaytest07202212191238107952"); //nicepay api domain string mydomain = "https //www nicepay co id"; //response json string string resultdata = ""; try { objectmapper mapper = new objectmapper(); string contents = mapper writevalueasstring(requestmap); url url = new url(mydomain + "/nicepay/direct/v2/inquirypayout"); 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(); } }