NICEPAY API
...
API NICEPAY Inquiry Convenienc...
Inquiry - API NICEPAY Inquiry Convenience Store SNAP
8 min
about inquiry api nicepay inquiry convenience store snap this {{api}} with snap standard contains {{information}} uses on {{the}} {{cvs}} {{paymethod}} with {{the}} {{nicepay}} inquiry {{cvs}} (nico) feature for requesting a token to {{proceed}} with {{the}} {{transaction}} inquiry api nicepay inquiry convenience store snap please request the access token firsthand before doing the authentication through the docid tojmsjfropbm5rod4lcu section api endpoint https //\[merchant domain]/api/v 1 0/cvs/inquiry method post description to {{proceed}} {{the}} nico {{transaction}} {{status}} content type application/json when {{proceed}} ing with {{the}} integration {{process}} , {{nicepay}} will send a public key to {{the}} {{merchant}} the {{merchant}} must then provide {{the}} api cvs inquiry endpoint details and submit {{the}} client id & client secret in accordance with {{nicepay}} ’s specifications this step is necessary so that {{nicepay}} can request an access token and {{proceed}} with {{the}} {{customer}} data inquiry on {{the}} {{merchant}} ’s side as a result, {{customer}} s can complete {{the}} {{payment}} {{process}} seamlessly request inquiry transaction header parameter parameter type required description example content type string mandatory string media type of {{the}} resource application/json authorization string mandatory access token transaction bearer "accesstoken" x timestamp string mandatory {{nicepay}} timezone yyyy mm ddthh\ mm\ ss (2024 01 22t15 00 01+07 00) x partner id 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 x external id string mandatory reference number that should be unique in every {{transaction}} 11245542345212 channel id string mandatory device identification on which {{the}} {{api}} {{service}} s ionpaytest request inquiry transaction body parameter parameter type length required description partnerserviceid string 4 mandatory prefix customerno string 8 mandatory {{customer}} number payno string 12 mandatory payno number inquiryrequestid string 40 mandatory unique identifier from {{nicepay}} mitracd string 4 mandatory docid\ tm257gq3dxgzf98uz0l33 response inquiry transaction body parameter parameter type length required description responsecode string 5 mandatory response code responsemessage string 100 mandatory response message paynodata object mandatory payno data partnerserviceid string 4 mandatory prefix customerno string 8 mandatory {{customer}} number payno string 12 mandatory payno number paynoname string 100 mandatory payno name goodsname string 200 mandatory goods name paynophone number 15 mandatory payno phone paynoemail string 100 mandatory payno email inquiryrequestid string 40 mandatory unique identifier from {{nicepay}} totalamount object mandatory total amount value number 12 mandatory value currency string 3 mandatory currency partnerreferenceno string 40 mandatory {{merchant}} reference number mitracd string 4 mandatory docid\ tm257gq3dxgzf98uz0l33 paynoexpireddatetime string 25 mandatory payno expired date time sample parameter json request { "partnerserviceid" "7015", "customerno" "89101110", "payno" "701589101110", "inquiryrequestid" "41807553358950093184", "mitracd" "alma" } json response { "responsecode" "2000000", "responsemessage" "successful", "paynodata" { "partnerserviceid" "7015", "customerno" "89101110", "payno" "701589101110", "paynoname" "john test", "goodsname" "pembelian john test", "paynophone" "087771122333", "paynoemail" "jhon\@test com", "inquiryrequestid" "41807553358950093184", "totalamount" { "value" "10000 00", "currency" "idr" }, "partnerreferenceno" "abcdefgh1234", "mitracd" "alma", "paynoexpireddatetime" "2024 07 03t12 08 56+07 00" } }