With the HTTP(s) API it is possible to get an actuall price for sending a batch of messages. this can be usefull if you want to make sure the balance on the account is sufficient before starting to send a larger batch.

Call https://api.suresms.com/script/v2/GetMessagePrice.aspx with the following parameters:

Login, password and messageid or startutcdatetime and endutcdatetime

Login Your SureSMS account login Mandatory
Password  Your SureSMS account password Mandatory
Text The message text. Remember to URL encode this field. Mandatory
To The recipient of the message. (remember countrycode) Mandatory
From You are able to set a sender id here. Max 11 chars. Setting special chars as sender, will make the SMS turn to 8bit encoding and hence it can only be 71 chars before being split into two messages. You need the SenderID approved otherwise you will get a 401. Mandatory

Note: The parameters are NOT case senstive.

Example :

If your SureSMS account is "XXX” and your code is 8r7e3.

If you want to find the price of a message call :

https://api.suresms.com/script/getmessageprice.aspx?login=XXX&password=8r7e3&to=+4540818824&from=Hest&text=Hello%20world

You will then get the response in the prefered currency of the user.

Result

You will then get the response in the prefered currency of the user.