NICEPAY API
...
API Virtual Account
Cancel - API Virtual Account
13 min
about api virtual account cancel this uses by s to integrate cancel for s transaction cancellation happens from either side or if changes their mind after ing with and requests cancellation from before ing with if there is a technical or non technical issue when es 's s can use this so that issue can't be used anymore s can only canceled before being paid before is executed if has ed with , paid bill can't be canceled or refunded to through api virtual account cancel the cancel is used for cancel on 190,552,117 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type payment methods available for cancel code paymethod 01 02 virtual account virtual account 03 04 05 06 08 09 request parameters for virtual account cancel the following is a list of s for activating cancel on these s are used via platform 156,71,69,168,295 true unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type response parameters for virtual account cancel the following is a response from request results for cancel 183,54,81,253,168 true unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type response parameter for virtual account cancel json request { "timestamp" "20220623100659", "imid" "normaltest", "txid" "normaltest02202212150941111979", "paymethod" "02", "merchanttoken" "94acd9768557df77de675b7b97658d6a743cc0675f4eb681c871c4e1b56c0b0f", "amt" "10000", "canceltype" "1", "cancelmsg" "testing cancel of virtual account", "canceluserid" "", "canceluserip" "127 0 0 1", "cancelserverip" "127 0 0 1", "canceluserinfo" "", "cancelretrycnt" "", "worker" "" } json response { "txid" "normaltest02202212150941111979", "referenceno" "", "resultcd" "0000", "resultmsg" "success", "transdt" "20221215", "transtm" "094111", "description" "testing cancel of virtual account", "amt" "10000" } java request //virtual account cancel// nicepay settimestamp("20220623100659"); nicepay settxid("normaltest02202212150941111979"); nicepay setimid("normaltest"); nicepay setpaymethod("02"); nicepay setmerchanttoken(nicepay maketoken(nicepay getmerchanttoken()); nicepay setamt("10000"); nicepay setcanceltype("1"); nicepay setcancelmsg("testing cancel of virtual account"); nicepay setcanceluserip("127 0 0 1"); nicepay setcancelserverip("127 0 0 1"); //request virtual account cancel nicepay vacancel(); // response string // system out println("final response string " + nicepay getresponsestring()); string resultcd = nicepay get("resultcd"); string resultmsg = nicepay get("resultmsg"); string txid = nicepay get("txid"); string referenceno = nicepay get("referenceno"); string description = nicepay get("description"); string amt = nicepay get("amt"); string transdt = nicepay get("transdt"); string transtm = nicepay get("transtm");