NICEPAY API
...
API Version 2 (V2)
SMS API
SMS Transmit
9 min
about sms transmit this {{api}} uses to send messages to {{customer}} s from a {{merchant}} or other related parties {{nicepay}} has single {{sms}} transmit and is supported by 4 popular provider {{partner}} s in {{indonesia}} ; telkomsel, indosat ooredoo hutchison, xl, dan smartfren ensure your {{sms}} token {{balance}} is sufficient before {{proceed}} ing with this {{sms}} transmit {{process}} {{please}} navigate to balance deposits docid\ b3gbwzifvfxav30llqfqp for more detailed {{information}} regarding {{sms}} {{balance}} s specification sms transmit api url /nicepay/direct/v2/sms transmit request method post post merchant token sha256 ( timestamp + imid + msgrefno + merchantkey ) request parameter for sms transmit parameter type size description example / notes timestamp required required n 14 {{api}} request date 20221219110059 imid required required an 10 {{merchant}} id ionpaytest msgrefno required required ans 40 {{merchant}} order number (key from {{merchant}} ) merchantreferencenumber001 smstype required required n 1 {{sms}} type 0 normal 1 alert 2 otp 2 reservedflag required required n 1 sending type 0 realtime processing 1 batch processing 0 reserveddt n 8 send date request ( yyyymmdd ) reservedtm n 6 send time request ( hh24miss ) sender an 11 sender’s number or masking jati tsel ionpaytest001 recipientno required required n 16 recipient's mobile number +6281294529025 smsmsg required required ans 640 message content dbprocessurl required required an 255 result notification url (async notification) https //nicetest requestcatcher com/test reqnm required required an 30 requestor pic name merchanttoken required required an 255 {{merchant}} token 9b62af7cc5357e7071662e5bb7950a03bda2f9efb2e5801298f663001196a199 response parameter for sms transmit parameter type size description example / notes resultcd n 14 result code docid 2r5sr3xvppu1eju1nitg 0000 resultmsg an 255 response message success txid an 30 {{nicepay}} order number (key from {{nicepay}} ) ionpaytest10202212191102221919 when success msgstatus n 2 transmission status code docid\ jezi pfbv9w5jcu6avfll sample json for sms transmit json request { "timestamp" "20221219110059", "imid" "ionpaytest", "smstype" "2", "reservedflag" "0", "reserveddt" "", "reservedtm" "", "msgrefno" "msg 20221219110059", "recipientno" "+6281294529025", "smsmsg" "testing masukkan kode 123456 dalam 30 menit ", "dbprocessurl" "https //nicetest requestcatcher com/test", "reqnm" "nicepay", "sender" "jati tsel ionpaytest001", "merchanttoken" "9b62af7cc5357e7071662e5bb7950a03bda2f9efb2e5801298f663001196a199" } json response { "resultcd" "0000", "resultmsg" "success", "txid" "ionpaytest10202212191102221919", "msgstatus" "00" } java request requestmap put("timestamp", "20221219110059"); requestmap put("imid", "ionpaytest"); requestmap put("merchanttoken", "9b62af7cc5357e7071662e5bb7950a03bda2f9efb2e5801298f663001196a199"); requestmap put("msgrefno","msg 20221219110059"); requestmap put("smstype", "2"); requestmap put("reservedflag", "0"); requestmap put("reserveddt", ""); requestmap put("reservedtm", ""); requestmap put("sender","jati tsel ionpaytest001"); requestmap put("recipientno","+6281294529025"); requestmap put("smsmsg","testing masukkan kode 123456 dalam 30 menit "); requestmap put("dbprocessurl", "https //nicetest requestcatcher com/test"); requestmap put("reqnm", "nicepay") see also {{visit}} {{the}} notification sms docid\ l8bsszk8vkuohfc6oxlv {{page}} to learn {{sms}} {{api}} detail used to send {{notification}} {{visit}} {{the}} sms inquiry docid\ uvh5tm4lddalmolxxlxjj {{page}} to know detail further of {{sms}} {{api}} used to perform inquiry