NICEPAY API
...
Checkout API
Status Inquiry - API Checkout
12 min
about status inquiry api checkout after you integrate successfully with docid 066dopsepwv3fgkypjzaf , your is ready to do s in real with your however, recommend you to performs other docid\ zze5wxfg69spzsgehotnu like this inquiry this uses to check on you are requested on previous docid 066dopsepwv3fgkypjzaf such as successful or failed when is completed, you will automatically get from us strongly recommend you to re check using docid 7thqvphz6emwezw5 d4an status inquiry api checkout 330,331 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type when received to your dbprocessurl , we strongly recommend to verify notification using docid 7thqvphz6emwezw5 d4an notification handling notification handling is useful to minimalize fraud actions, we strongly recommend s to verify notification handling request parameters for status inquiry api checkout 132,132,132,132,133 true left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type response parameters 130,66,76,305,165 true left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type additional credit card 185,96,78,292,261 true left unhandled content type left unhandled content type unhandled content type unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type additional virtual account 131,105,105,235,165 true left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type additional others for status inquiry api checkout 125,102,80,270,165 true left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type unhandled content type sample parameter for status inquiry api checkout request parameter for status inquiry api checkout curl curl location 'https //dev nicepay co id/nicepay/direct/v2/inquiry' \\ \ header 'content type application/json' \\ \ data '{ "timestamp" "20251111021168", "imid" "ionpaytest", "txid" "ionpaytest02202511110206549179", "referenceno" "ordno20251111021198", "amt" "10000", "merchanttoken" "3c88adc387f1971beccc7189779281756c11ffcf9337f7ab5e8c8e5e1947be08" }' node js const secondapiversion = require(" /lib/secondapiversion js"); const cons = require(" /sharedconfig js"); const config = { isproduction false, iscloudserver false, merchantkey cons merchantkey, }; const parameter = { "timestamp" "20251111021168", "imid" "ionpaytest", "txid" "ionpaytest02202511110206549179", "referenceno" "ordno20251111021198", "amt" "10000" }; let secondversion = new secondapiversion(config); let response = secondversion requestapi(parameter, "/direct/v2/inquiry");config =nicepay builder() isproduction(false) iscloudserver(false) clientsecret(client secret) partnerid(partner id) externalid(testingconstants external id) timestamp(timestamp) privatekey(private key cloud) build(); string timestamp = "20251111021168"; string imid = "ionpaytest"; string txid = "ionpaytest02202511110206549179"; string reffno = "ordno20251111021198"; string amount = "10000"; inquirystatus requestdata = inquirystatus builder() timestamp(timestamp) txid(txid) imid(imid) merchanttoken(timestamp, imid, reffno, amount, testingconstants merchant key) referenceno(reffno) amt(amount) build(); nicepayresponsev2 result = v2inquirystatusservice callv2inquirystatus(requestdata, config);from python nicepay data builder import builderenvironment from python nicepay data builder v2 professional import builderinquiry from python nicepay data builder v2 professional datagenerator import datagenerator from python nicepay service v2enterpriseservice import servicenicepay bodyinquiry = ( builderinquiry buildinquiry() settxid("ionpaytest02202511110206549179") setreferenceno("ordno20251111021198") setamt("10000") build() ) environment = (builderenvironment buildenvironment() iscloud(false) isproduction(false) build()) response = servicenicepay serviceinquiry(datagenerator getinquirybody(bodyinquiry jsoninquiry()), environment) c# testingconstantservice config = new testingconstantservice(); string merchantkey = config merkey; string clientid = "ionpaytest"; string timestamp = "20251111021168"; string refno = "ordno20251111021198"; string amount = "10000"; bool isproduction = false; bool iscloudserver = false; var builder = new merchanttokenbuilder() settimestamp(timestamp) setimid(clientid) setrefno(refno) setamount(amount) setmerchantkey(merchantkey); // act menghasilkan merchanttoken string merchanttoken = builder buildmerchanttoken(); var bodybuilder = new nicepayrequestbuilder() setcheckstatus( imid clientid, timestamp timestamp, txid "ionpaytest02202511110206549179", amt amount, referenceno refno, merchanttoken merchanttoken ); apiendpoints apiendpoints = new apiendpoints(); dictionary\<string, object> payload = bodybuilder build(); string jsonpayload = newtonsoft json jsonconvert serializeobject(payload); var registrationservice = new nicepayregistrationservice(apiendpoints,isproduction, iscloudserver); var result = await registrationservice sendpostasync(apiendpoints inquiryv2,payload); laravel // endpoint $url = httputil getnicepaydomain($this >useprod, $this >usecloud) $this >inquiry endpoint; // request body parameter $timestamp = "20251111021168"; $txid = "ionpaytest02202511110206549179"; $reference no = "ordno20251111021198"; $amt = "10000"; $merchant token = $this >generatemerchanttoken($timestamp, $this >imid, $reference no, $this >amt, $this >mer key); $body = \[ "timestamp" => $timestamp, "txid" => $txid, "imid" => $this >imid, "merchanttoken" => $merchant token, "referenceno" => $reference no, "amt" => $amt, ]; try { $response = httputil postjsonrequest($url, $body); } catch (throwable $th) { return $this >generateerrorresponse($th); } php native $imidtest = "ionpaytest"; $merchantkey = testconst $merchant key; $config = nicepay builder() >setisproduction(false) >build(); $timestamp = "20251111021168"; $reffno = "ordno20251111021198"; $amount = "10000"; $parameter = inquirystatus builder() >settimestamp($timestamp) >settxid("ionpaytest02202511110206549179") >setimid($imidtest) >setmerchanttoken($timestamp, $imidtest, $reffno, $amount, $this >merchantkey) >setreferenceno($reffno) >setamt($amount) >build(); try { $v2redirectservice = new v2redirectservice($config); $response = $v2redirectservice >inquirystatus($parameter); } catch (nicepayerror $e) { }var config nicepay? = nicepay builder() isproduction(false) clientsecret(testingconstants client secret) partnerid(testingconstants partner id) externalid(testingconstants external id) timestamp(testingconstants timestamp) privatekey(testingconstants private key) build() val timestamp = "20251111021168" val txid = "ionpaytest02202511110206549179" val imid = "ionpaytest" val referenceno = "ordno20251111021198" val amount = "10000" val request directv2checkstatus = directv2checkstatus builder() timestamp(timestamp) txid(txid) imid(imid) merchantkey(default merchant key) referenceno(referenceno) amt(amount) build() val response nicepayresponsev2 = v2virtualaccountservice checkstatus(request, config)!! codeigniter $imidtest = "ionpaytest"; $this >merchantkey = $testconst imid common merchant key; $this >v2config = nicepay builder() >setisproduction(false) >build(); $timestamp = "20251111021168"; $reffno = "ordno20251111021198"; $amount = "10000"; $config = $this >v2config; $parameter = inquirystatus builder() >settimestamp($timestamp) >settxid("ionpaytest02202511110206549179") >setimid($this >imidtest) >setmerchanttoken($timestamp, $this >imidtest, $reffno, $amount, $this >merchantkey) >setreferenceno($reffno) >setamt($amount) >build(); try { $v2vaservice = new v2vaservice($config); // you can use chosen payment method service $response = $v2vaservice >inquirystatus($parameter); } catch (exception $e) { } response parameter sample response { "txid" "ionpaytest02202511110206549179", "imid" "ionpaytest", "currency" "idr", "amt" "10000", "instmntmon" null, "instmnttype" "1", "referenceno" "ordno20251111021198", "goodsnm" "goods", "paymethod" "02", "billingnm" "hantu kesorean", "reqdt" "20251111", "reqtm" "020654", "status" "0", "resultcd" "0000", "resultmsg" "paid", "cardno" null, "preauthtoken" null, "acqubankcd" null, "issubankcd" null, "vacctvaliddt" "20280128", "vacctvalidtm" "235959", "vacctno" "7812001000000605", "bankcd" "ibbk", "payno" null, "mitracd" null, "receiptcode" null, "cancelamt" null, "transdt" "20251111", "transtm" "020654", "recurringtoken" null, "cctranstype" null, "payvaliddt" null, "payvalidtm" null, "mrefno" null, "acqustatus" null, "cardexpyymm" null, "acqubanknm" null, "issubanknm" null, "depositdt" "20251111", "deposittm" "020705", "paymentexpdt" null, "paymentexptm" null, "paymenttrxsn" null, "canceltrxsn" null, "userid" null, "shopid" null }