SMS Gateway HTTP API

Response Format

Response Format

The SMS HTTP Interface will return an HTTP response with status 200 (OK) containing the message identifiers of the sent SMS messages. Each message identifier has the associated destination MSISDN and gateway status written on the same line in the following format:

gatewaystatus, messageid, destination

 

Successful SMS messages

Successfully sent SMS messages will always have their gatewaystatus set to 1, their messageid and destination MSISDN, each in a separate line in the HTTP response.

 

Example:
1,11737143241234560101,46123456789

 

Failed SMS messages

SMS messages which have been failed to be sent by the SMS HTTP Interface will always have their gateway status set to 0 and an error code will be present instead of a the messageid.

 

Example:
0,4,46123456789 
0,1

 

The following errorcodes are used to identify the cause of why the message was not sent:

1: Bad login details

2: Problem with the message

3: Bad to number

4: Not enough credits to send message

 

Get Started