NICEPAY API
...
Account Binding - API E-Wallet...
Inquiry - Account Binding API E-Wallet (Direct Debit) SNAP
12 min
about inquiry account binding api e wallet (direct debit) snap this {{api}} uses to check whether {{the}} user account own by {{the}} {{customer}} is successfully linked or not to {{the}} {{ewallet}} {{paymethod}} based on {{snap}} bi standardization inquiry account binding api e wallet (direct debit) snap service code 08 api endpoint /nicepay/api/v1 0/ registration account inquiry method post request header parameter for inquiry 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 inquiry account binding api e wallet (direct debit) snap parameter type length mandatory description partnerreferenceno string 40 mandatory original {{transaction}} identifier on {{service}} provider {{system}} additionalinfo json object variable mandatory additional {{information}} refreshtoken string 40 mandatory refreshtoken from {{nicepay}} mitracd string 40 mandatory {{nicepay}} {{mitra}} code example astrapay astr response header parameter for inquiry 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 inquiry 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 json object variable mandatory additional {{information}} mitracd string 4 mandatory {{nicepay}} {{mitra}} code example astrapay astr allobank allo accounttoken string 40 mandatory account token information accesstokeninfo json object variable mandatory account token information accesstoken string 150 mandatory access token expiresin string 25 mandatory date time of token expiration refreshtoken string 150 mandatory refresh token reexpiresin string 25 mandatory date time of refresh token expiration authcode string 30 mandatory authentication code for {{merchant}} sample parameter for inquiry 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 inquiry' \\ 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","additionalinfo" {"referenceno" "ionpaytest05202208121451526358","mitracd" "astr"}}' 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 { // inquiry body fields partnerreferenceno "2020102900000000000001", additionalinfo { referenceno "ionpaytest05202208121451526358", mitracd "astr" } }, headers { x external id "txid202410142300021707638093", channel id "ionpaytest01", }, }; let snap = new snap(config); let endpoint = `/api/v1 0/registration account inquiry`; let response = snap requestsnaptransaction(parameter, endpoint, access token, "post"); response parameter sample response { "responsecode" "2000800", "responsemessage" "successful", "referenceno" "ionpaytest05202208121451526358", "partnerreferenceno" "2020102900000000000001", "additionalinfo" { "mitracd" "astr", "accounttoken" "1fhas7281han862=", "accesstokeninfo" { "accesstoken" "ublicpba869cad0990e4e17a57ecf7c5469a4b2", "expiresin" "2021 07 04t12 08 56+05 30", "refreshtoken" "201208134b203fe6c11548bcabd8da5bb087a83b", "reexpiresin" "2051 07 04t12 08 56+05 30", " authcode" "nlleyvaqcb2sokvjtf7cecuc16biqcc6drrjakonnfrdtow8tr" } } }