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 uses to unlink account binding from a user account own by customer that linked to based on 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 x partner id string 10 mandatory unique id, id = client id x external id string 40 mandatory unique messaging reference id generated by numeric string reference number that should be unique in every channel id string 5 mandatory device identification on which s is currently being accessed by end user ( ) request body parameter for unbinding account binding api e wallet (direct debit) snap parameter type length mandatory description partnerreferenceno string 40 mandatory original identifier on provider merchantid string 10 mandatory identifier that is unique for each additionalinfo json object variable mandatory additional referenceno string 40 mandatory transaction id mitracd string 4 mandatory code example astrapay astr allobank allo authcode string 30 mandatory authentication code for 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 referenceno string 40 mandatory transaction id partnerreferenceno string 40 mandatory identifier additionalinfo string variable mandatory additional mitracd string 4 mandatory code example astrapay astr allobank allo redirecturl string 256 optional redirect url to 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=" } }