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 uses to initiates 's account binding to based on bi standardization registration account binding api e wallet (direct debit) snap docid 9xl2y9tokxgtmzsu8v8l0 to know account binding flow this used by to initiate user account own by linking that will be used on with 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 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 registration account binding api e wallet (direct debit) snap parameter type length mandatory description partnerreferenceno string 40 mandatory identifier merchantid string 10 mandatory identifier that is unique per each additionaldata json object variable mandatory additional data userid string 100 mandatory name email string 40 mandatory email phoneno string 15 mandatory phone number additionalinfo json object variable mandatory additional mitracd string 4 mandatory code example astrapay astr allobank allo callbackurl string 255 mandatory 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 referenceno string 40 mandatory transaction id partnerreferenceno string 40 mandatory identifier redirecturl string 255 mandatory redirect url to binding account additionalinfo json object variable mandatory additional mitracd string 4 mandatory code authcode string 30 mandatory authentication code for 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" } }