NICEPAY API
...
API NICEPAY Inquiry Convenienc...
Request Access Token - API NICEPAY Inquiry Convenience Store SNAP
8 min
about request access token api nicepay inquiry convenience store snap this {{api}} with snap standard contains {{information}} used on {{the}} {{cvs}} {{paymethod}} with {{the}} {{nicepay}} inquiry {{cvs}} (nico) feature for requesting a token to {{proceed}} with {{the}} {{transaction}} request access token api nicepay inquiry convenience store snap before proceeding {{the}} {{integration}} {{process}} , {{merchant}} needs to send {{the}} base url ( {{merchant}} domain) to {{nicepay}} 's integration team through email ( mailto\ integration\@nicepay co id ) so that {{merchant}} can access {{the}} nico {{api}} after receiving {{the}} base url, {{nicepay}} will provides {{the}} {{merchant}} with a public key, so the {{merchant}} can immediately {{proceed}} with {{the}} {{integration}} {{process}} get access token {{nicepay}} will generate an access token for {{the}} {{merchant}} through {{the}} {{api}} the provided access token will follow {{the}} {{merchant}} 's format and expires after 15 minutes api endpoint https //\[merchant domain]/api/v 1 0/access token/b2b method post description to request access token for nico {{transaction}} content type application/json request access token header parameter parameter type required description example content type string mandatory string media type of {{the}} resource application/json x timestamp string mandatory {{nicepay}} timezone yyyy mm ddthh\ mm\ ss (2024 01 22t15 00 01+07 00) x client key string mandatory {{merchant}} id ionpaytest x signature string mandatory {{nicepay}} signature generated by {{partner}} / {{merchant}} created using asymmetric signature sha256withrsa algorithm ( private key , stringtosign ) stringtosign = client id + “ | ” + x timestamp request access token body parameter parameter type length required description granttype string 8 mandatory {{customer}} name additionalinfo string 17 mandatory goods/item name request access token response parameter parameter type length required description responsecode string 5 mandatory response code responsemessage string 100 mandatory response message accesstoken string 150 mandatory access token tokentype string 8 mandatory type token expiresin string 17 mandatory session expiry in second additionalinfo string 17 mandatory additional information sample parameter json request { "granttype" "client credentials", "additionalinfo" {} } json response { "responsecode" "2007300", "responsemessage" "successful", "accesstoken" "xy8duzzavv9bwdxxrxcb89tsuvk4mf4kx4lgfe4acrvxr7xderhbe1", "tokentype" "bearer", "expiresin" "900", "additionalinfo" {} }