NICEPAY API
...
API Version 2 (V2)
SMS API
SMS Inquiry
9 min
about sms inquiry the {{merchant}} uses this {{api}} to check transmission {{status}} using inquirymms {{api}} (only successful {{sms}} transmission {{status}} ) specification for inquiry sms api url /nicepay/direct/v2/sms check status request method post post , json json merchant token sha256 ( timestamp + imid + txid + merchantkey ) request parameter for inquiry sms parameter type size description example / notes timestamp required required n 14 {{api}} request date 20221219110059 txid required required an 30 transaction id ionpaytest10202212191102221919 imid required required an 10 {{merchant}} id ionpaytest msgrefno required required ans 40 {{merchant}} order number msg 20221219110053 merchanttoken required required an 255 {{merchant}} token e14233565538732e4273338e8b9ac36618028ffce810747913cd5e39b3fee4f9 response parameter for inquiry sms response objects can be added without prior {{notification}} parameter type size description example / notes resultcd n 4 response code docid\ izmchc6jmzb25kdg4zzmk 0000 resultmsg an 255 response message error code docid 4 fpewlvczfhcvygxwck9 success txid an 30 transaction id (key from {{nicepay}} ) ionpaytest10202212191102221919 when success transdt n 8 transmission date 20221219 transtm n 6 transmission time 110222 msgrefno ans 40 {{merchant}} order number (key from {{merchant}} ) msg 20221219110059 recipientno n 16 receiver phone number 081294529025 or 6281294529025 when success msgstatus n 2 transmission status code docid\ conk uxb2z6nn8ffruztw 00 sample json java request requestmap put("timestamp", "20221219110059"); requestmap put("txid", "ionpaytest10202212191102221919"); requestmap put("imid", "ionpaytest"); requestmap put("msgrefno", "msg 20221219110053"); requestmap put("merchanttoken", "e14233565538732e4273338e8b9ac36618028ffce810747913cd5e39b3fee4f9"); json request { 	"timestamp" "20221219110059", 	"msgrefno" "msg 20221219110059", 	"imid" "ionpaytest", 	"txid" "ionpaytest10202212191102221919", 	"merchanttoken" "e14233565538732e4273338e8b9ac36618028ffce810747913cd5e39b3fee4f9" } json response { "resultcd" "0000", "resultmsg" "success", "txid" "ionpaytest10202212191102221919", "transdt" "20221219", "transtm" "110222", "msgrefno" "msg 20221219110059", "recipientno" "081294529025", "msgstatus" "00" } see also {{visit}} {{the}} sms transmit docid\ z0wcvvtj6jzfmmxa1wffl {{page}} to know detail {{sms}} {{api}} used to sending message {{visit}} {{the}} notification sms docid\ l8bsszk8vkuohfc6oxlv {{page}} to learn {{sms}} {{api}} detail used to send {{notification}}