NICEPAY API
...
DANA Recurring - E-Wallet API ...
Cancel & Remove - DANA Recurring API
7 min
about cancel & remove dana recurring api this api is used to cancel a succesful transaction payment and remove the transaction data for the next payment if the transaction cancellation occurs before the settlement process completed, then that transaction is considered void and the transaction funds will be refunded to customer cancel & remove dana recurring api api endpoint /nicepay/direct/v2/cancel request method post post , json description cancel api merchant token sha256( timestamp + imid + txid + amt + merchantkey ) request parameter cancel & remove dana recurring the following are the list of parameters when requesting for cancellation during {{ewallet}} dana recurring {{transaction}} {{process}} parameter tipe ukuran deskripsi contoh / catatan timestamp required required n 14 api request date 20170708123456 txid required required an 30 transaction id ionpaytest02201603091207051498 imid required required an 10 merchant id ionpaytest paymethod required required n 2 docid\ iifmsruuw7j9vmwefjz97 05 e wallet canceltype required required n 2 docid\ puggd4 zfloaf97oadv07 1 full cancellation 2 partial cancellation 3 remove subscription / stop recurring cancelmsg an 255 cancel message cancel message merchanttoken required required an 255 merchant token 6cfccfc0046773c1b589d8e98f8b596c284f3c70a4ecf86eba14c18944b74bcd amt required required n 12 payment amount 1000 cancelserverip an 15 server ip 127 0 0 1 canceluserid an 30 user id admin canceluserip an 15 user ip 127 0 0 1 canceluserinfo an 100 user information customer cancel transaction cancelretrycnt n 2 retry count (optional) worker an 10 worker worker response parameter cancel & remove dana recurring the following are the list of cancellation response during {{ewallet}} dana recurring {{transaction}} {{process}} parameter tipe ukuran deskripsi contoh / catatan txid an 30 transaction id ionpaytest02201603091207051498 when success referenceno ans 40 merchant order no ordno20160525000 52104 when success resultcd n 4 docid 7o8nl7guqp asiwfdqi3v 0000 resultmsg an 255 result message success transdt n 8 transaction date 20160303 when success transtm n 6 transaction time 135959 when success description an 255 description payment of ordno20160525000 52104 when success amt n 12 amount 1000 when success sample parameter cancel & remove dana recurring sample request cancel { "timestamp" "20211203091223", "txid" "ionpaytest05202108231310459282", "imid" "ionpaytest", "paymethod" "05", "canceltype" "1", "cancelmsg" "full cancel", "merchanttoken" "654100834b5c4174235e831941d4d2524949e4e44f1102cb45b9ccefa96c1629", "preauthtoken" "", "amt" "100", "cancelserverip" "", "canceluserid" "", "canceluserip" "", "canceluserinfo" "", "cancelretrycnt" "", "worker" "" } sample response cancel { "txid" "ionpaytest05202108231310459282", "referenceno" " ordno20217131024122", "resultcd" "0000", "resultmsg" "success", "transdt" "20210823", "transtm" "131250", "description" " this is test transaction!!", "amt" "1000" } sample request remove { "timestamp" "20211203091208", "txid" "ionpaytest05202108231310459282", "imid" "ionpaytest", "paymethod" "05", "canceltype" "3", "cancelmsg" "test remove recurring", "merchanttoken" "5bb6dac991d5529745f95dfbd1b6ddc75152a0231da303b77d148d63d46011df", "preauthtoken" "", "amt" "100", "cancelserverip" "", "canceluserid" "", "canceluserip" "", "canceluserinfo" "", "cancelretrycnt" "", "worker" "" } sample response remove { "txid" "ionpaytest05202108231310459282", "referenceno" " ordno20217131024122", "resultcd" "0000", "resultmsg" "success", "transdt" "20210823", "transtm" "131250", "description" " this is test transaction!!", "amt" "100" }