21-03-2022 11:58
Метод получения статусов лидов
GET   /main/leads/status
Метод позволяет получить список лидов и их статус в системе(Запрос по всем статусам для каждого лида). При помощи параметров запроса есть возможность запрашивать пакетно.
Запрос
GET /main/leads/status
Описание параметров
Параметр | Обязателен | Тип данных | Описание |
leadIdFrom | О | [int] | ограничение по id лида начиная с leadIdFrom(включительно) |
leadIdTo | О | [int] | ограничение по id лида заканчивая leadIdTo(не включительно) |
leadStatusIdFrom | О | [int] | ограничение по id статуса начиная с leadStatusIdFrom(включительно) |
leadStatusIdTo | О | [int] | ограничение по id статуса заканчивая leadStatusIdTo(не включительно) |
limit | О | [int] | лимит кол-ва записей в результате |
offset | О | [int] | отступ от начала при заданном лимите |
Ответ
{
"status": "ok",
"timestamp": 1647851575152,
"data": [
{
"leadId": 1863,
"leadStatusId": 8463,
"status": "CONTRACT",
"info": null,
"statusTimestamp": 1647263876936
},
{
"leadId": 1863,
"leadStatusId": 8462,
"status": "APPROVED",
"info": null,
"statusTimestamp": 1647263763099
},
{
"leadId": 1863,
"leadStatusId": 8461,
"status": "ROSFINMON_OK",
"info": null,
"statusTimestamp": 1647263749440
},
{
"leadId": 1863,
"leadStatusId": 8460,
"status": "CHECK",
"info": null,
"statusTimestamp": 1647263748078
},
{
"leadId": 1863,
"leadStatusId": 8459,
"status": "WAITING",
"info": null,
"statusTimestamp": 1647263748060
},
{
"leadId": 1862,
"leadStatusId": 8458,
"status": "CONTRACT",
"info": null,
"statusTimestamp": 1647263289375
},
{
"leadId": 1862,
"leadStatusId": 8457,
"status": "APPROVED",
"info": null,
"statusTimestamp": 1647263196807
},
{
"leadId": 1862,
"leadStatusId": 8456,
"status": "ROSFINMON_OK",
"info": null,
"statusTimestamp": 1647263171466
},
{
"leadId": 1862,
"leadStatusId": 8455,
"status": "CHECK",
"info": null,
"statusTimestamp": 1647263169769
},
{
"leadId": 1862,
"leadStatusId": 8454,
"status": "WAITING",
"info": null,
"statusTimestamp": 1647263169752
},
{
"leadId": 1861,
"leadStatusId": 8453,
"status": "ROSFINMON_OK",
"info": null,
"statusTimestamp": 1647262210168
},
{
"leadId": 1861,
"leadStatusId": 8452,
"status": "CHECK",
"info": null,
"statusTimestamp": 1647262208852
},
{
"leadId": 1861,
"leadStatusId": 8451,
"status": "WAITING",
"info": null,
"statusTimestamp": 1647262208838
},
{
"leadId": 1860,
"leadStatusId": 8450,
"status": "CONTRACT",
"info": null,
"statusTimestamp": 1647261981915
},
{
"leadId": 1860,
"leadStatusId": 8449,
"status": "APPROVED",
"info": null,
"statusTimestamp": 1647261716478
},
{
"leadId": 1860,
"leadStatusId": 8448,
"status": "ROSFINMON_OK",
"info": null,
"statusTimestamp": 1647261654582
},
{
"leadId": 1860,
"leadStatusId": 8447,
"status": "CHECK",
"info": null,
"statusTimestamp": 1647261651552
},
{
"leadId": 1860,
"leadStatusId": 8446,
"status": "WAITING",
"info": null,
"statusTimestamp": 1647261651539
},
{
"leadId": 1859,
"leadStatusId": 8444,
"status": "APPROVED",
"info": null,
"statusTimestamp": 1647259374549
},
{
"leadId": 1859,
"leadStatusId": 8442,
"status": "ROSFINMON_OK",
"info": null,
"statusTimestamp": 1647259339794
},
{
"leadId": 1859,
"leadStatusId": 8441,
"status": "CHECK",
"info": null,
"statusTimestamp": 1647259339004
},
{
"leadId": 1859,
"leadStatusId": 8440,
"status": "WAITING",
"info": null,
"statusTimestamp": 1647259338991
},
{
"leadId": 1858,
"leadStatusId": 8439,
"status": "CONTRACT",
"info": null,
"statusTimestamp": 1647258630958
},
{
"leadId": 1858,
"leadStatusId": 8438,
"status": "APPROVED",
"info": null,
"statusTimestamp": 1647258244550
},
{
"leadId": 1858,
"leadStatusId": 8437,
"status": "ROSFINMON_OK",
"info": null,
"statusTimestamp": 1647258201963
},
{
"leadId": 1858,
"leadStatusId": 8436,
"status": "CHECK",
"info": null,
"statusTimestamp": 1647258199334
},
{
"leadId": 1858,
"leadStatusId": 8435,
"status": "WAITING",
"info": null,
"statusTimestamp": 1647258199319
},
{
"leadId": 1857,
"leadStatusId": 8434,
"status": "ROSFINMON_OK",
"info": null,
"statusTimestamp": 1647257519664
},
{
"leadId": 1857,
"leadStatusId": 8433,
"status": "CHECK",
"info": null,
"statusTimestamp": 1647257516479
},
{
"leadId": 1857,
"leadStatusId": 8432,
"status": "WAITING",
"info": null,
"statusTimestamp": 1647257516447
},
{
"leadId": 1856,
"leadStatusId": 8431,
"status": "ROSFINMON_OK",
"info": null,
"statusTimestamp": 1647257142905
},
{
"leadId": 1856,
"leadStatusId": 8430,
"status": "CHECK",
"info": null,
"statusTimestamp": 1647257140972
},
{
"leadId": 1856,
"leadStatusId": 8429,
"status": "WAITING",
"info": null,
"statusTimestamp": 1647257140944
},
{
"leadId": 1855,
"leadStatusId": 8428,
"status": "ROSFINMON_OK",
"info": null,
"statusTimestamp": 1647249380889
},
{
"leadId": 1855,
"leadStatusId": 8427,
"status": "CHECK",
"info": null,
"statusTimestamp": 1647249379521
},
{
"leadId": 1855,
"leadStatusId": 8426,
"status": "WAITING",
"info": null,
"statusTimestamp": 1647249379497
},
{
"leadId": 1854,
"leadStatusId": 8425,
"status": "CONTRACT",
"info": null,
"statusTimestamp": 1647248117885
},
{
"leadId": 1854,
"leadStatusId": 8423,
"status": "APPROVED",
"info": null,
"statusTimestamp": 1647247844515
},
{
"leadId": 1854,
"leadStatusId": 8422,
"status": "ROSFINMON_OK",
"info": null,
"statusTimestamp": 1647247423826
},
{
"leadId": 1854,
"leadStatusId": 8421,
"status": "CHECK",
"info": null,
"statusTimestamp": 1647247421804
},
{
"leadId": 1854,
"leadStatusId": 8420,
"status": "WAITING",
"info": null,
"statusTimestamp": 1647247421785
},
{
"leadId": 1853,
"leadStatusId": 8418,
"status": "APPROVED",
"info": null,
"statusTimestamp": 1647241798169
},
{
"leadId": 1853,
"leadStatusId": 8416,
"status": "ROSFINMON_OK",
"info": null,
"statusTimestamp": 1647241387340
},
{
"leadId": 1853,
"leadStatusId": 8415,
"status": "CHECK",
"info": null,
"statusTimestamp": 1647241383538
},
{
"leadId": 1853,
"leadStatusId": 8414,
"status": "WAITING",
"info": null,
"statusTimestamp": 1647241383422
},
{
"leadId": 1852,
"leadStatusId": 8413,
"status": "ROSFINMON_OK",
"info": null,
"statusTimestamp": 1646819859336
},
{
"leadId": 1852,
"leadStatusId": 8412,
"status": "CHECK",
"info": null,
"statusTimestamp": 1646819857793
},
{
"leadId": 1852,
"leadStatusId": 8411,
"status": "WAITING",
"info": null,
"statusTimestamp": 1646819857770
},
{
"leadId": 1851,
"leadStatusId": 8410,
"status": "DENIED",
"info": null,
"statusTimestamp": 1646394929075
},
{
"leadId": 1851,
"leadStatusId": 8409,
"status": "ROSFINMON_OK",
"info": null,
"statusTimestamp": 1646394885524
}
]
}
Описание параметров
Параметр | Обязателен | Тип данных | Описание |
leadId | R | [int] | id лида |
leadStatusId | R | [int] | id статуса лида |
status | R | [string] | значение статуса |
info | R | [string] | информация |
statusTimestamp | R | [timestamp] | timestamp добавления статуса |