SMS HTTP API Documentation
SMS HTTP API Documentation
Version 7.3
Introduction 3
Bulk SMS 4
SMS Retrieval 5
Single SMS 7
1
Pre-Paid Credit Check 28
SMS Retrieval 29
2
Introduction
This document is dedicated for users who wish to use Exetel Pty Ltd’s gateway for sending
SMS messages. This gateway can be accessed by HTTP protocol by submitting values to the
HTTP API Server by the POST method.
Exetel Pty Ltd’s gateway can be used to send simple text messages.
This document gives a detailed explanation of using the gateway through HTTP protocol.
3
API Functionality Overview
The Exetel gateway allows the following functions;
Single SMS
Allows an SMS message to be sent to a single destination mobile number.
Bulk SMS
Allows an SMS message to be sent to multiple destination mobile numbers.
4
Pre-paid Credit Check
Allows pre-paid ONLY customers to retrieve the remaining credit amount
within their account.
SMS Retrieval
Allows previously sent SMS messages details such as delivery status to be
retrieved.
5
Function Description and Definitions
The following section defines and describes the input and output parameters that are
required for each SMS API function. Unless specified, each listed input parameter is
mandatory when making a request to the SMS API.
Each function shall return a response indicating the outcome of the provided request.
Individual values are separated by the “|” character. Multiple responses are separated by a
newline.
Please also note that due to restrictions in the HTTP protocol format, special HTTP reserved
characters must be encoded to be interpreted correctly. Please see Appendix A for a list of
HTTP character encoding.
6
Single SMS
Input Parameters
https://smsgw.exetel.com.au/sendsms/api_sms.php?username=xxxxxxxx&password=
xxxxxxxx&mobilenumber=xxxxxxxx&message=xxxxxxxx&sender=xxxxxxxxx&messagetyp
e=Text&referencenumber=xxxxxx
7
Output Parameters
Possible descriptions:
- Sent
- Incorrect login name and/or password
- Insufficient Credit Amount
- Invalid Customer Reference
- Invalid Message Type
- Invalid Message
- Invalid Mobile Number List
- Invalid Sender
1|0400000000|123|1|Sent
2|9878987888|123||Failed
0|0400000000|123||Invalid Sender
8
Bulk SMS Sending
Input Parameters
https://smsgw.exetel.com.au/sendsms/api_sms.php?username=xxxxxxxx&password=
xxxxxxxx&mobilenumber=xxxxxxxx,xxxxxxxx,xxxxxxxx&message=xxxxxxxx&sender=xx
xxxxxxx&messagetype=Text&referencenumber=xxxxxx
9
Output Parameters
Possible descriptions:
- Sent
- Incorrect login name and/or password
- Insufficient Credit Amount
- Invalid Customer Reference
- Invalid Message Type
- Invalid Message
- Invalid Mobile Number List
- Invalid Sender
1|0400000000|123|1|Sent
2|9878987888|123||Failed
0|0200000000,ABC,9878987888|123||Invalid mobile number list
10
Single Scheduled SMS Sending
Input Parameters
11
scheduledmonth The month to deliver the scheduled - 01
message. The value must be between 01 - 12
and
12. Please note that an SMS message can
only be scheduled 3 months in advance.
https://smsgw.exetel.com.au/sendsms/api_sms_schedule.php?username=xxxxxxxx&
password=xxxxxxxx&mobilenumber=xxxxxxxx&message=xxxxxxxx&sender=xxxxxxxxx&m
essagetype=Text&referencenumber=xxxxxx&requesttype=ADD&scheduledday=01&sche
duledmonth=01&scheduledyear=2008&scheduledhour=06&scheduledminute=00
12
Output Parameters
Possible descriptions:
- OK
- Incorrect login name and/or password
- Insufficient Credit Amount
- Invalid Customer Reference
- Invalid Message Type
- Invalid Message
- Invalid Mobile Number List
- Invalid Sender
- Incomplete or Empty Scheduled Date/Time
- Invalid Schedule Date/Time
- Schedule Date/Time has passed
- Scheduled Date/Time is to far ahead. The Date/Time can
only
- be three months ahead
- Too many days in the selected month
1|0400000000|123|1|OK
2|9878987888|123||Failed
0|0200000000,ABC,9878987888|123||Invalid mobile number list
13
Bulk Scheduled SMS Sending
Input Parameters
14
scheduledmonth The month to deliver the scheduled - 01
message. The value must be between 01 and - 12
12. Please note that an SMS message can
only be scheduled 3 months in advance.
https://smsgw.exetel.com.au/sendsms/api_sms_schedule.php?username=xxxxxxxx&
password=xxxxxxxx&mobilenumber=xxxxxxxx&message=xxxxxxxx&sender=xxxxxxxxx&m
essagetype=Text&referencenumber=xxxxxx&requesttype=ADD&scheduledday=01&sche
duledmonth=01&scheduledyear=2008&scheduledhour=06&scheduledminute=00
15
Output Parameters
Possible descriptions:
- OK
- Incorrect login name and/or password
- Invalid Customer Reference
- Invalid Message Type
- Invalid Message
- Invalid Mobile Number List
- Invalid Sender
- Incomplete or Empty Scheduled Date/Time
- Invalid Schedule Date/Time
- Schedule Date/Time has passed
- Scheduled Date/Time is to far ahead. The Date/Time can
only
- be three months ahead
- Too many days in the selected month
1|0400000000|123|1|OK
2|9878987888|123||Failed
0|0200000000,ABC,9878987888|123||Invalid mobile number list
16
Modify Scheduled Message
Input Parameters
https://smsgw.exetel.com.au/sendsms/api_sms_schedule.php?username=xxxxxxxx&
password=xxxxxxxx&scheduleid=123&requesttype=MODIFY&scheduledday=01&schedul
edmonth=01&scheduledyear=2008&scheduledhour=06&scheduledminute=00
17
Output Parameters
Possible descriptions:
- OK
- Incorrect login name and/or password
- Incomplete or Empty Scheduled Date/Time
- Invalid Schedule Date/Time
- Schedule Date/Time has passed
- Scheduled Date/Time is to far ahead. The Date/Time can only
- be three months ahead
- Too many days in the selected month
- Message has already been sent.
- No message found unable to modify
1|OK
2|No message found unable to modify
0|Invalid Schedule Date/Time
18
Delete Scheduled SMS
Input Parameters
https://smsgw.exetel.com.au/sendsms/api_sms_schedule.php?username=xxxxxxxx&
password=xxxxxxxx&scheduleid=123&requesttype=DELETE
19
Output Parameters
Possible descriptions:
- OK
- Incorrect login name and/or password
- Message could not be deleted, please try again
- Message has already been sent.
- No message found unable to delete.
20
Enquire All Pending Scheduled Messages
Input Parameters
https://smsgw.exetel.com.au/sendsms/api_sms_schedule.php?username=xxxxxxxx&
password=xxxxxxxx&requesttype=ENQUIRE_PENDING
21
Output Parameters
Received Time The time when the schedule request was made. - 2008-01-19
(AEST) 10:30:00
Scheduled Time The scheduled time that the message was to be - 2008-01-20
(AEST) delivered 14:23:00
Possible descriptions:
- OK
- Incorrect login name and/or password
- There are currently no pending scheduled messages.
22
Enquire All Sent Scheduled Messages
Input Parameters
https://smsgw.exetel.com.au/sendsms/api_sms_schedule.php?username=xxxxxxxx&
password=xxxxxxxx&requesttype=ENQUIRE_SENT
23
Output Parameters
Received Time The time when the schedule request was 2008-01-19
(AEST) made. 10:30:00
Scheduled Time The scheduled time that the message was to 2008-01-20
(AEST) be delivered. 14:23:00
Sent Time (AEST) The actual delivery time of the message. 2008-01-20
14:23:00
Possible descriptions:
- OK
- Incorrect login name and/or password.
- There are currently no sent scheduled messages.
24
2|||||||||There are currently no sent scheduled messages.
Enquire Single Scheduled SMS
Input Parameters
https://smsgw.exetel.com.au/sendsms/api_sms_schedule.php?username=xxxxxxxx&
password=xxxxxxxx&requesttype=ENQUIRE_SINGLE
25
Output Parameters
Received Time The time when the schedule request was 2008-01-19 10:30:00
(AEST) made.
Scheduled Time The scheduled time that the message was to 2008-01-20 14:23:00
(AEST) be delivered.
Sent Time (AEST) The actual delivery time of the message. 2008-01-20 14:23:00
Possible descriptions:
- OK
- Incorrect login name and/or password.
- Unable to find scheduled message.
26
Enquire Single Scheduled SMS Example Return Response:
27
Pre-Paid Credit Check
Input Parameters
https://smsgw.exetel.com.au/sendsms/api_sms_credit.php?username=xxxxxxxx&pa
ssword=xxxxxxxx
Output Parameters
Possible descriptions:
- OK
- Account is post-paid
- Incorrect login name and/or password
1|100|OK
2||Account is post-paid
0||Incorrect login name and/or password
28
SMS Retrieval
Input Parameters
https://smsgw.exetel.com.au/sendsms/api_sms_detail.php?username=xxxxxxxx&pa
ssword=xxxxxxxx&exetelreference=123&referencenumber=Xref1
29
Output Parameters
Received Time The time when the SMS request was 2008-01-19 10:30:00
(AEST) made and sent.
Possible descriptions:
- OK
- Incorrect login name and/or password
- No search criteria supplied
- Invalid customer reference
- Invalid Exetel Reference
- No results returned
30
SMS Retrieval Example Return Response:
1|123|100001|040000000|040000000|2008-01-19 10:30:00|Delivered|0.03|OK
2||||||||No results returned
0||||||||Incorrect login name and/or password
31
Virtual Mobile Number Inbox Retrieval
Input Parameters
https://smsgw.exetel.com.au/sendsms/api_sms_mvn_inbox.php?username=xxxxxxxx
&password=xxxxxxxx&mobilenumber=04xxxxxxxx
32
Output Parameters
Received Time The time when the SMS message was 2008-01-19 10:30:00
(AEST) received.
Possible descriptions:
- Found
- Incorrect login name and/or password
- No mobile visual number supplied or invalid mobile visual
- number supplied
- Mobile Virtual Number is disabled or does not belong to you
- No results returned
1|123|04xxxxxxxx|2008-01-19 10:30:00|OK|Hello
2|||||No results returned
0|||||Incorrect login name and/or password
33
Virtual Mobile Number Message Removal
Input Parameters
https://smsgw.exetel.com.au/sendsms/api_sms_mvn_delete.php?username=xxxxxxx
x&password=xxxxxxxx&mobilenumber=04xxxxxxxx&messageid=2345
34
Output Parameters
Possible descriptions:
- Deleted
- Mobile Visual Number is disabled
- No mobile virtual number supplied or invalid mobile virtual
- number supplied
- No results returned
- Invalid Message ID
- Incorrect login name and/or password
1|Deleted
2|No results returned
0|Incorrect login name and/or password
35
APPENDIX A: HTTP Character Encoding
36
ASCII Value URL-encode ASCII Value URL-encode
a %61 ¼ %BC
b %62 ½ %BD
c %63 ¿ %BF
d %64 À %C0
e %65 Á %C1
f %66 Â %C2
g %67 Ã %C3
h %68 Ä %C4
i %69 Å %C5
j %6A Æ %C6
k %6B Ç %C7
l %6C È %C8
m %6D É %C9
n %6E Ê %CA
o %6F Ë %CB
p %70 Ì %CC
q %71 Í %CD
r %72 Î %CE
s %73 Ï %CF
t %74 Ð %D0
u %75 Ñ %D1
v %76 Ò %D2
w %77 Ó %D3
x %78 Ô %D4
y %79 Õ %D5
z %7A Ö %D6
{ %7B Ø %D8
| %7C Ù %D9
} %7D Ú %DA
~ %7E Û %DB
¢ %A2 Ü %DC
£ %A3 Ý %DD
¥ %A5 Þ %DE
| %A6 ß %DF
§ %A7 à %E0
« %AB á %E1
¬ %AC â %E2
¯ %AD ã %E3
º %B0 ä %E4
± %B1 å %E5
ª %B2 æ %E6
, %B4 ç %E7
µ %B5 è %E8
» %BB é %E9
37
ASCII
Value URL-encode ASCII Value URL-encode
ê %EA ö %F6
ë %EB ÷ %F7
ì %EC ø %F8
í %ED ù %F9
î %EE ú %FA
ï %EF û %FB
ð %F0 ü %FC
ñ %F1 ý %FD
ò %F2 þ %FE
ó %F3 ÿ %FF
ô %F4 õ %F5
38