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


Метод getQuery

Выводит подробную информацию о заявке по ее идентификатору (ID).

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

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

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

JSON:
{"result":1,"response":{"id":"376500","phone":"+7(999)999-99-99","status":{"code":"0","title":"\u041d\u043e\u0432\u0430\u044f"},"date_create":"1432175366","domen_id":"1","domen":"site.ru","manager_id":"0","manager_name":null,"nomer_obrasheniya":1,"obrasheniya_do":[],"time_in_site":"321682","time_zone":"Moscow+0","ip_adress":"178.186.255.255","udobnoe_vremya":"10:00","query_type":"\u041d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e","posetitel_name":"Василий","comment":"Договорился о встрече 10.01","sposob_pokaza_scb":{"code":"2","title":"\u041f\u043e \u0432\u043e\u0432\u043b\u0435\u0447\u0435\u043d\u043d\u043e\u0441\u0442\u0438"},"operator_phone":"+7(999)999-99-99","record_url":"","duration":null,"spisano_minut":0,"session_id":"3858472","page_from":"http:\/\/site.ru\/","from_type":"\u0420\u0435\u043a\u043b\u0430\u043c\u043d\u0430\u044f \u043a\u0430\u043c\u043f\u0430\u043d\u0438\u044f UTM","from_prop1":"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: target","from_prop2":"\u041a\u0430\u043d\u0430\u043b: cpc","from_prop3":"campaign: nedvigimost","from_prop4":"content: 1_social"}}

Array
(
    [result] => 1
    [response] => Array
        (
            [id] => 376500
            [phone] => +7(999)999-99-99
            [status] => Array
                (
                    [code] => 0
                    [title] => Новая
                )

            [date_create] => 1432175366
            [domen_id] => 1
            [domen] => site.ru
            [manager_id] => 0
            [manager_name] => 
            [nomer_obrasheniya] => 1
            [obrasheniya_do] => Array
                (
                )

            [time_in_site] => 321682
            [time_zone] => Moscow+0
            [ip_adress] => 178.186.255.255
            [udobnoe_vremya] => 10:00
            [query_type] => Не определено
            [posetitel_name] => Василий
            [comment] => Договорился о встрече 10.01
            [sposob_pokaza_scb] => Array
                (
                    [code] => 2
                    [title] => По вовлеченности
                )

            [operator_phone] => +7(999)999-99-99
            [record_url] => 
            [duration] => 
            [spisano_minut] => 0
            [session_id] => 3858472
            [page_from] => http://site.ru/
            [from_type] => Рекламная кампания UTM
            [from_prop1] => Источник: target
            [from_prop2] => Канал: cpc
            [from_prop3] => campaign: nedvigimost
            [from_prop4] => content: 1_social
        )

)