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


Метод getMQuery

Выводит подробную информацию о заявке по ее идентификатору (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":"\u0414\u0438\u0430\u043B\u043E\u0433"},"date_create":"1432175366","domen_id":"1","domen":"site.ru","visitor_name":"Василий","gclid":"11111111.1111111111","application":"Viber","nomer_obr_domen":"1","nomer_obr_client":"1","page_from":"http:\/\/site.ru\/","first_page":"http:\/\/site.ru\/","utm_source":"", "utm_medium":"", "utm_campaign":"", "utm_content":"", "utm_term":"", "count_messages_from_operator":"7", "count_messages_from_client":"7"}}

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
            [visitor_name] => Василий
            [gclid] => 11111111.1111111111
            [application] => Viber
            [nomer_obr_domen] => 1
            [nomer_obr_client] => 1
            [page_from] => http://site.ru/
            [first_page] => http://site.ru/
            [utm_source] => 
            [utm_medium] => 
            [utm_campaign] => 
            [utm_content] => 
            [utm_term] => 
            [count_messages_from_operator] => 7
            [count_messages_from_client] => 7
        )

)