Skip to content
Wire2AirWire2Air

Credit balance

Legacy

Check how many SMS credits are left on your account with the legacy HTTP API (checksmscredits.aspx).

Last updated

POSTGEThttps://smsapi.wire2air.com/smsadmin/checksmscredits.aspx
Credential
User ID, password and VASID, sent as request parameters
Response
Plain text

Parameters

Parameters
ParameterDescription
USERID
stringrequired
in body
Your Wire2Air user ID.
PASSWORD
stringrequired
in body
Your Wire2Air password.
VASID
stringrequired
in body
Your VASID.

Examples

curl "https://smsapi.wire2air.com/smsadmin/checksmscredits.aspx" \
  --data-urlencode "USERID=YOUR_USERID" \
  --data-urlencode "PASSWORD=YOUR_PASSWORD" \
  --data-urlencode "VASID=YOUR_VASID"

Response

ResponseMeaning
{CREDIT}Your remaining SMS credits, as a number.
ERR: 301: Failed authenticationWrong user ID, password or VASID.

A useful pattern is to call this before a large bulk send and stop if the balance is too low, rather than discover ERR: 305: Not enough credits part-way through.