Документация 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"},"type":{"code":"1","title":"CallBack"},"date_create":"1432175366","domen_id":"1","domen":"site.ru","manager_id":"0","manager_name":null,"nomer_obrasheniya":1, "nomer_obrasheniya_by_client": 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","gclid":"11111111.1111111111","page_from":"http:\/\/site.ru\/","last_page":"http:\/\/site.ru\/","last_page_info":{"title":"page_title","firstH1Tag":"h1_tag"},"personalDataProcessing":"1", "newsletter": "1", "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", "version_id" : 111111, "people_id" : 111111, "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] => Новая
                )

            [type] => Array
                (
                    [code] => 1
                    [title] => CallBack
                )

            [date_create] => 1432175366
            [domen_id] => 1
            [domen] => site.ru
            [manager_id] => 0
            [manager_name] => 
            [nomer_obrasheniya] => 1
            [nomer_obrasheniya_by_client] => 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
            [gclid] => 11111111.1111111111
            [page_from] => http://site.ru/
            [last_page] => http://site.ru/
            [last_page_info] => Array
                (
                    [title] => page_title
                    [firstH1Tag] => h1_tag
                )

            [personalDataProcessing] => 1
            [newsletter] => 1
            [from_type] => Рекламная кампания UTM
            [from_prop1] => Источник: target
            [version_id] => 111111
            [people_id] => 111111
            [from_prop2] => Канал: cpc
            [from_prop3] => campaign: nedvigimost
            [from_prop4] => content: 1_social
        )

)