NICEPAY API
...
API Payloan
Status Inquiry - API Payloan
10 min
tentang api payloan status inquiry integrasi {{api}} status inquiry pada {{payloan}} digunakan oleh {{merchant}} untuk memeriksa {{status}} {{yang}} berlangsung pada {{proses}} {{transaksi}} {{yang}} dilakukan oleh {{pelanggan}} baik ber {{status}} success , fail , dan lainnya sehingga {{sistem}} dapat memiliki laporan mengenai informasi tersebut api payloan status inquiry integrasi {{status}} inquiry pada {{payloan}} bertujuan supaya {{merchant}} dapat terhubung dengan {{sistem}} {{api}} untuk melakukan pemeriksaan {{status}} pada {{metodebayar}} {{payloan}} secara berkala api endpoint /nicepay/direct/v2/inquiry request method post post description performs inquiry request to {{nicepay}} for status checking merchant token sha256( timestamp + imid + referenceno + amt + merchantkey ) request format application/json ketika {{notifikasi}} diterima dbprocessurl {{anda}} , {{nicepay}} sangat menganjurkan {{merchant}} untuk melakukan verifikasi {{notifikasi}} tersebut dengan menggunakan docid\ oqckfxnuwkspkgdkfmjb5 notification handling sangat berguna untuk meminimalisir terjadinya fraud kami sangat menganjurkan {{merchant}} untuk melakukan verifikasi notification handling {{anda}} dapat membaca {{informasi}} lebih rinci mengenai notification handling pada docid\ tulcqsl5ciqkzdym3dfiv request parameter for payloan status inquiry berikut ini adalah daftar {{parameter}} untuk melakukan request {{status}} inquiry pada {{proses}} {{transaksi}} {{payloan}} parameter tipe ukuran deskripsi contoh / catatan timestamp required required n 14 request timestamp ( yyyymmddhh24miss ) 20221114114338 txid required required an 30 transaction id payloantes06202212051018325178 imid required required an 10 {{merchant}} id payloantes referenceno required required ans 40 {{merchant}} order number ord12345 amt required required n 12 transaction amount 10000 merchanttoken required required an 255 {{merchant}} token 3a04d0c8581ae37727f87130a0b32f2fe9fe39c66b88347352e7b90aeb5cb6e6 response parameter for payloan status inquiry berikut ini adalah daftar response dari pengajuan {{status}} inquiry pada {{proses}} {{transaksi}} {{payloan}} parameter tipe ukuran deskripsi contoh / catatan resultcd n 4 docid 7o8nl7guqp asiwfdqi3v 0000 resultmsg an 255 result message docid\ wpcemazro xvnxz 1zaib init txid an 30 transaction id payloantes06202212051018325178 imid an 10 {{merchant}} id payloantes referenceno ans 40 {{merchant}} reference number ord12345 paymethod n 2 docid\ iifmsruuw7j9vmwefjz97 06 amt n 12 {{paymentproduct}} amount 10000 cancelamt n 12 cancel amount null reqdt n 8 transaction request date ( yyyymmdd ) 20221205 reqtm n 6 transaction request time ( hh24miss ) 101832 transdt n 8 transaction date ( yyyymmdd ) null transtm n 6 transaction time ( hh24miss ) null depositdt n 8 transaction deposit date ( yyyymmdd ) null deposittm n 6 transaction deposit time ( hh24miss ) null currency a 3 currency idr goodsnm an 100 goods name test transaction {{nicepay}} billingnm a 100 buyer name john doe status n 1 docid c8dre3fj17cxu0kw8c7d 9 instmntmon n 2 installment month 1 instmnttype n 2 docid\ rt2c32s9hfl aohyoebv5 2 cardno n 20 {{cc}} number null preauthtoken an 64 pre auth token null acqubankcd a 4 docid\ ky4ppujot06atnie easf null issubankcd a 4 docid\ ky4ppujot06atnie easf null vacctvaliddt n 8 va expiry date ( yyyymmdd ) null vacctvalidtm n 6 va expiry time ( hh24miss ) null vacctno n 20 va number null bankcd a 4 docid\ ky4ppujot06atnie easf null payno n 12 {{paymentproduct}} number null mitracd a 4 docid\ tm257gq3dxgzf98uz0l33 kdvi receiptcode ans 20 authorization number null cancelamt n 12 cancel amount null recurringtoken an 255 recurring token (needed for recurring {{paymentproduct}} ) cctranstype n 2 docid 5kylpx5mpjsl96c8mhoik null payvaliddt n 8 cvs expiry date ( yyyymmdd ) (cvs) null payvalidtm n 6 cvs expiry time ( hh24miss ) (cvs) null mrefno an 20 {{bank}} reference number ( {{directdebit}} ) null acqustatus n 2 purchase status 1 normal 2 recurring 3 pre auth 4 capture null cardexpyymm n 4 card expiry ( yymm ) null acqubanknm a 255 acquiring {{bank}} name null issubanknm a 255 issuing {{bank}} name null paymentexpdt n 6 qr {{paymentproduct}} expiry date ( yyyymmdd ) null paymentexptm n 6 qr {{paymentproduct}} expiry time ( hh24miss ) null canceltrxsn an 32 cancel transaction number null userid an 128 {{qris}} user id hash null shopid an 32 shop id null additional response parameter for payloan status inquiry berikut ini adalah {{informasi}} daftar response tambahan dari request {{status}} inquiry pada {{proses}} {{transaksi}} lainnya parameter tipe ukuran deskripsi mitracd a 4 docid\ tm257gq3dxgzf98uz0l33 (cvs, {{directdebit}} , {{ewallet}} , {{payloan}} ) payno n 12 cvs number (cvs) payvaliddt n 8 cvs expiry date ( yyyymmdd ) (cvs) payvalidtm n 6 cvs expiry time ( hh24miss ) (cvs) receiptcode ans 20 authorization code (cvs) mrefno an 20 {{bank}} reference number ( {{directdebit}} ) sample json for payloan status inquiry json request { 	"timestamp" "20221114114338", 	"txid" "payloantes06202212051018325178", 	"imid" "payloantes", 	"referenceno" "ord12345", 	"amt" "10000", 	"merchanttoken" "3a04d0c8581ae37727f87130a0b32f2fe9fe39c66b88347352e7b90aeb5cb6e6" } json response { "txid" "payloantes06202212051018325178", "imid" "payloantes", "currency" "idr", "amt" "10000", "instmntmon" "1", "instmnttype" "2", "referenceno" "ord12345", "goodsnm" "test transaction nicepay", "paymethod" "06", "billingnm" "john doe", "reqdt" "20221205", "reqtm" "101832", "status" "9", "resultcd" "0000", "resultmsg" "init", "cardno" null, "preauthtoken" null, "acqubankcd" null, "issubankcd" null, "vacctvaliddt" null, "vacctvalidtm" null, "vacctno" null, "bankcd" null, "payno" null, "mitracd" "kdvi", "receiptcode" null, "cancelamt" null, "transdt" null, "transtm" null, "recurringtoken" null, "cctranstype" null, "payvaliddt" null, "payvalidtm" null, "mrefno" null, "acqustatus" null, "cardexpyymm" null, "acqubanknm" null, "issubanknm" null, "depositdt" null, "deposittm" null, "paymentexpdt" null, "paymentexptm" null, "paymenttrxsn" null, "canceltrxsn" null, "userid" null, "shopid" null } java request //inquiry registration// nicepay settimestamp("20221208091279"); nicepay setimid("ionpaytest"); nicepay setamt("10000"); nicepay setreferenceno("ordno20221202141217"); nicepay setmerchanttoken(nicepay maketoken(nicepay getmerchanttoken()); nicepay settxid("ionpaytest08202212080918308275"); // request inquiry nicepay inquiry(); // response string // system out println("final response string " + nicepay getresponsestring()); string resultcd = nicepay get("resultcd"); string resultmsg = nicepay get("resultmsg"); string txid = nicepay get("txid"); string referenceno = nicepay get("referenceno"); string paymethod = nicepay get("paymethod"); string status = nicepay get("status") string amt = nicepay get("amt"); string transdt = nicepay get("transdt"); string transtm = nicepay get("transtm"); string shopid = nicepay get("shopid");