NICEPAY API
...
Payout (Disbursement) API
Reject - API Payout (Disbursement)
7 min
about reject payout (disbursement) this {{api}} uses by {{merchant}} to reject {{the}} registered {{payout}} {{transaction}} on docid\ n5gqghicwz p jmbdkzmi api reject (disbursement) payout api endpoint /nicepay/api/direct/v2/rejectpayout request method post post header content type application/json merchant token sha256 (timestamp + merchant id + transaction id + merchant key) request parameter for payout reject parameter type size description example / notes imid required required an 10 {{merchant}} id ionpaytest timestamp required required n 14 {{api}} request date 20221221131217 merchanttoken required required an 64 {{merchant}} token a2c7fcd58e2106af575554677fda83a103c994e6d385df934523031f212f448d txid required required an 30 transaction id ionpaytest07202212211309324833 response parameter for payout reject parameter type size description example / notes resultcd n 4 docid 2r5sr3xvppu1eju1nitg 0000 resultmsg an 14 result message docid 4 fpewlvczfhcvygxwck9 success txid an 30 transaction id ionpaytest07202212211309324833 imid n 10 {{merchant}} id ionpaytest referenceno ans 40 {{merchant}} order number (key from merchant) ord12345 benefnm an 40 beneficiary name pt ionpay networks transdt n 8 transaction date null transtm n 6 transaction time null accountno n 20 beneficiary account number 5345000060 amt n 12 amount 10000 bankcd a 4 docid\ qbeq29lj53z vbvxtvb7l bdin json sample for payout reject json request { 	"timestamp" "20221221131217", "imid" "ionpaytest", 	"merchanttoken" "a2c7fcd58e2106af575554677fda83a103c994e6d385df934523031f212f448d", 	"txid" "ionpaytest07202212211309324833" } json response { "resultcd" "0000", "transtm" null, "referenceno" "ord12345", "txid" "ionpaytest07202212211309324833", "amt" "10000", "resultmsg" "success", "imid" "ionpaytest", "benefnm" "pt ionpay networks", "accountno" "5345000060", "bankcd" "bdin", "transdt" null } java request // // reject hashmap\<string, object> requestmap = new hashmap\<string, object>(); requestmap put("timestamp", "20221221131217"); requestmap put("imid", "ionpaytest"); requestmap put("merchanttoken",nicepay getmerchanttoken()); requestmap put("txid", "ionpaytest07202212211309324833"); //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/rejectpayout"); 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(); } }