NICEPAY API
...
SMS API
SMS Inquiry
9 min
about sms inquiry the uses this to check transmission using inquirymms (only successful transmission ) 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 request date 20221219110059 txid required required an 30 transaction id ionpaytest10202212191102221919 imid required required an 10 id ionpaytest msgrefno required required ans 40 order number msg 20221219110053 merchanttoken required required an 255 token e14233565538732e4273338e8b9ac36618028ffce810747913cd5e39b3fee4f9 response parameter for inquiry sms response objects can be added without prior parameter type size description example / notes resultcd n 4 docid\ izmchc6jmzb25kdg4zzmk 0000 resultmsg an 255 response message docid 4 fpewlvczfhcvygxwck9 success txid an 30 transaction id (key from ) ionpaytest10202212191102221919 when success transdt n 8 transmission date 20221219 transtm n 6 transmission time 110222 msgrefno ans 40 order number (key from ) msg 20221219110059 recipientno n 16 receiver phone number 081294529025 or 6281294529025 when success msgstatus n 2 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 docid\ z0wcvvtj6jzfmmxa1wffl to know detail used to sending message docid\ l8bsszk8vkuohfc6oxlv to learn detail used to send