21-03-2022 11:58

Метод получения текущих статусов лидов

GET   /main/leads/current-status

Метод позволяет получить список лидов и их ТЕКУЩИЙ статус в системе. При помощи параметров запроса есть возможность запрашивать пакетно.

Запрос

GET bs-core/main/leads/current-status
Описание параметров
Параметр Обязателен Тип данных Описание
leadIdFrom О [int]

ограничение по id лида начиная с leadIdFrom(включительно)

leadIdTo О [int]

ограничение по id лида заканчивая leadIdTo(не включительно)

leadStatusIdFrom О [int]

ограничение по id статуса начиная с leadStatusIdFrom(включительно)

leadStatusIdTo О [int]

ограничение по id статуса заканчивая leadStatusIdTo(не включительно)

limit О [int]

лимит кол-ва записей в результате

offset О [int]

отступ от начала при заданном лимите;

LocalDateTime currentDate О [date]

дата, на которую выбирается статус(по умолчанию устанавливается текущая дата)

Ответ


                        {
    "status": "ok",
    "timestamp": 1647852870878,
    "data": [
        {
            "leadId": 1863,
            "leadStatusId": 8463,
            "status": "CONTRACT",
            "info": null,
            "statusTimestamp": 1647263876936
        },
        {
            "leadId": 1862,
            "leadStatusId": 8458,
            "status": "CONTRACT",
            "info": null,
            "statusTimestamp": 1647263289375
        },
        {
            "leadId": 1861,
            "leadStatusId": 8453,
            "status": "ROSFINMON_OK",
            "info": null,
            "statusTimestamp": 1647262210168
        },
        {
            "leadId": 1860,
            "leadStatusId": 8450,
            "status": "CONTRACT",
            "info": null,
            "statusTimestamp": 1647261981915
        },
        {
            "leadId": 1859,
            "leadStatusId": 8444,
            "status": "APPROVED",
            "info": null,
            "statusTimestamp": 1647259374549
        },
        {
            "leadId": 1858,
            "leadStatusId": 8439,
            "status": "CONTRACT",
            "info": null,
            "statusTimestamp": 1647258630958
        },
        {
            "leadId": 1857,
            "leadStatusId": 8434,
            "status": "ROSFINMON_OK",
            "info": null,
            "statusTimestamp": 1647257519664
        },
        {
            "leadId": 1856,
            "leadStatusId": 8431,
            "status": "ROSFINMON_OK",
            "info": null,
            "statusTimestamp": 1647257142905
        },
        {
            "leadId": 1855,
            "leadStatusId": 8428,
            "status": "ROSFINMON_OK",
            "info": null,
            "statusTimestamp": 1647249380889
        },
        {
            "leadId": 1854,
            "leadStatusId": 8425,
            "status": "CONTRACT",
            "info": null,
            "statusTimestamp": 1647248117885
        },
        {
            "leadId": 1853,
            "leadStatusId": 8418,
            "status": "APPROVED",
            "info": null,
            "statusTimestamp": 1647241798169
        },
        {
            "leadId": 1852,
            "leadStatusId": 8413,
            "status": "ROSFINMON_OK",
            "info": null,
            "statusTimestamp": 1646819859336
        },
        {
            "leadId": 1851,
            "leadStatusId": 8410,
            "status": "DENIED",
            "info": null,
            "statusTimestamp": 1646394929075
        },
        {
            "leadId": 1850,
            "leadStatusId": 8406,
            "status": "TECH_FAULT",
            "info": null,
            "statusTimestamp": 1646394445274
        },
        {
            "leadId": 1849,
            "leadStatusId": 8402,
            "status": "APPROVED",
            "info": null,
            "statusTimestamp": 1646387940877
        },
        {
            "leadId": 1848,
            "leadStatusId": 8398,
            "status": "APPROVED",
            "info": null,
            "statusTimestamp": 1646077944063
        },
        {
            "leadId": 1847,
            "leadStatusId": 8397,
            "status": "APPROVED",
            "info": null,
            "statusTimestamp": 1646077703914
        },
        {
            "leadId": 1846,
            "leadStatusId": 8396,
            "status": "DENIED",
            "info": null,
            "statusTimestamp": 1646077645389
        },
        {
            "leadId": 1845,
            "leadStatusId": 8386,
            "status": "ROSFINMON_OK",
            "info": null,
            "statusTimestamp": 1646077377135
        },
        {
            "leadId": 1842,
            "leadStatusId": 8383,
            "status": "APPROVED",
            "info": null,
            "statusTimestamp": 1645645433831
        },
        {
            "leadId": 1844,
            "leadStatusId": 8382,
            "status": "APPROVED",
            "info": null,
            "statusTimestamp": 1645613050961
        },
        {
            "leadId": 1843,
            "leadStatusId": 8378,
            "status": "ROSFINMON_OK",
            "info": null,
            "statusTimestamp": 1645612964759
        },
        {
            "leadId": 1841,
            "leadStatusId": 8372,
            "status": "APPROVED",
            "info": null,
            "statusTimestamp": 1645612676898
        },
        {
            "leadId": 1840,
            "leadStatusId": 8368,
            "status": "APPROVED",
            "info": null,
            "statusTimestamp": 1645610786454
        },
        {
            "leadId": 1839,
            "leadStatusId": 8364,
            "status": "APPROVED",
            "info": null,
            "statusTimestamp": 1645610422918
        },
        {
            "leadId": 1838,
            "leadStatusId": 8360,
            "status": "DENIED",
            "info": null,
            "statusTimestamp": 1645610229988
        },
        {
            "leadId": 1837,
            "leadStatusId": 8356,
            "status": "CONTRACT",
            "info": null,
            "statusTimestamp": 1645534250758
        },
        {
            "leadId": 1836,
            "leadStatusId": 8351,
            "status": "CLIENT_REFUSAL",
            "info": null,
            "statusTimestamp": 1645534095501
        },
        {
            "leadId": 1835,
            "leadStatusId": 8346,
            "status": "APPROVED",
            "info": null,
            "statusTimestamp": 1644489321210
        },
        {
            "leadId": 1834,
            "leadStatusId": 8342,
            "status": "ROSFINMON_OK",
            "info": null,
            "statusTimestamp": 1643897484474
        },
        {
            "leadId": 1833,
            "leadStatusId": 8339,
            "status": "APPROVED",
            "info": null,
            "statusTimestamp": 1643872047192
        },
        {
            "leadId": 1832,
            "leadStatusId": 8335,
            "status": "APPROVED",
            "info": null,
            "statusTimestamp": 1643808483503
        },
        {
            "leadId": 1831,
            "leadStatusId": 8330,
            "status": "APPROVED",
            "info": null,
            "statusTimestamp": 1643806718702
        },
        {
            "leadId": 1830,
            "leadStatusId": 8322,
            "status": "APPROVED",
            "info": null,
            "statusTimestamp": 1643805639505
        },
        {
            "leadId": 1829,
            "leadStatusId": 8317,
            "status": "APPROVED",
            "info": null,
            "statusTimestamp": 1643801744791
        },
        {
            "leadId": 1827,
            "leadStatusId": 8307,
            "status": "APPROVED",
            "info": null,
            "statusTimestamp": 1643794781678
        },
        {
            "leadId": 1826,
            "leadStatusId": 8306,
            "status": "APPROVED",
            "info": null,
            "statusTimestamp": 1643794131363
        },
        {
            "leadId": 1828,
            "leadStatusId": 8305,
            "status": "APPROVED",
            "info": null,
            "statusTimestamp": 1643793493833
        },
        {
            "leadId": 1825,
            "leadStatusId": 8301,
            "status": "DENIED",
            "info": null,
            "statusTimestamp": 1643793294504
        },
        {
            "leadId": 1824,
            "leadStatusId": 8297,
            "status": "DENIED",
            "info": null,
            "statusTimestamp": 1643793182899
        },
        {
            "leadId": 1823,
            "leadStatusId": 8287,
            "status": "ROSFINMON_OK",
            "info": null,
            "statusTimestamp": 1643792859590
        },
        {
            "leadId": 1822,
            "leadStatusId": 8284,
            "status": "ROSFINMON_OK",
            "info": null,
            "statusTimestamp": 1643792825903
        },
        {
            "leadId": 1821,
            "leadStatusId": 8281,
            "status": "ROSFINMON_OK",
            "info": null,
            "statusTimestamp": 1643792584981
        },
        {
            "leadId": 1820,
            "leadStatusId": 8278,
            "status": "ROSFINMON_OK",
            "info": null,
            "statusTimestamp": 1643792335102
        },
        {
            "leadId": 1819,
            "leadStatusId": 8275,
            "status": "ROSFINMON_OK",
            "info": null,
            "statusTimestamp": 1643792127375
        },
        {
            "leadId": 1818,
            "leadStatusId": 8272,
            "status": "ROSFINMON_OK",
            "info": null,
            "statusTimestamp": 1643791900619
        },
        {
            "leadId": 1817,
            "leadStatusId": 8269,
            "status": "ROSFINMON_OK",
            "info": null,
            "statusTimestamp": 1643791814416
        },
        {
            "leadId": 1816,
            "leadStatusId": 8266,
            "status": "ROSFINMON_OK",
            "info": null,
            "statusTimestamp": 1643791553254
        },
        {
            "leadId": 1815,
            "leadStatusId": 8263,
            "status": "ROSFINMON_OK",
            "info": null,
            "statusTimestamp": 1643791354274
        },
        {
            "leadId": 1814,
            "leadStatusId": 8260,
            "status": "DENIED",
            "info": null,
            "statusTimestamp": 1643743807409
        }
    ]
}
                    
Описание параметров
Параметр Обязателен Тип данных Описание
leadId R [int]

id лида

leadStatusId R [int]

id статуса лида

status R [string]

значение статуса

info R [string]

информация

statusTimestamp R [timestamp]

timestamp добавления статуса