NICEPAY API
...
Account Binding - API E-Wallet...
Registration - Account Binding API E-Wallet (Direct Debit) SNAP
10 min
about registration account binding api e wallet (direct debit) snap this {{api}} uses to initiates {{the}} {{customer}} 's account binding {{process}} to {{the}} {{ewallet}} {{paymethod}} based on {{snap}} bi standardization registration account binding api e wallet (direct debit) snap {{visit}} {{the}} docid 9xl2y9tokxgtmzsu8v8l0 {{page}} to know {{the}} account binding {{process}} flow this {{api}} used by {{the}} {{merchant}} to initiate user account own by {{the}} {{customer}} linking {{process}} that will be used on {{the}} {{transaction}} {{process}} with {{nicepay}} {{system}} service code 07 api endpoint /nicepay/api/v1 0/registration account binding method post request header parameter for registration 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 registration account binding api e wallet (direct debit) snap parameter type length mandatory description partnerreferenceno string 40 mandatory {{merchant}} {{transaction}} identifier merchantid string 10 mandatory {{merchant}} identifier that is unique per each {{merchant}} additionaldata json object variable mandatory additional data userid string 100 mandatory {{customer}} name email string 40 mandatory {{customer}} email phoneno string 15 mandatory {{customer}} phone number additionalinfo json object variable mandatory additional {{information}} mitracd string 4 mandatory {{nicepay}} {{mitra}} code example astrapay astr allobank allo callbackurl string 255 mandatory {{paymentproduct}} result forward url (on browser) response header parameter for registration 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 registration 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 mor e {{information}} referenceno string 40 mandatory {{nicepay}} transaction id partnerreferenceno string 40 mandatory {{merchant}} {{transaction}} identifier redirecturl string 255 mandatory redirect url to {{process}} binding account additionalinfo json object variable mandatory additional {{information}} mitracd string 4 mandatory {{nicepay}} {{mitra}} code authcode string 30 mandatory authentication code for {{merchant}} sample parameter for registration 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 binding' \\ 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","additionaldata" {"userid" "john doe","email" "john doe\@email com"},"phoneno" "0899345678864332","additionalinfo" {"mitracd" "astr","callbackurl" "https //merchant com/processcallbackurlurl"}}' 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", additionaldata { userid "john doe", email "john doe\@email com" }, phoneno "0899345678864332", additionalinfo { mitracd "astr", callbackurl "https //merchant com/processcallbackurlurl" } }, headers { x external id "txid202410142300021707638093", channel id "ionpaytest01", }, }; let snap = new snap(config); let endpoint = `/api/v1 0/registration account binding`; let response = snap requestsnaptransaction(parameter, endpoint, access token, "post"); response parameter sample response { "responsecode" "2000700", "responsemessage" "successful", "referenceno" "ionpaytest05202208121451526358", "partnerreferenceno" "2020102900000000000001", "redirecturl" "https //redirect com/account binding/644efc4f9bb145efa6cf1e396", "additionalinfo" { "mitracd" "astr", "authcode" "nlleyvaqcb2sokvjtf7cecuc16biqcc6drrjakonnfrdtow8tr" } }