NICEPAY API
...
API Convenience Store
Cancel - API Convenience Store
14 min
about api convenience store cancel this uses by s to integrate cancel for 's used by 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 number issue can't be used anymore number can only canceled before being paid before is executed if has ed with , paid bill can't be canceled or refunded to through api convenience store cancel the cancel uses for cancel for s through api end point /nicepay/direct/v2/cancel request method post post header content type application/json merchant token sha256( timestamp + imid + txid + amt + merchantkey ) request format application/json payment methods available for cancel code paymethod 01 02 03 convenience store convenience store 04 05 06 08 09 request parameters for convenience store cancel the following is a list of s for activating cancel for these s use via platform parameter type size description example / notes timestamp required required n 14 request timestamp 20221212101278 txid required required an 30 transaction id ionpaytest03202212121030529316 imid required required an 10 id ionpaytest paymethod required required n 2 docid\ ek 0djw7nuhytcda4sa3p 03 canceltype required required n 2 docid\ ly9czdrbjtw3rjv3l7r6v 1 cancelmsg an 255 cancel message request cancel merchanttoken required required an 255 token 49974dde3c4a311030bd2095431443ce3689d79c90caaa88f4186050abb77cf9 amt required required n 12 amount 10000 preauthtoken an 100 pre auth token response parameters for convenience store cancel following are response s from results of request s for of ancel parameter type size description example / notes resultcd n 4 docid 2r5sr3xvppu1eju1nitg https //app archbee com/docs/36sm2oxriwwbi9inlqmtp/wpcemazro xvnxz 1zaib 0000 resultmsg an 255 result message docid 4 fpewlvczfhcvygxwck9 success txid an 30 transaction id ionpaytest03202212121030529316 referenceno ans 40 order number 815123412341 transdt n 8 transaction date 20221212 transtm n 6 transaction time 103052 description an 255 description test cancel amt n 12 amount 10000 response parameter for convenience store cancel json request { 	"timestamp" "20221212101278", 	"txid" "ionpaytest03202212121030529316", 	"imid" "ionpaytest", 	"paymethod" "03", 	"canceltype" "1", 	"cancelmsg" "request cancel", 	"merchanttoken" "49974dde3c4a311030bd2095431443ce3689d79c90caaa88f4186050abb77cf9", 	"preauthtoken" "", 	"amt" "10000" } json response { "txid" "ionpaytest03202212121030529316", "referenceno" "815123412341", "resultcd" "0000", "resultmsg" "success", "transdt" "20221212", "transtm" "103052", "description" "test cancel", "amt" "10000" } java request //cancel registration// nicepay settimestamp("20221208091279"); nicepay setimid("ionpaytest"); nicepay setamt("5"); nicepay setmerchanttoken(nicepay maketoken(nicepay getmerchanttoken()); nicepay settxid("ionpaytest08202212080951090538"); nicepay setpaymethod("03"); nicepay setcanceltype("1"); nicepay setcancelmsg("request cancel"); // request cancel nicepay cancel(); // 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 amt = nicepay get("amt"); string cancelreferenceno = nicepay get("cancelreferenceno");