Документация SMARTCALLBACK API


Метод getBalance

Получает полный массив о доступных минутах, звонках, времени действия.

Входные данные

client_id (int) || token (string(20)) [One is REQUIRED] - Параметры идентификации клиента, для которого обращается API
domen_id (int) || domen (string(100)) [One is REQUIRED] - Идентификатор домена или наименование домена, для которого необходимо получить Баланс

Результирующие данные

JSON:
{"result":1,"response":{"tarif_id":"1","tarif_name":"PRO","tarif_days":"30","invoice_id":"1","tarif_balance":617,"promo_balance":0,"invoice_promo_id":0,"dop_balance":0,"invoice_dop_id":0,"SMS_balance":"508","queries_balance":"0","calls_balance":"0","fact_rashod":391,"fact_calls":0,"date_start":"1430431201","date_finish":"1433023200","expired_text":null}}

Array
(
    [result] => 1
    [response] => Array
        (
            [tarif_id] => 1
            [tarif_name] => PRO
            [tarif_days] => 30
            [invoice_id] => 1
            [tarif_balance] => 617
            [promo_balance] => 0
            [invoice_promo_id] => 0
            [dop_balance] => 0
            [invoice_dop_id] => 0
            [SMS_balance] => 508
            [queries_balance] => 0
            [calls_balance] => 0
            [fact_rashod] => 391
            [fact_calls] => 0
            [date_start] => 1430431201
            [date_finish] => 1433023200
            [expired_text] => 
        )

)