Cancel - API E-Wallet
13 min
about api e wallet cancel this uses to cancel a that has been paid if cancels before is complete, is considered void and funds will return to api e wallet cancel the cancel uses for cancel for s via api end point /nicepay/direct/v2/cancel request method \<font color="#3b9f0f">post\</font> header content type application/json merchant token sha256( timestamp + imid + txid + amt + merchantkey ) payment methods available for cancel code paymethod 01 02 03 04 05 \<font color="#2166ae">e wallet\</font> 06 08 09 request parameters for e wallet cancel the following is a list of s for requesting of cancel on these s are used via platform parameter type size description example / notes timestamp \<font color="#2166ae">required\</font> n 14 request timestamp \<font color="#2166ae"> \</font> 20180123100505 txid \<font color="#2166ae">required\</font> an 30 transaction id \<font color="#2166ae"> \</font> ionpaytest01202103311759347262 imid \<font color="#2166ae">required\</font> an 10 id \<font color="#2166ae"> \</font> ionpaytest paymethod \<font color="#2166ae">required\</font> n 2 payment method code docid\ ek 0djw7nuhytcda4sa3p \<font color="#2166ae"> \</font> 05 canceltype \<font color="#2166ae">required\</font> n 2 cancel type code docid\ ly9czdrbjtw3rjv3l7r6v \<font color="#2166ae"> \</font> 1 merchanttoken \<font color="#2166ae">required\</font> an 255 token \<font color="#2166ae"> \</font> 66141d60572e570045c4f3e9965f3452d511496841981e8a2af6a24a7038a119 amt \<font color="#2166ae">required\</font> n 12 amount \<font color="#2166ae"> \</font> 10000 cancelmsg an 255 cancel message request cancel cancelserverip an 15 server ip 127 0 0 1 response parameter for e wallet cancel following are response s from results of request s for cancel handling parameter type size description example / notes resultcd n 4 result code docid 2r5sr3xvppu1eju1nitg https //app archbee com/docs/36sm2oxriwwbi9inlqmtp/wpcemazro xvnxz 1zaib 0000 resultmsg an 255 result message error code docid 4 fpewlvczfhcvygxwck9 success txid an 30 transaction id tniceew05105202212121343519502 referenceno ans 40 order number 815123412341 transdt n 8 transaction date 20221212 transtm n 6 transaction time w134351 description an 255 description test cancel amt n 12 amount 1 sample json for e wallet cancel json request { "timestamp" "20180123100505", "txid" "ionpaytest01202103311759347262", "imid" "ionpaytest", "paymethod" "05", "canceltype" "1", "cancelmsg" "request cancel", "merchanttoken" "66141d60572e570045c4f3e9965f3452d511496841981e8a2af6a24a7038a119", "amt" "10000", "cancelserverip" "127 0 0 1" } json response { "txid" "tniceew05105202212121343519502", "referenceno" "815123412341", "resultcd" "0000", "resultmsg" "success", "transdt" "20221212", "transtm" "134351", "description" "test cancel", "amt" "1" } java request //cancel registration// nicepay settimestamp("20221114114338"); nicepay setimid("ionpaytest"); nicepay setamt("10000"); nicepay setreferenceno("ordno20221202141217"); nicepay setmerchanttoken(nicepay maketoken(nicepay getmerchanttoken()); nicepay settxid("ionpaytest01202103311759347262"); nicepay setpaymethod("05"); nicepay setcanceltype("1"); nicepay setcancelmsg("request cancel"); nicepay setcancelserverip("127 0 0 1"); // 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");