API Documentation

Mobile Billing / Premium SMS / Examples

Send SMS via HTTP (MT) Example

The following shows a URL example for sending a SMS MT message:

Method: GET /srs/api/sendsms?
USER_NAME=<account_id>&PASSWORD=<api_key>&ORIGINATOR=1987654&RECIPIENT=61412345678&PR
OVIDER=telstra&MESSAGE_TEXT=Hello%20There!

The following shows a response example for successfully sending a SMS MT message:

0

The following shows a response example for a failure when sending SMS MT message:

511
Username or Password incorrect

Receive SMS via HTTP (MO) Example

When a SMS MO message arrives at the SMS Gateway, it will send the following request to your application:

Method: GET http://www.yoursite.com.au/SMSfromMobiles?
ORIGINATOR=61412345678&RECIPIENT=1987654&PROVIDER=telstra&MESSAGE_TEXT=Hello%20There

** You need to provide us with the MO destination (URL) before we can provide you with an account credentials.

Receive Delivery Receipt via HTTP (DR) Example

When the SMS Gateway receives an update on the status of a message, it will send the following request to your application:

Method: GET http://www.yoursite.com.au/DeliveryReciept?
ORIGINATOR=61412345678&RECIPIENT=1987654&PROVIDER=telstra&MESSAGE_TEXT=Hello%20There&ID=939ec52e333fbf124a87845d3a5d72e1&REFERENCE=ABC123&RESULT=1

** If you would like to receive Delivery Receipts, you need to provide us with the Delivery Receipt destination (URL).

Acknowledging the MO and DR is received successfully

Upon receiving the MO / DR notification, your server needs to respond with a HTTP 200, and a body "0" (ZERO)

0

← Previous Page - Next Page →