Credits Availability Check

An API can also be used to check the credits in your our account which can be in the following format:

curl -X GET \
<BASE_URL>&method=account.credits'

API Parameter Specifications

The API parameter specifications are described in the following sections.

Mandatory Parameters

The mandatory parameters in the HTTP API are tabulated below:

Parameter Description Expected Values
URL URL of your SMS Service URL
method Predefined method account.credits

Optional Parameters

The optional parameters in the HTTP API are tabulated below:

Parameter Description Expected Values
format Output format should be as specified by this variable XML/PHP/JSON/JSONP. Default response will be in JSON

Example Responses

JSON

{
    "status": "OK",
    "code": "200",
    "message": "",
    "data":
    {
        "credits": "-22"
    }
}

Error Response

{
    "status": "A401A",
    "message": "Method Not Implemented"
}

Response Data

Field Description
status It indicates the success or failure of your request.
message It indicates the success or failure message.
data All the response is wrapped in side data
credits Displays the credits available in the account