NICEPAY API
...
Account Binding - API E-Wallet...
Unbinding - Account Binding API E-Wallet (Direct Debit) SNAP
10 min
about unbinding account binding api e wallet (direct debit) snap this {{api}} uses to unlink {{the}} account binding from a user account own by {{the}} customer that linked to {{the}} {{ewallet}} {{paymethod}} based on {{snap}} bi standardization unbinding account binding api e wallet (direct debit) snap service code 09 api endpoint /nicepay/api/v1 0/registration account unbinding method post request header parameter for unbinding account binding api e wallet (direct debit) snap parameter type length mandatory description content type string variable mandatory content type, value always application/json authorization string variable mandatory bearer “ accesstoken ” x timestamp string variable mandatory transaction date time, in format yyyy mmddthh\ mm\ ss+07 00 time must be in gmt+7 (jakarta time) x signature string variable mandatory signature will be generated automatically by {{merchant}} x partner id string 10 mandatory unique {{partner}} id, {{partner}} id = client id x external id string 40 mandatory unique messaging reference id generated by {{merchant}} numeric string reference number that should be unique in every {{transaction}} channel id string 5 mandatory device identification on which {{the}} {{api}} {{service}} s is currently being accessed by {{the}} end user ( {{customer}} ) request body parameter for unbinding account binding api e wallet (direct debit) snap parameter type length mandatory description partnerreferenceno string 40 mandatory original {{transaction}} identifier on {{service}} provider {{system}} merchantid string 10 mandatory {{merchant}} identifier that is unique for each {{merchant}} additionalinfo json object variable mandatory additional {{information}} referenceno string 40 mandatory {{nicepay}} transaction id mitracd string 4 mandatory {{nicepay}} {{mitra}} code example astrapay astr allobank allo authcode string 30 mandatory authentication code for {{merchant}} response header parameter for unbinding account binding api e wallet (direct debit) snap parameter type length mandatory description content type string variable mandatory content type, value always application/json x timestamp string variable mandatory transaction date time, in format yyyy mmddthh\ mm\ ss+07 00 time must be in gmt+7(jakarta time) response body parameter for unbinding account binding api e wallet (direct debit) snap parameter type length mandatory description responsecode string 7 mandatory refer to response code list responsemessage string 150 mandatory debug message to provide more {{information}} referenceno string 40 mandatory {{nicepay}} transaction id partnerreferenceno string 40 mandatory {{merchant}} {{transaction}} identifier additionalinfo string variable mandatory additional {{information}} mitracd string 4 mandatory {{nicepay}} {{mitra}} code example astrapay astr allobank allo redirecturl string 256 optional redirect url to {{process}} unbinding account sample parameter for unbinding account binding api e wallet (direct debit) snap request parameter curl curl x post \\ 'https //dev nicepay co id/nicepay/api/v1 0/registration account unbinding' \\ h 'content type application/json' \\ h 'authorization bearer eyj0exaioijkv1qilcjhbgcioijiuzi1nij9 eyjzdwiioijjt05qqvlurvnuiiwiaxnzijoitkldrvbbwsisim5hbwuioijcukloiiwizxhwijoimjaync0wmi0xmvqwodowotoznvoifq== aiyblx36dywffvw7dcoenxkoe2eawiyq84ztpuif3k8=' \\ h 'x timestamp 2024 01 31t10 11 40+07 00' \\ h 'x signature ufbw7r8rhw79ioiv/hlv607m60qzaybv8uzmbsryb6/thlo/fhqvp4xryeluehoss9o+qs6vwtkb/ygtucc+tq==' \\ h 'x partner id ionpaytest' \\ h 'x external id txid202410142300021707638093' \\ h 'channel id ionpaytest01' \\ d '{"partnerreferenceno" "2020102900000000000001","merchantid" "ionpaytest","additionalinfo" {"referenceno" "ionpaytest05202208121451526358","mitracd" "astr","authcode" "nlleyvaqcb2sokvjtf7cecuc16biqcc6drrjakonnfrdtow8tr"}}' node js const config = { isproduction false, privatekey cons privatekey, clientsecret cons clientsecret, clientid "ionpaytest", iscloudserver false, }; const access token = "eyj0exaioijkv1qilcjhbgcioijiuzi1nij9 eyjzdwiioijjt05qqvlurvnuiiwiaxnzijoitkldrvbbwsisim5hbwuioijcukloiiwizxhwijoimjaync0wmi0xmvqwodowotoznvoifq== aiyblx36dywffvw7dcoenxkoe2eawiyq84ztpuif3k8="; const parameter = { body { partnerreferenceno "2020102900000000000001", merchantid "ionpaytest", additionalinfo { referenceno "ionpaytest05202208121451526358", mitracd "astr", authcode "nlleyvaqcb2sokvjtf7cecuc16biqcc6drrjakonnfrdtow8tr" } }, headers { x external id "txid202410142300021707638093", channel id "ionpaytest01", }, }; let snap = new snap(config); let endpoint = `/api/v1 0/registration account unbinding`; let response = snap requestsnaptransaction(parameter, endpoint, access token, "post"); response parameter sample response { "responsecode" "2000900", "responsemessage" "successful", "referenceno" "ionpaytest05202208121451526358", "partnerreferenceno" "2020102900000000000001", "additionalinfo" { "mitracd" "astr", "redirecturl" "https //redirect com/account unbinding/644efc4f9396cbf1075=" } }