Integrate OneSMS service in your app and start to send SMS with more simple.
Parameters | Explanation |
---|---|
[APIKEY] | API Key. (Find your API key at www.OneSMS.my My Account > Settings) |
[RECIPIENTS] |
Recipient mobile number. - Mobile number with country code. - Once recipient one request. - One recipient one request. - You can use semi-colon(;) to separate each recipient without space when sending multiple recipients. |
[MESSAGE] |
Message body. - A single SMS may contain 160 characters, or 70 characters for Unicode. - Concatenated SMS may contains 156 characters, or 66 characters for Unicode. - All Malaysia mobile number will be minus 4 characters “RM0” at the beginning of each SMS content. - Maximum of 10 concatenated SMS. As per SKMM guidelines, you shall include price information at the beginning of each SMS. You shall use either “Free msg/RM0/Msj ini percuma” at the beginning of the SMS content. For more information, please read our Terms & Conditions. |
[CUSTOMREFERENCEID] | An unique reference id from your system to avoid duplicate request. |
[STATUS] | Show the status for send SMS (ok / error) |
[MSGCODE] | Show code to represent particular status. |
[REFERENCEID] | Your reference for any future enquiries. |
[BALANCE] | Your account current balance. |
[DATA] | Each recipient sending reference ID. |
Status Code | Description |
---|---|
E00001 | Completed successfully. |
E00081 | Account not active yet. Please contact our support. |
E00242 | Invalid recipient(s). |
E00243 | Please enter your message. |
E00249 | Maximum 10 SMS per recipient(s). |
E00248 | Please enter at least one recipient. |
E00250 | Insufficient balance. |
E00253 | Maximum 100 recipient(s). |
E00359 | Invalid API Key. |
E00366 | The message content contains international brand(s). |
BE00035 | The message not allow to send without company name. Please contact our support to add your company name. |
BE00036 | The message not allow to send without whitelisted. |
BE00096 | Duplicated reference id found. |
BE00128 | Completed successfully(low balance). |
Param | Data Type | Description | Sample |
---|---|---|---|
apiKey | Varchar | API Key. (Find your API key at www.onesms.my My Account > Settings) | abc88888888acbde |
Varchar | Email. (Find your API key at www.oneSMS.my My Account > Settings) | [email protected] | |
templateTitle | Varchar | Template title to be add | AddTemplate02Jun2020 |
messageContent | Text | Message content wanted to submit for whitelist | Hi, add template through api on 02 June 2020. |
referenceId | Varchar | Reference ID to be return for you when status callback | 567890 |
Param | Data Type | Description | Sample |
---|---|---|---|
action | String | Return command | templateStatusCallback |
actionCode | String | Return Code | E00101 |
status | String | Template status | Approved |
messageContent | String | Whitelisted message content | Hi, add template through api on 02 June 2020. |
referenceId | String | Reference ID you passed to us when submit template | 567890 |
Parameters | Explanation |
---|---|
[APIKEY] | API Key. (Find your API key at www.OneSMS.my My Account > Settings) |
[EMAIL] | Email. (Find your API key at www.oneSMS.my My Account > Settings) |