NICEPAY API
...
Virtual Account - Advance API
NICEPAY Inquiry Virtual Account
23 min
about api nicepay inquiry virtual account bulk uses for nicepay inquiry virtual account type in this , s maintain data so, every from a , requires data inquiry to also included for confirmation, makes a request to nicepay inquiry virtual account flow inquiry process nicepay to merchant this aims to find out details of bill after gets an inquiry request from will call to get detailed data then, data will be stored in internal history of and sent to using inquiry response format api url https // < merchant url for inquiry > request method post (body raw json) post (body raw json) merchant token request format inquiry request parameter the following is a list of s to inquiry to from executed on 's nicepay inquiry virtual account type this uses through platform as one of stages so that 's can connect with s from parameter type size description example / notes customerid n 9 id 891011101 merchanttoken an 255 sha256 ( merchant id + customer id + merchant key ) 141fd2368aa80ea0e600b1b4d7a42c1e731e74a27a03521e8e28150cc00bc05b prefix n 7 prefix number 7015102 bankcd an 4 docid\ qbeq29lj53z vbvxtvb7l "cena inquiry response parameter following are response s from results of request s for to inquiry process parameter type size description example / notes billingnm n 100 name john doe goodsnm an 100 goods/item name testing buying referenceno n 40 reference number for ordno20221130101148 amt an 12 total bill amount 5000 normal amount only resultcd n 4 docid 2r5sr3xvppu1eju1nitg of inquiry status 0000 resultmsg an 255 result message for docid 2r5sr3xvppu1eju1nitg success sample json inquiry process nicepay to merchant json request { "customerid" "891011101", "merchanttoken" "141fd2368aa80ea0e600b1b4d7a42c1e731e74a27a03521e8e28150cc00bc05b", "prefix" "7015102", "bankcd" "cena" } json response { "resultcd" "0000", "resultmsg" "success", "billingnm" "john doe", "goodsnm" "testing buying", "referenceno" "ordno20221130101148", "amt" "5000" } java request //inquiry to merchant// nicepay setcustomerid("123456"); nicepay setprefix("000001"); nicepay setbankcd("cena"); nicepay setmerchanttoken(nicepay maketoken(nicepay getcustomerid()); //request inquiry// nicepay inquiry(); //response inquiry// string resultcd = nicepay get("resultcd"); string resultmsg = nicepay get("resultmsg"); string billingnm = nicepay get("billingnm"); string referenceno = nicepay get("referenceno"); string goodsnm = nicepay get("goodsnm"); string amt = nicepay get("amt"); payment process nicepay to merchant payment process nicepay to merchant is stage to continue made by when makes a request to using a number, will call url to the determines response to accept or reject s from s api end point https // < url for > method post (body raw json) post (body raw json) payment request parameter the following is a list of s for nicepay to merchant payment process from s made on 's nicepay inquiry virtual account type this is used through platform as one of stages so that 's can be connected to s from parameter type size description example / notes customerid n 9 id 110000001 merchanttoken an 255 sha256 ( merchant id + customer id + amt + merchant key ) 141fd2368aa80ea0e600b1b4d7a42c1e731e74a27a03521e8e28150cc00bc05b referenceno an 40 reference number from inquiry ordno202210102323223 prefix n 7 prefix number 7015102 bankcd an 4 docid\ qbeq29lj53z vbvxtvb7l cena amt n 12 total bill amount 10000 txid an 30 transaction id from normaltest02202211301010513135 payment response parameter following are response s from results of request s for nicepay to merchant payment process parameter type size description example / notes billingnm n 100 name john doe goodsnm an 255 goods/item name testing buying referenceno n 7 reference number for ordno2022113010114 amt an 4 total bill amount normal amount only resultcd 4 docid 2r5sr3xvppu1eju1nitg of inquiry status 0000 resultmsg an 255 result message for docid 2r5sr3xvppu1eju1nitg success sample json payment process nicepay to merchant json request { "customerid" "110000001", "merchanttoken" "141fd2368aa80ea0e600b1b4d7a42c1e731e74a27a03521e8e28150cc00bc05b", "referenceno" "ordno202210102323223", "prefix" "7015102", "bankcd" "cena", "amt" "10000", "txid" "normaltest02202211301010513135" } json response { "resultcd" "0000", "resultmsg" "success", "billingnm" "john doe", "goodsnm" "testing buying", "referenceno" "ordno20221130101148", "amt" "10000" } java request { 	merchanttoken=b360a7dfd4e004e63a161d7298a006ac7900add126b8e19375c4a594ab2e806e, 	vaccttype=1, 	referenceno=2211jd1x7tx5, 	prefix=70015267, 	proxyurl=http //172 30 51 31 8080/nicepay proxy/api/bulkpayment do, 	customerid=60028392, 	bankcd=bmri, 	txid=oyindon00402202211160002385044, 	amt=150000, 	targeturl=https //payfeedback oyindonesia com/nicepay/va/bulk/payment } reversal process nicepay to merchant reversal process nicepay to merchant is a refund that occurs caused of an issue happen from internal in this , will continue receive from to api end point https // < url for reversal> method post (body raw json) post (body raw json) process flow reversal request parameter the following is a list of s for performing nicepay to merchant reversal process from s made to nicepay inquiry virtual account type this is used through platform as one of stages so that 's can connect with s from parameter type size description example / notes customerid n 9 id 110000001 merchanttoken an 255 sha256 ( merchant id + customer id + amt + merchant key ) 141fd2368aa80ea0e600b1b4d7a42c1e731e74a27a03521e8e28150cc00bc05b referenceno an 40 reference number from inquiry ordno202210102323223 prefix n 7 prefix number 7015102 bankcd an 4 docid\ qbeq29lj53z vbvxtvb7l cena amt n 12 total bill amount 10000 txid an 30 transaction id from normaltest02202211301010513135 reversal response parameter following are response s from results of request s for nicepay to merchant reversal process parameter type size description example / notes billingnm n 100 name john doe topup mount only goodsnm an 100 goods/item name testing reversal transaction topup amount only referenceno n 40 reference number for ordno202210102323223 amt an 12 total bill amount 50000 resultcd 34 result code of inquiry status docid 2r5sr3xvppu1eju1nitg 0000 resultmsg 255 result message for docid 2r5sr3xvppu1eju1nitg success sample json reversal process nicepay to merchant json request { "customerid" "110000001", "merchanttoken" "141fd2368aa80ea0e600b1b4d7a42c1e731e74a27a03521e8e28150cc00bc05b", "referenceno" "ordno202210102323223", "prefix" "7015102", "bankcd" "cena", "amt" "10000", "txid" "normaltest02202211301010513135" } json response { "resultcd" "0000", "resultmsg" "success", "billingnm" "john doe", "referenceno" "ordno202210102323223", "goodsnm" "testing reversal transaction", "amt" "50000" } java request //reversal to merchant// nicepay setcustomerid("123456"); nicepay settxid("normaltest02202211301010513135"); nicepay setbankcd("cena"); nicepay setprefix("7015102"); nicepay setamt("10000"); nicepay setreferenceno("ordno202210102323223"); nicepay setmerchanttoken(nicepay maketoken(nicepay getcustomerid()); //request reversal// nicepay reversal(); //response reversal// string resultcd = nicepay get("resultcd"); string resultmsg = nicepay get("resultmsg"); string billingnm = nicepay get("billingnm"); string goodsnm = nicepay get("goodsnm"); string referenceno = nicepay get("referenceno"); string amt = nicepay get("amt"); see also docid 7thqvphz6emwezw5 d4an to find out to check inquiry specific for docid\ nosop1r8knfg81vmkxsc to find out to cancel specific for docid\ itcm3ihd d5tjo3i0zjen to find out to check inquiry on specific for docid\ ijkwakzulovgqblditk d to find out to cancel on specific for