Skip to main content

Troubleshooting SMS

When you send an SMS, the SMS API returns a JSON response:

{
"success": true,
"result": {
"message_id": "580000908Q23PJCF",
"from": "SendLime",
"to": "8801287119821",
"price": "0.19",
"status": "accepted",
"network": "47002"
},
"error_code": null,
"error_message": null
}

The error_code field tells you if the message was successfully queued for sending. Null indicates success; a non-null value means something went wrong.

info

A error_code of null in the API response does not indicate that SendLime delivered your message.

caution

As per the BTRC guidelines, promotional messages have to be in Bangla.

SMS API error codes

If the SMS API returns a non-null error_code value then use the following table to determine what went wrong:

error_codeMeaningDescription
nullSuccessThe message was successfully accepted for delivery.
6678Missing ParametersYour request is missing one of the required parameters: to, text, api_key, or api_secret.
8534Invalid ParametersThe value of one or more parameters is invalid.
6910Bad CredentialsYour API key and/or secret are incorrect, invalid or disabled.
4115Identity Not VerifiedYour identity is not verified.
3622Insufficient FundsYou don't have sufficient funds.
5779Message Too LongThe message length exceeds the maximum allowed.
2773Internal ErrorAn error has occurred in the platform whilst processing this message.