Получение данных по клиентам
post
https://api.lotinfo.ru
/v1/CLIENTS
Список клиентов
POST https://api.lotinfo.ru/v1/CLIENTS?TOKEN={ваш_токен} HTTP/1.1
Content-Type: application/json
{
"code": 101010,
"limit": 2,
"offset": 10,
"filter": {
"userId": 123,
"clientCat": ["clientc_1", "clientc_2"],
"delClient": 2,
"typeClient": "nocontract",
"typeContract": "written",
"pt": "orders",
"objectTypes": [3, 6],
"regionName": "Москва",
"cityName": "Москва"
},
"order": {
"addDate": "desc",
"filter1": "asc"
},
"projection": ["id", "addDate", "objects"]
}
"fieldType": "contact"
id
- ID контакта. value
- Значение. type
- Тип. Значения: "mobile" - мобильный телефон, "city" - городской телефон, "email" - email, "other" - другой. comment
- Комментарий. general
- Главный номер. sky
- Отслеживание."contacts": {
"fieldName": "Контакты",
"fieldType": "contact",
"fieldMulti": "multi",
"values": [
{
"id": "11332",
"value": "79778881111",
"type": "mobile",
"comment": "комментарий 2",
"general": null,
"sky": null
}
]
},
"fieldType": "comment"
id
- ID комментария. value
- Текст комментария. date
- Дата комментария. userId
- ID пользователя, который оставил комментарий."comments": {
"fieldName": "Комментарии",
"fieldType": "comment",
"fieldMulti": "multi",
"values": [
{
"id": "68614",
"value": "комментарий 1",
"date": "1620227708",
"userId": "123"
},
{
"id": "68615",
"value": "комментарий 2",
"date": "1620227708",
"userId": "123"
}
]
}
"fieldType": "object"
id
- ID объекта. lpr
- Лицо принимающее решения. name
- Комментарий. doled
- Доля."objectsList": {
"fieldName": "Объекты",
"fieldType": "object",
"fieldMulti": "multi",
"values": [
{
"id": "1001",
"lpr": "1",
"name": "Объект 1",
"doled": ""
},
{
"id": "1002",
"lpr": "1",
"name": "Объект 2",
"doled": ""
}
]
}
"fieldType": "order"
id
- ID комментария. name
- Комментарий."ordersList": {
"fieldName": "Заявки",
"fieldType": "order",
"fieldMulti": "multi",
"values": [
{
"id": "10001",
"name": ""
},
{
"id": "10002",
"name": ""
}
]
}
"fieldType": "media"
link
- Ссылка на документ. typeContent
- Тип контента. name
- Название документа."documents": {
"fieldName": "Документы",
"fieldType": "docs",
"fieldMulti": "multi",
"values": [
{
"link": "https:\/\/files.lotinfo.ru\/usersFiles\/fdf6.jpg",
"typeContent": "image",
"name": "Документ"
}
]
}
"fieldType": "serviceList"
id
- ID услуги. addDate
- Дата обращения. contractStatus
- Статус договора. Значения: "open" - Действителен, "close" - Завершен. status
- Статус услуги (числом). statusText
- Статус услуги (текстом). serviceName
- Наименование услуги. comission
- Комиссия (в рублях)."serviceList": {
"fieldName": "Оказываемые услуги",
"fieldType": "serviceList",
"fieldMulti": "multi",
"values": [
{
"id": 8528952,
"addDate": "1630393689",
"status": "1",
"statusText": "В работе",
"serviceName": "Ипотека",
"comission": "0"
}
]
}
"fieldType": "clientServiceList"
addDate
- Дата / Время, name
- Наименование услуги.Last modified 5mo ago