Billing for subscription services is done at the carrier level on billing on some carriers. This contrasts to the normal SMS billing model where each charge to the end-user can be attributed to a particular MO or premium MT SMS. The MX Telecom SMS Gateway can inform partners of carrier-level subscription renewals via an HTTP interface.
Enabling renewal notifications
Renewal notifications are enabled on a per-account basis. Please contact us with a URL to which renewal notifications should be posted to have this enabled on one or more of your SMS Gateway accounts.
Renewal notifications are only applicable to carriers which manage subscription renewals themselves. At present this is limited to:
- AT&T (MX Telecom carrier codes CINGULARUS and ATTUS).
An HTTP GET request will be made to the configured URL by the SMS Gateway for each renewal. The following parameters will be present in the GET request:
|network||Yes||Carrier code for end-user's carrier.|
|shortcode||Yes||The Short Code for the subscripion.|
|msisdn||Yes||Subscribed cell phone number.|
|smsid||Yes||The SMS ID which was returned by the SMS Gateway when the subscription was set up. This is a positive 64 bit integer used to uniquely identify the SMS message.|
|date||Yes||The date and time at which the renewal occurred. Format is "yyyy-MM-dd HH:mm:ss" in London UK time.|
|mtusername||Yes *||The SMS Gateway MT account associated with the subscription.|
* May not be present for some older integrations.
The following is an example renewal notification. The renewal occured at 2008-01-01 00:12:20, for a subscription which was set up by an SMS message with the SMS ID 12345678 for cell phone number 16463211246, which is on AT&T Mobility:
Your server should return an HTTP 200 response with a non-empty body.
When sending HTTP GETs we will retry a request which fails after a timeout (currently 60 seconds), or which returns a non-200 response. It is the partner's responsibility to filter duplicate requests - these might occur if for some reason we did not receive the HTTP response from a previous attempt within 60 seconds.
To ensure the authenticity of the HTTP requests, you should only accept requests from the following IP addresses:
- 184.108.40.206 - 220.127.116.11 (18.104.22.168/23)
- 22.214.171.124 - 126.96.36.199 (188.8.131.52/24)
- 184.108.40.206 - 220.127.116.11 (18.104.22.168/22)
The HTTP endpoint can be an HTTPS (SSL) URL to protect the data whilst in transit.