Skip to content

Account

Receiving account

To receive account data it is required to call GET /billing-api/companies/current/account, sending authorization data in the heading.

Request parameters

No parameters

Request example

curl -X GET "https://api.devino.online/billing-api/companies/current/account" \
-H "Authorization: Key QWxhZGRpbjpvcGVuIHNlc2FtZQ=="

Response parameters

Parameter Data type Description
account object Account data
companyId integer Company ID
accountType string Account type. Possible values:
PREPAID - prepaid,
POSTPAID - postpaid
balance bigDecimal Balance amount
credit bigDecimal Credit amount
reserveSms bigDecimal Source addresse's SMS subscription fee reserve amount
reserveViber bigDecimal Source addresse's VIBER subscription fee reserve amount
reserve bigDecimal Total reserve amount
currencyId integer Currency ID
isBlocked boolean Financial block status. Possible values:
0 - not blocked,
1 - blocked
disableThreshold bigDecimal Balance threshold for the financial block
notifyThreshold intbigDecimaleger Balance threshold for the sending notification

Response example

{
  "result": {
    "account": {
      "companyId": 111,
      "accountType": "PREPAID",
      "balance": 1000.8,
      "credit": 0,
      "reserveSms": 0,
      "reserveViber": 0,
      "reserve": 0,
      "currencyId": 1,
      "isBlocked": false,
      "disableThreshold": 0,
      "notifyThreshold": 0
    }
  }
}