Date: 12 March 2013
Date: 12 March 2013
Version : 1.2
This document is copyrighted. No part of this document may in any form or by any means be
reproduced, stored in a retrieval system or transmitted without prior written permission from Web
123 Sdn Bhd
1. Document History 3
2. Abbreviation 3
3. Introduction 4
4. System Requirement 4
5. API List
6. Appendix 10
2.0 Abbreviation
Abbreviation Full Description and explanation
CP Content Provider – Customers connecting to onewaysms gateway
HTTP Hyper Text Transport Protocol – Protocol used for CP to communicate
with onewaysms gateway
MSISDN Mobile Station International ISDN number
SMS Short Messaging Service
MT Mobile Terminating
MT URL onewaysms.com.my’s sms platform MT URL (URL for Content Provider
to interface with onewaysms sms gateway to send out MT)
DN Delivery Notification. This is the notification from the Telco to indicate
the status of the SMS
To send MT, CP would need to call MT URL with the appended parameter. (MT URL can
be obtain from API section in your account)
Below are the HTTP parameter that are required to be appended to MT URL
Parameter Data Description
Name Format
apiusername String Username for your API (can be obtain under API
section once you have log into your account)
Note : API username is different from your web
username)
apipassword String Password for your API (can be obtain under API
section once you have log into your account)
Note : API username is different from your web
username)
mobileno String Phone number of recipient. Phone number
must include country code.
Example : 60121234567
10 mobile numbers can be included in this field
separated with commas (,).
Eg. 60197654321,60121234567
senderid String Refer to sender. Field can take up to 11
alphanumeric characters.
Note : Sender ID is no longer relevant in Malaysia.
Confidential and Proprietary 5
HTTP API
You may enter “INFO” as the Sender ID. It will
always display as a 5 digit number starting with 6.
For example, 6XXXX
languagetype String Indicated the type of sms sent:
“1” – Normal Text message (160 characters as 1
MT)
“2” – Unicode Text message (70 characters as 1
MT)
Once onewaysms gateway receives a MT request, it will return a HTTP 200 response to
CP
• If the value is other than 200, then it is a failed request.
• If the value is 200, CP is required to extract the message body for the result
• If the result is a negative value, some of the MT parameters are invalid (refer
below for details)
• If the result is a positive value, it means our gateway successfully receive it. The
result is the MT ID. (If you would like to check on transaction status, you would
need to store this ID)
Below are the result that will return on the message body
Result Description
>0 Positive value – Success
If multiple numbers are sent in the same request, result will display
multiple MT ID, For example, 200806150001,200806150002
-100 apipassname or apipassword is invalid
Once bulk MT is delivered to subscriber, Content Provider may check transaction status
by calling bulk check URL (Bulk check URL can be obtain from API section in your
account)
Below are the HTTP parameter that are required to be appended to MT URL
Parameter Data Description
Name Format
mtid String MT ID received from onewaysms gateway when
sending MT previously
Below are the result that will return on the message body
Result Description
0 Success receive on mobile handset
100 Message delivered to Telco
-100 mtid invalid / not found
-200 Message sending fail
Content Provider can check credit by calling check balance URL . (Check balance URL can
be obtain from API section in your account)
Parameter Data Description
Name Format
apiusername String Username for your API (can be obtain under API
section once you have log into your account)
Note : API username is different from your web
username)
apipassword String Password for your API (can be obtain under API
section once you have log into your account)
Note : API username is different from your web
username)
Below are the result that will return on the message body
Result Description
0 or positive SMS Credit balance in your account
value
-100 apipassname or apipassword is invalid
One Way SMS will update the status of the SMS Transaction by calling Content
Provider’s DN URL. (Content Provider can set the DN URL from your own account)
Parameter Data Description
Name Format
mtid String MT ID received from onewaysms gateway when
sending MT previously
status int 1 = success
-1 = fail
For send with languagetype 2, you would need to convert the message to hexadecimal value
Appendix 2
Appendix 3
Appendix 4
Appendix 5