Check credit balance
API URL
The URL used to send the HTTP requests:
https://sms.gretor.net/api/1.0/simple/info
Parameters table
| PARAMETER NAME | VALUE | MANDATORY | DEFAULT VALUE |
|---|---|---|---|
| application_id | Application indentificator | Yes | – |
| application_token | Application authentication token | Yes | – |
Response to this command may be:
In case of success:
{
"data": {
"wallet": "bg1805151838000001",
"credit": 215.8138,
"currency": "credits",
"free_messages": 51,
"datetime": "2018-06-13T09:57:21+02:00"
}
}
In case of error:
{
"error": "authentication_failed",
"code": 401
}