Search APIs helpdesk

Check credit balance

You are here:

API URL

The URL used to send the HTTP requests:

https://sms.gretor.net/api/1.0/advanced/info

POST /api/1.0/advanced/info HTTP/1.1
Host: sms.gretor.net
Content-Type: application/json
Cache-Control: no-cache

 Parameters table

PARAMETER NAME VALUE MANDATORY DEFAULT VALUE
application_id Application indentificator Yes
application_token Application authentication token Yes

Request example

POST /api/1.0/advanced/info HTTP/1.1
Host: sms.gretor.net
Content-Type: application/json
Cache-Control: no-cache

{
    "application_id": "<APPLICATION_ID>", 
    "application_token": "<APPLICATION_TOKEN>"
}

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
}