Please find below a list of the most common API error responses, and possible reasons and corrections for them.

A response is defined as an error when the code is not 1, as result code 1 denotes an SMS succesfully delivered to the numbers network.

Message: Missing Required Fields Code: 501

Notes: This message means that the gateway did not receive enough information for an attempted delivery to be possible, this will occur when any of username, password, to and message are not supplied, if these are all sent, check that they are being sent as lowercase fields.

Message: Invalid Authentication Data Code: 502

Notes: This message means that either your submitted username was not found in the accounts, or the password supplied did not match the password for the username you sent. This would generally caused by invalid details, but these fields are case-sensitive, so check you sent them in the correct case.

Message: Insufficient Balance Code: 503

Notes: This message will only occur after you are succesfully logged into your account, and means that you do not have sufficient credits to send an SMS, this can only be corrected by topping up your credits balance.

Message: Invalid Recipient Code: 504

Notes: This error means that a problem was detected with the recipient number, most commonly caused by non-numeric characters in the to value.

Message: Error retrieving From Value Code: 511

Notes: This is an issue with the API, if this error is encountered an admin should be notified, along with the result ID.

There are other error messages that can be encountered, but it is unlikely that these will ever happen, if you do get an error that isn’t documented, and you are not sure what it means, please contact us, and we will help you understand the message.

As usual, you can contact us by commenting on these posts, in our forum, or by email to smsapi@hostingireland.ie

If the requested logfile is not in your account, or your login details are incorrect you will receive an error notifying you of the failure to receive a logList, you will also receive an error if you do not yet have any logs for any actions for your account.

Any comments on the logging system or the format of the XML should be entered through our forum, or in reply to this post.

An application making automated use of Hostingireland’s SMS gateway via the provided API on sms.hostingireland.ie sent just short of one hundred SMS through the gateway today, using an automated contact script.

After a painless time changing the existing code from its existing SMS provider, to Hostingirelands SMS gateway API code, the script was error checked and ready to run.

The results were most pleasing, all the SMS send requests were received by the Gateway correctly and every SMS directed to a valid phone number was received.

Processing the request took just over 1 minute to send all of the SMS to the recipients.

After receiving quite a few requests for bulk SMS services, hostingireland initiated development of an SMS gateway, to allow customers to send SMS to mobile devices around the planet, using an automated script to our SMS API.

After some beta testing the product has recently been completed, and this website and blog have been created to document the progress of the software, and offer support to current customers, and interested users.

We can be contacted at smsapi@hostingireland.ie, or you can make contact with us through our forum at http://www.textmessage.ie/forum.