NICEPAY API
...
Advance API - SNAP
API NICEPAY Inquiry Virtual Ac...
Payment - API NICEPAY Inquiry Virtual Account SNAP
8 min
about payment api nicepay inquiry virtual account snap this {{api}} with {{snap}} standards contains {{information}} uses on {{the}} {{va}} {{paymethod}} with {{the}} {{niva}} (niva) feature, which allows {{merchant}} s to store {{customer}} 's data and generate their own {{va}} numbers within their {{system}} , as long as they follow the provisions for creating {{nicepay}} 's {{va}} number payment api nicepay inquiry virtual account snap please request the access token firsthand before doing the authentication through the request access token api nicepay inquiry virtual account snap docid\ lihdvaobqwtamwijj4k6e section service code 25 api endpoint \[merchant domain]/api/v1 0/transfer va/payment http method http post description to proceed niva payment transaction content type application/json when proceeding with the integration process, nicepay will send a public key to the merchant then, the merchant must inform the information related to the api va inquiry endpoint and send the client id & client secret based on nicepay specification to the nicepay team that must proceed so nicepay can request an access token and proceed with the customer data inquiry on the merchant side therefore, the payment process can easily proceed by the customers request payment header parameter parameter type length required description example content type string mandatory application / json authorization string mandatory bearer “ access token ” x timestamp string mandatory using iso 8601 as timestamp format transaction date time, in format yyyymmddthh\ mm\ ss+07 00 time must be in gmt+7 (jakarta time) 2022 03 21t10 11 40+07 00 x signature string mandatory signature will be generated by merchant snap api testing x partner id string 20 mandatory x partner id = client id x external id string 40 mandatory unique reference number ( 41807553358950093184 ) channel id string mandatory unique channel merchant credential id number client id + "01" = channel id "ionpaytest" + "01" = "ionpaytest01" ionpaytest01 request payment body parameter parameter type length required description partnerserviceid string 20 mandatory partner service id / prefix customerno string 40 mandatory customer number virtualaccountno string 25 mandatory virtual account number virtualaccountname string 100 optional virtual account name trxid string 40 mandatory merchant order number paymentrequestid string 128 mandatory unique identifier paidamount object optional total amount "paidamount" { } value string 12 mandatory value currency string 3 mandatory currency trxdatetime string 25 optional date transaction additionalinfo object optional additional information "additionalinfo" { } bankcd string 4 mandatory bank code api snap docid 5pxu cbdxvy2biili8 cv response payment parameter parameter type length required description responsecode string mandatory general response code and message api snap docid\ bjr4kjamzcknln 5zrnvw responsemessage string mandatory response message virtualaccountdata object mandatory partnerserviceid string 20 mandatory partner service id / prefix customerno string 40 mandatory customer number virtualaccountno string 25 mandatory virtual account number virtualaccountname string 100 mandatory virtual account name trxid string 40 mandatory reference number from merchant paymentrequestid string 128 mandatory unique identifier paidamount object optional total amount "paidamount" { } value string 12 mandatory transaction amount currency string 3 mandatory currency trxdatetime string 25 optional date transaction additionalinfo object optional additional information "additionalinfo" { } goodsnm string 200 mandatory goods name sample parameter sample request //header section content type application/json authorization bearer eyj0exaioijkv1qilcjhbgcioijiuzi1nij9 eyjzdwiioijjt05qqvlurvnuiiwiaxnzijoitkldrvbbwsisim5hbwuioijcukloiiwizxhwijoimjaync0wmi0xmvqwodowotoznvoifq== aiyblx36dywffvw7dcoenxkoe2eawiyq84ztpuif3k8= x timestamp 2024 12 31t10 11 40+07 00 x signature ufbw7r8rhw79ioiv/hlv607m60qzaybv8uzmbsryb6/thlo/fhqvp4xryeluehoss9o+qs6vwtkb/ygtucc+tq== x partner id fixopen001 x external id txid202402111402271707638113 channel id fixopen001 { "partnerserviceid" "70151021", "customerno" "10000001", "virtualaccountno" "7015102110000001", "virtualaccountname" "john test", "trxid" "ref100000001", "trxdatetime" "2024 02 01t15 40 06+07 00", "paymentrequestid" "fixopen0010000000006", "paidamount" { "value" "10000 00", "currency" "idr" }, "additionalinfo" { "bankcd" "bmri", } } sample response { "responsecode" "2002500", "responsemessage" "successful", "virtualaccountdata" { "partnerserviceid" "70151021", "customerno" "10000001", "virtualaccountno" "7015102110000001", "virtualaccountname" "john test", "paymentrequestid" "fixopen0010000000006", "paidamount" { "value" "100000 00", "currency" "idr" }, "trxdatetime" "2024 02 01t15 40 06+07 00", "trxid" "ref100000001" }, "additionalinfo" { "goodsnm" "test item", } }