Check credit balance
API URL
The URL used to send the HTTP requests:
https://portal.bulkgate.com/api/2.0/advanced/info
POST /api/2.0/advanced/info HTTP/1.1
Host: portal.bulkgate.com
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/2.0/advanced/info HTTP/1.1
Host: portal.bulkgate.com
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
}