Professional Documents
Culture Documents
Content
1. General description
2. MO messages forwarding
3. Status messages
4. Sending MT messages
Appendix1
Appendix2
1. General description
All communications between Teracomm and Partner is done via
pure HTTP protocol, with optional SSL/TLS layer or IPSEC tunnel.
Partner should provide endpoint URL and list of allowed IP
addresses.
Teracomms
endpoint
URL,
IP
addresses,
authentication
username/password and any other required parameters will be
provided when Partner's account is fully configured.
All parameters in all requests are passed as HTTP/1.1 GET urlencoded parameters.
All request responses should be plain text HTTP responses, with
HTTP/1.1 status code 200 in the header, and a list of space
separated (ASCII code 32 character) strings in the body.
2. MO messages forwarding
When new MO message is received and matched with one of the
predefined keywords, Teracomm sends HTTP(S) request to the
Partner's endpoint URL with the following HTTP GET parameters:
username
password
msg_id
service_id
type
shortcode
msisdn
mcc
mnc
text
time
OK 100123
3. Status messages
When delivery report for a premium/subscription MT message is
received, or a customer subscription is deactivated, Teracomm
sends HTTP(S) request to the Partner's endpoint URL with the
following HTTP GET parameters:
username
password
msg_id
parent_msg_id
service_id
shortcode
type
msisdn
mcc
mnc
status
code
text
time
4. Sending MT messages
To send an MT message to the customer, Partner needs to send
HTTP(S) request to Teracomm's endpoint URL with the following
HTTP GET parameters:
username
password
msg_id
parent_msg_id
service_id
shortcode
msisdn
FREE_MT
PREMIUM_MT
SUBSCRIBE_MT
RENEW_MT
The short code that this MT will be sent from. Example:
1234
MSISDN of the mobile customer, with international prefix.
Example: 359888123456
mcc
mnc
text
Appendix 1
Teracomm retry scheme
Every request from Teracomm to the Partner, that was not
confirmed by the Partner with appropriate response, according to
the specification, will be retried after:
1st retry : 1 minute
2nd retry : 5 minutes
3rd retry : 60 minutes
After that the request will be logged as unsuccessful and no further
actions will be taken. The log of all unsuccessful requests may be
provided to Partner by Teracomm support if required.
Appendix 2
List of Error Codes / Retry policies
Error
code
-1
retriable
Internal error
1
not retriable
Auth fail
2
not retriable
Undefined shortcode
3
not retriable
Undefined service
4
not retriable
Not allowed type for this service
5
not retriable
Invalid type
6
not retriable
Not allowed short code for this service
101
not retriable
The user is not opted in
102
not retriable
The user is already subscribed
103
not retriable
The user is not subscribed
104
not retriable
Renewal attempt before anniversary date
105
not retriable
Missing mandatory text
106*
not retriable
Corresponding MO required
107
not retriable
Over spending limit
200
retriable
Unsuccesful delivery
*There are more MO requests than the attempted MTs send for
markets where the regulation require mandatory 1:1 ratio