Client filters

create

request
POST /api/v2/clients/filters HTTP/1.1

{
  "name" : "Filter from test",
  "authorId" : 1000000001,
  "clientParameters" : {
    "id" : null,
    "firstName" : "First",
    "familyName" : "Family",
    "gender" : "MALE",
    "ageFrom" : 18,
    "ageTo" : 18,
    "birthdayFrom" : "01.01",
    "birthdayTo" : "31.03",
    "birthdayInDays" : null,
    "hasOrder" : true,
    "orderSumFrom" : 100.0,
    "orderSumTo" : 10000.5,
    "hasCard" : true,
    "cardSumFrom" : 20.8,
    "cardSumTo" : 6000.0,
    "assistantId" : 1000000000,
    "lastCallFrom" : "2024-01-01",
    "lastCallTo" : "2024-02-01",
    "lastSmsFrom" : "2024-01-31",
    "lastSmsTo" : "2024-02-28",
    "lastEmailFrom" : "2023-01-01",
    "lastEmailTo" : "2024-02-10",
    "lastPrivateSmsFrom" : "2023-06-20",
    "lastPrivateSmsTo" : "2023-06-20",
    "daysToOffer" : 5,
    "cardEditedDays" : 15,
    "mobile" : true,
    "daysToExpiration" : 8,
    "cities" : [ "Санкт-Петербург", "Москва" ]
  },
  "notMadeOrderParameters" : {
    "id" : null,
    "lastOrderDaysAgoFrom" : 14,
    "lastOrderDaysAgoTo" : 16,
    "status" : "CREATED",
    "sumFrom" : 3000.0,
    "sumTo" : 15000.0,
    "isClientPrescription" : true,
    "orderTypes" : [ "REPAIR", "GLASSES" ],
    "goodTypes" : [ "ACCESSORY" ],
    "departments" : [ 1000000007, 1000000003 ]
  },
  "madeOrderParameters" : {
    "id" : null,
    "lastOrderDaysAgoFrom" : null,
    "lastOrderDaysAgoTo" : null,
    "status" : null,
    "sumFrom" : null,
    "sumTo" : null,
    "isClientPrescription" : false,
    "orderTypes" : null,
    "goodTypes" : [ "GLASSES", "SUNGLASSES" ],
    "departments" : [ 1000000006 ]
  },
  "notSoldGoodParameters" : {
    "id" : null,
    "lastOrderDaysAgoFrom" : 20,
    "lastOrderDaysAgoTo" : null,
    "type" : "ACCESSORY",
    "isReturned" : false,
    "orderTypes" : [ "SALE" ],
    "categories" : [ "Category one", "Second" ],
    "names" : null,
    "wearingPeriods" : null,
    "packageNums" : null,
    "dioptresFrom" : null,
    "dioptresTo" : null,
    "addidations" : null,
    "cylinders" : null,
    "colors" : null,
    "brands" : null,
    "targetGroups" : null,
    "designs" : null,
    "manufacturers" : null,
    "lensCovers" : null,
    "lensTypes" : null,
    "lensClasses" : null,
    "refractionIndices" : null,
    "userGroups" : null,
    "serviceTypes" : null
  },
  "soldGoodParameters" : {
    "id" : null,
    "lastOrderDaysAgoFrom" : 2,
    "lastOrderDaysAgoTo" : 4,
    "type" : "CONTACT_LENS",
    "isReturned" : true,
    "orderTypes" : [ "CONTACT_LENS", "GLASSES" ],
    "categories" : null,
    "names" : [ "Avaira", "Biofinity" ],
    "wearingPeriods" : [ "1 день", "1 месяц" ],
    "packageNums" : [ 1, 6 ],
    "dioptresFrom" : -0.5,
    "dioptresTo" : 0.75,
    "addidations" : [ "+1,00", "+1,00 D" ],
    "cylinders" : [ -0.5, 1.0 ],
    "colors" : [ "Blue", "Red" ],
    "brands" : null,
    "targetGroups" : null,
    "designs" : null,
    "manufacturers" : null,
    "lensCovers" : null,
    "lensTypes" : null,
    "lensClasses" : null,
    "refractionIndices" : null,
    "userGroups" : null,
    "serviceTypes" : null
  },
  "notMadePrescriptionParameters" : {
    "id" : null,
    "purpose" : null,
    "doctorId" : null,
    "lastOrderDaysAgo" : null,
    "type" : "GLASSES",
    "inUse" : false,
    "dioptresFrom" : null,
    "dioptresTo" : null,
    "cylinders" : null,
    "addidations" : null
  },
  "madePrescriptionParameters" : {
    "id" : null,
    "purpose" : "Рецепт клиента",
    "doctorId" : 1000000023,
    "lastOrderDaysAgo" : 6,
    "type" : "CONTACT_LENS",
    "inUse" : true,
    "dioptresFrom" : 8.5,
    "dioptresTo" : 10.9,
    "cylinders" : [ -2.25, 1.75 ],
    "addidations" : [ "+2.00 D", "+2.00 N" ]
  },
  "deleted" : false
}
Table 117. request description
Path Type Description Constraints

name

String

Название фильтра

Must not be null

authorId

Number

ИД создателя фильтра

Must not be null

deleted

Boolean

Является ли удаленным

clientParameters

Object

Объект отвечающий за поля вкладки 'клиент'

clientParameters.firstName

String

Имя

clientParameters.familyName

String

Фамилия

clientParameters.gender

String

Пол

clientParameters.ageFrom

Number

Возраст клиента от

clientParameters.ageTo

Number

Возраст клиента до

clientParameters.birthdayFrom

String

День рождения от [dd.MM]

clientParameters.birthdayTo

String

День рождения до [dd.MM]

clientParameters.birthdayInDays

Number

До дня рождения

clientParameters.hasOrder

Boolean

Наличие заказа

clientParameters.orderSumFrom

Number

Сумма заказов от

clientParameters.orderSumTo

Number

Сумма заказов до

clientParameters.hasCard

Boolean

Дисконтная карта

clientParameters.cardSumFrom

Number

Сумма на карте от

clientParameters.cardSumTo

Number

Сумма на карте до

clientParameters.assistantId

Number

ИД куратора клиента

clientParameters.lastCallFrom

String

Звонок клиенту от

clientParameters.lastCallTo

String

Звонок клиенту до

clientParameters.lastSmsFrom

String

SMS рассылка от

clientParameters.lastSmsTo

String

SMS рассылка до

clientParameters.lastEmailFrom

String

Email рассылка от

clientParameters.lastEmailTo

String

Email рассылка до

clientParameters.lastPrivateSmsFrom

String

Уведомление от

clientParameters.lastPrivateSmsTo

String

Уведомление до

clientParameters.daysToOffer

Number

До конца акции МКЛ

clientParameters.cardEditedDays

Number

С изменения карты

clientParameters.mobile

Boolean

Пользователь мобильного

clientParameters.daysToExpiration

Number

До даты сгорания бонусов

clientParameters.cities

Array

Город клиента

notMadeOrderParameters

Object

Клиент НЕ оформлял в заказе

madeOrderParameters

Object

Клиент оформлял в заказе

madeOrderParameters.lastOrderDaysAgoFrom

Number

За последние (дней) от

madeOrderParameters.lastOrderDaysAgoTo

Number

За последние (дней) до

madeOrderParameters.status

String

Учитывать дату

madeOrderParameters.sumFrom

Number

Сумма заказа от

madeOrderParameters.sumTo

Number

Сумма заказа до

madeOrderParameters.isClientPrescription

Boolean

По рецепту клиента

madeOrderParameters.orderTypes

Array

Тип заказа

madeOrderParameters.goodTypes

Array

Тип товара

madeOrderParameters.departments

Array

Департамент

notSoldGoodParameters

Object

Клиент НЕ покупал товары

soldGoodParameters

Object

Клиент покупал товары

soldGoodParameters.lastOrderDaysAgoFrom

Number

За последние (дней) от

soldGoodParameters.lastOrderDaysAgoTo

Number

За последние (дней) до

soldGoodParameters.type

String

Тип товара

soldGoodParameters.isReturned

Boolean

Товар вернули

soldGoodParameters.orderTypes

Array

Тип заказа

soldGoodParameters.categories

Array

Категория

soldGoodParameters.names

Array

Наименование

soldGoodParameters.wearingPeriods

Array

Период ношения

soldGoodParameters.packageNums

Array

Кол-во в упаковке

soldGoodParameters.dioptresFrom

Number

Сфера от

soldGoodParameters.dioptresTo

Number

Сфера до

soldGoodParameters.addidations

Array

Аддидация

soldGoodParameters.cylinders

Array

Цилиндр

soldGoodParameters.colors

Array

Цвет

soldGoodParameters.brands

Array

Бренд

soldGoodParameters.targetGroups

Array

Целевая группа

soldGoodParameters.designs

Array

Дизайн

soldGoodParameters.manufacturers

Array

Производитель

soldGoodParameters.lensCovers

Array

Покрытие

soldGoodParameters.lensTypes

Array

Тип линзы

soldGoodParameters.lensClasses

Array

Класс линзы

soldGoodParameters.refractionIndices

Array

Индекс рефракции

soldGoodParameters.serviceTypes

Array

Название услуги

soldGoodParameters.userGroups

Array

Кто оказывает

notMadePrescriptionParameters

Object

НЕ выписывали клиенту

madePrescriptionParameters

Object

Выписывали клиенту

madePrescriptionParameters.purpose

String

Назначение рецепта

madePrescriptionParameters.doctorId

Number

ИД Врач-офтальмолог

madePrescriptionParameters.lastOrderDaysAgo

Number

За последние (дней)

madePrescriptionParameters.type

String

Тип рецепта

madePrescriptionParameters.inUse

Boolean

Использован в заказе

madePrescriptionParameters.dioptreFrom

Number

Сфера от

madePrescriptionParameters.dioptreTo

Number

Сфера до

madePrescriptionParameters.cylinders

Array

Цилиндр

madePrescriptionParameters.addidations

Array

Аддидация

response
HTTP/1.1 200 OK

{
  "id" : 6,
  "name" : "Filter from test",
  "author" : {
    "id" : 1000000001,
    "label" : "Кадын Тимофей"
  },
  "clientParameters" : {
    "id" : 4,
    "firstName" : "First",
    "familyName" : "Family",
    "gender" : "MALE",
    "ageFrom" : 18,
    "ageTo" : 18,
    "birthdayFrom" : "01.01",
    "birthdayTo" : "31.03",
    "birthdayInDays" : null,
    "hasOrder" : true,
    "orderSumFrom" : 100.0,
    "orderSumTo" : 10000.5,
    "hasCard" : true,
    "cardSumFrom" : 20.8,
    "cardSumTo" : 6000.0,
    "assistant" : {
      "id" : 1000000000,
      "label" : "Itigris Itigris Itigris"
    },
    "lastCallFrom" : "2024-01-01",
    "lastCallTo" : "2024-02-01",
    "lastSmsFrom" : "2024-01-31",
    "lastSmsTo" : "2024-02-28",
    "lastEmailFrom" : "2023-01-01",
    "lastEmailTo" : "2024-02-10",
    "lastPrivateSmsFrom" : "2023-06-20",
    "lastPrivateSmsTo" : "2023-06-20",
    "daysToOffer" : 5,
    "cardEditedDays" : 15,
    "mobile" : true,
    "daysToExpiration" : 8,
    "cities" : [ "Москва", "Санкт-Петербург" ]
  },
  "notMadeOrderParameters" : {
    "id" : 4,
    "lastOrderDaysAgoFrom" : 14,
    "lastOrderDaysAgoTo" : 16,
    "status" : "CREATED",
    "sumFrom" : 3000.0,
    "sumTo" : 15000.0,
    "isClientPrescription" : true,
    "goodTypes" : [ "ACCESSORY" ],
    "orderTypes" : [ "GLASSES", "REPAIR" ],
    "departments" : [ {
      "id" : 1000000007,
      "name" : "Второй магазин"
    }, {
      "id" : 1000000003,
      "name" : "Первый магазин"
    } ]
  },
  "madeOrderParameters" : {
    "id" : 3,
    "lastOrderDaysAgoFrom" : null,
    "lastOrderDaysAgoTo" : null,
    "status" : null,
    "sumFrom" : null,
    "sumTo" : null,
    "isClientPrescription" : false,
    "goodTypes" : [ "SUNGLASSES", "GLASSES" ],
    "orderTypes" : [ ],
    "departments" : [ {
      "id" : 1000000006,
      "name" : "Четвертый магазин"
    } ]
  },
  "notSoldGoodParameters" : {
    "id" : 12,
    "lastOrderDaysAgoFrom" : 20,
    "lastOrderDaysAgoTo" : null,
    "type" : "ACCESSORY",
    "isReturned" : false,
    "orderTypes" : [ "SALE" ],
    "categories" : [ "Category one", "Second" ]
  },
  "soldGoodParameters" : {
    "id" : 13,
    "lastOrderDaysAgoFrom" : 2,
    "lastOrderDaysAgoTo" : 4,
    "type" : "CONTACT_LENS",
    "isReturned" : true,
    "orderTypes" : [ "GLASSES", "CONTACT_LENS" ],
    "names" : [ "Avaira", "Biofinity" ],
    "wearingPeriods" : [ "1 день", "1 месяц" ],
    "packageNums" : [ 1, 6 ],
    "dioptresFrom" : -0.5,
    "dioptresTo" : 0.75,
    "addidations" : [ "+1,00", "+1,00 D" ],
    "cylinders" : [ -0.5, 1.0 ],
    "colors" : [ "Blue", "Red" ]
  },
  "notMadePrescriptionParameters" : {
    "id" : 8,
    "purpose" : null,
    "doctor" : null,
    "lastOrderDaysAgo" : null,
    "type" : "GLASSES",
    "inUse" : false,
    "dioptresFrom" : null,
    "dioptresTo" : null,
    "cylinders" : null,
    "addidations" : null
  },
  "madePrescriptionParameters" : {
    "id" : 7,
    "purpose" : "Рецепт клиента",
    "doctor" : {
      "id" : 1000000023,
      "label" : "Новый Доктор"
    },
    "lastOrderDaysAgo" : 6,
    "type" : "CONTACT_LENS",
    "inUse" : true,
    "dioptresFrom" : 8.5,
    "dioptresTo" : 10.9,
    "cylinders" : [ -2.25, 1.75 ],
    "addidations" : [ "+2.00 D", "+2.00 N" ]
  },
  "createdAt" : "2025-08-27T07:23:17.982099",
  "deleted" : false
}

get list

по умолчанию: сортировка по имени, 30 эл-тов на странице
request
GET /api/v2/clients/filters?authorId=1000000001&name=by&isFavourite=false HTTP/1.1
Table 118. request description
Parameter Description

name

Имя фильтра

authorId

ИД автора фильтра

isFavourite

Выводить ли только избранные

pageable

Pageable description

response
HTTP/1.1 200 OK

{
  "content" : [ {
    "id" : 9999990011,
    "name" : "Filter by services",
    "author" : "Кадын Тимофей",
    "deleted" : false,
    "isFavourite" : false,
    "hasCallTasks" : false,
    "hasSmsTasks" : false,
    "hasEmailTasks" : false,
    "hasBonusesByFilters" : false
  }, {
    "id" : 9999990006,
    "name" : "Filter by contactLens",
    "author" : "Кадын Тимофей",
    "deleted" : false,
    "isFavourite" : false,
    "hasCallTasks" : false,
    "hasSmsTasks" : false,
    "hasEmailTasks" : false,
    "hasBonusesByFilters" : false
  } ],
  "pageable" : {
    "pageNumber" : 0,
    "pageSize" : 30,
    "sort" : {
      "empty" : false,
      "sorted" : true,
      "unsorted" : false
    },
    "offset" : 0,
    "paged" : true,
    "unpaged" : false
  },
  "last" : true,
  "totalElements" : 2,
  "totalPages" : 1,
  "first" : true,
  "size" : 30,
  "number" : 0,
  "sort" : {
    "empty" : false,
    "sorted" : true,
    "unsorted" : false
  },
  "numberOfElements" : 2,
  "empty" : false
}

get

request
GET /api/v2/clients/filters/9999990000 HTTP/1.1
Table 119. /api/v2/clients/filters/{filterId}
Parameter Description

filterId

ИД корневой сущности фильтра

response
HTTP/1.1 200 OK

{
  "id" : 9999990000,
  "name" : "Filter one",
  "author" : {
    "id" : 1000000001,
    "label" : "Кадын Тимофей"
  },
  "clientParameters" : {
    "id" : 9900000000,
    "firstName" : "Name",
    "familyName" : "Not-name",
    "gender" : "FEMALE",
    "ageFrom" : 19,
    "ageTo" : 22,
    "birthdayFrom" : "03.01",
    "birthdayTo" : "01.02",
    "birthdayInDays" : 3,
    "hasOrder" : false,
    "orderSumFrom" : 110.0,
    "orderSumTo" : 11000.5,
    "hasCard" : false,
    "cardSumFrom" : 30.8,
    "cardSumTo" : 7000.0,
    "assistant" : {
      "id" : 1000000000,
      "label" : "Itigris Itigris Itigris"
    },
    "lastCallFrom" : "2024-02-01",
    "lastCallTo" : "2024-02-11",
    "lastSmsFrom" : "2024-02-01",
    "lastSmsTo" : "2024-02-20",
    "lastEmailFrom" : "2023-02-01",
    "lastEmailTo" : "2024-02-20",
    "lastPrivateSmsFrom" : "2023-02-01",
    "lastPrivateSmsTo" : "2023-03-25",
    "daysToOffer" : 2,
    "cardEditedDays" : 12,
    "mobile" : false,
    "daysToExpiration" : 7,
    "cities" : [ "Москва", "Санкт-Петербург" ]
  },
  "notMadeOrderParameters" : {
    "id" : 9990000000,
    "lastOrderDaysAgoFrom" : 1,
    "lastOrderDaysAgoTo" : 10,
    "status" : "FINISHED",
    "sumFrom" : 3300.0,
    "sumTo" : 13000.0,
    "isClientPrescription" : false,
    "goodTypes" : [ ],
    "orderTypes" : [ ],
    "departments" : [ ]
  },
  "madeOrderParameters" : {
    "id" : 9990000001,
    "lastOrderDaysAgoFrom" : null,
    "lastOrderDaysAgoTo" : null,
    "status" : null,
    "sumFrom" : null,
    "sumTo" : null,
    "isClientPrescription" : true,
    "goodTypes" : [ "ACCESSORY" ],
    "orderTypes" : [ "GLASSES", "REPAIR" ],
    "departments" : [ {
      "id" : 1000000007,
      "name" : "Второй магазин"
    }, {
      "id" : 1000000003,
      "name" : "Первый магазин"
    } ]
  },
  "notSoldGoodParameters" : {
    "id" : 9999000000,
    "lastOrderDaysAgoFrom" : 2,
    "lastOrderDaysAgoTo" : 5,
    "type" : "ACCESSORY",
    "isReturned" : true,
    "orderTypes" : [ "GLASSES", "CONTACT_LENS" ],
    "categories" : [ "Category 1", "Category 2" ]
  },
  "soldGoodParameters" : {
    "id" : 9999000001,
    "lastOrderDaysAgoFrom" : 4,
    "lastOrderDaysAgoTo" : 11,
    "type" : "CONTACT_LENS",
    "isReturned" : false,
    "orderTypes" : [ "CONTACT_LENS" ],
    "names" : [ "Ava", "Bio" ],
    "wearingPeriods" : [ "2 день", "2 месяц" ],
    "packageNums" : [ 3, 4 ],
    "dioptresFrom" : -1.5,
    "dioptresTo" : 1.75,
    "addidations" : [ "+2,00", "0", "+2,00 D" ],
    "cylinders" : [ -0.3, 1.5 ],
    "colors" : [ "Sky", "Yellow" ]
  },
  "notMadePrescriptionParameters" : {
    "id" : 9999900000,
    "purpose" : null,
    "doctor" : null,
    "lastOrderDaysAgo" : null,
    "type" : "CONTACT_LENS",
    "inUse" : true,
    "dioptresFrom" : null,
    "dioptresTo" : null,
    "cylinders" : null,
    "addidations" : null
  },
  "madePrescriptionParameters" : {
    "id" : 9999900001,
    "purpose" : "Для вождения",
    "doctor" : {
      "id" : 1000000023,
      "label" : "Новый Доктор"
    },
    "lastOrderDaysAgo" : 3,
    "type" : "CONTACT_LENS",
    "inUse" : false,
    "dioptresFrom" : 9.5,
    "dioptresTo" : 11.9,
    "cylinders" : [ -2.35, 1.85 ],
    "addidations" : [ "+3.00 D", "+3.00 N" ]
  },
  "createdAt" : "2024-02-21T16:16:48.636",
  "deleted" : false
}

getParametersValues

Получить вариации параметров фильтров
request
GET /api/v2/clients/filters/values HTTP/1.1
response
HTTP/1.1 200 OK

{
  "clientValues" : {
    "genders" : [ "MALE", "FEMALE" ],
    "cities" : [ "", "California", "Москва", "Псков", "Санкт-Петербург", "Сыктывкар", "Тула", null ],
    "assistants" : [ {
      "id" : 9000000003,
      "label" : "doctor doctor doctor"
    }, {
      "id" : 9000000010,
      "label" : "doctorstore doctorstore doctorstore"
    }, {
      "id" : 9000000006,
      "label" : "store store store"
    }, {
      "id" : 1000000009,
      "label" : "Балашов Женек"
    }, {
      "id" : 1000000007,
      "label" : "Иванов Иван"
    }, {
      "id" : 1000000004,
      "label" : "Иванов Иван"
    }, {
      "id" : 1000000016,
      "label" : "Кадын Тимофей Юрьевич"
    }, {
      "id" : 1000000022,
      "label" : "Кадын Тимофей Юрьевич"
    }, {
      "id" : 1000000014,
      "label" : "Кадын Тимофей Юрьевич"
    }, {
      "id" : 1000000001,
      "label" : "Кадын Тимофей"
    }, {
      "id" : 1000000023,
      "label" : "Новый Доктор"
    }, {
      "id" : 1000000011,
      "label" : "Пууманн Александр"
    } ]
  },
  "orderValues" : {
    "departments" : [ {
      "id" : 1000000007,
      "name" : "Второй магазин"
    }, {
      "id" : 1000000003,
      "name" : "Первый магазин"
    }, {
      "id" : 1000000008,
      "name" : "Третий магазин"
    }, {
      "id" : 1000000006,
      "name" : "Четвертый магазин"
    } ],
    "statuses" : [ "CREATED", "FINISHED" ]
  },
  "prescriptionValues" : {
    "type" : [ "GLASSES", "CONTACT_LENS" ],
    "doctors" : [ {
      "id" : 9000000003,
      "label" : "doctor doctor doctor"
    }, {
      "id" : 9000000010,
      "label" : "doctorstore doctorstore doctorstore"
    }, {
      "id" : 1000000009,
      "label" : "Балашов Женек"
    }, {
      "id" : 1000000007,
      "label" : "Иванов Иван"
    }, {
      "id" : 1000000016,
      "label" : "Кадын Тимофей Юрьевич"
    }, {
      "id" : 1000000023,
      "label" : "Новый Доктор"
    }, {
      "id" : 1000000011,
      "label" : "Пууманн Александр"
    } ],
    "purposes" : [ "Для близи", "Для вождения", "Для дали", "Для постоянного ношения", "Для работы за компьютером (офисные)" ]
  },
  "goodTypes" : [ "ACCESSORY", "CONTACT_LENS", "EXTRA", "GLASSES", "LENS", "SUNGLASSES", "SERVE" ],
  "orderTypes" : [ "SALE", "REPAIR", "GLASSES", "CONTACT_LENS", "CHECK_VISION" ],
  "cylinders" : [ "-0,25", "-0,5", "-0,75", "-1,0", "-1,25", "-1,5", "-1,75", "-2,0", "-2,25", "-2,5", "-2,75", "-3,0", "-3,25", "-3,5", "-3,75", "-4,0", "-4,25", "-4,5", "-4,75", "-5,0", "-5,25", "-5,5", "-5,75", "-6,0", "-6,25", "-6,5", "-6,75", "-7,0", "-7,25", "-7,5", "-7,75", "-8,0", "-8,25", "-8,5", "-8,75", "-9,0", "-9,25", "-9,5", "-9,75", "-10,0", "-10,25", "-10,5", "-10,75", "-11,0", "-11,25", "-11,5", "-11,75", "-12,0", "-12,25", "-12,5", "-12,75", "-13,0", "-13,25", "-13,5", "-13,75", "-14,0", "-14,25", "-14,5", "-14,75", "-15,0", "-15,25", "-15,5", "-15,75", "-16,0", "-16,25", "-16,5", "-16,75", "-17,0", "-17,25", "-17,5", "-17,75", "-18,0", "-18,25", "-18,5", "-18,75", "-19,0", "-19,25", "-19,5", "-19,75", "-20,0", "-20,25", "-20,5", "-20,75", "-21,0", "-21,25", "-21,5", "-21,75", "-22,0", "-22,25", "-22,5", "-22,75", "-23,0", "-23,25", "-23,5", "-23,75", "-24,0", "-24,25", "-24,5", "-24,75", "-25,0", "-25,25", "-25,5", "-25,75", "-26,0", "-26,25", "-26,5", "-26,75", "-27,0", "-27,25", "-27,5", "-27,75", "-28,0", "-28,25", "-28,5", "-28,75", "-29,0", "-29,25", "-29,5", "-29,75", "-30,0", "0", "+0,25", "+0,5", "+0,75", "+1,0", "+1,25", "+1,5", "+1,75", "+2,0", "+2,25", "+2,5", "+2,75", "+3,0", "+3,25", "+3,5", "+3,75", "+4,0", "+4,25", "+4,5", "+4,75", "+5,0", "+5,25", "+5,5", "+5,75", "+6,0", "+6,25", "+6,5", "+6,75", "+7,0", "+7,25", "+7,5", "+7,75", "+8,0", "+8,25", "+8,5", "+8,75", "+9,0", "+9,25", "+9,5", "+9,75", "+10,0", "+10,25", "+10,5", "+10,75", "+11,0", "+11,25", "+11,5", "+11,75", "+12,0", "+12,25", "+12,5", "+12,75", "+13,0", "+13,25", "+13,5", "+13,75", "+14,0", "+14,25", "+14,5", "+14,75", "+15,0", "+15,25", "+15,5", "+15,75", "+16,0", "+16,25", "+16,5", "+16,75", "+17,0", "+17,25", "+17,5", "+17,75", "+18,0", "+18,25", "+18,5", "+18,75", "+19,0", "+19,25", "+19,5", "+19,75", "+20,0", "+20,25", "+20,5", "+20,75", "+21,0", "+21,25", "+21,5", "+21,75", "+22,0", "+22,25", "+22,5", "+22,75", "+23,0", "+23,25", "+23,5", "+23,75", "+24,0", "+24,25", "+24,5", "+24,75", "+25,0", "+25,25", "+25,5", "+25,75", "+26,0", "+26,25", "+26,5", "+26,75", "+27,0", "+27,25", "+27,5", "+27,75", "+28,0", "+28,25", "+28,5", "+28,75", "+29,0", "+29,25", "+29,5", "+29,75", "+30,0" ],
  "addidations" : [ "high", "low", "med" ]
}

getGoodParametersValues

Получить вариации параметров для переданного типа товара
request
GET /api/v2/clients/filters/goods/values?type=CONTACT_LENS HTTP/1.1
Table 120. request description
Parameter Description

type

Тип товара $.goodTypes

response
HTTP/1.1 200 OK

{
  "names" : [ "1-DAY Acuvue Define", "1-DAY Acuvue Define Diag", "1-DAY Acuvue Moist", "1-DAY Acuvue Moist Diag", "1-DAY Acuvue Moist Multifocal", "1-DAY Acuvue Moist Multifocal Diag", "1-DAY Acuvue Moist for ASTIGMATISM", "1-DAY Acuvue Oasys", "1-DAY Acuvue Oasys Diag", "1-DAY Acuvue Oasys for ASTIGMATISM", "1-DAY Acuvue TruEye", "1-DAY Acuvue TruEye Diag", "1-Day Acuvue Oasys", "Acuvue 2", "Acuvue Advance", "Acuvue Oasys", "Acuvue Oasys Diag", "Acuvue Oasys for ASTIGMATISM", "Adria Season", "Air Optix Aqua", "Air Optix Aqua Multifocal", "Air Optix Colors", "Air Optix Colors Diag", "Air Optix Night & Day", "Air Optix Plus HydraGlyde", "Air Optix for ASTIGMATISM", "Avaira", "Biofinity", "Biofinity Diag", "Biofinity Multifocal Diag", "Biofinity Toric Diag", "Biotrue ONEday", "Clariti 1 Day Diag", "Clariti 1 day", "Color 2 tone", "Color 2Tone", "Color 3Tone", "Crazy", "Dailies Aqua Comfort+", "Dailies Total One", "Elegant Color", "Elegant Color 2Tone", "Free Eyes", "Free Eyes (Comfilcon A)", "Fresh Look ColorBlends", "Fresh Look Colors Diag", "Fresh Look Dimensions Diag", "FreshLook ColorBlends", "FreshLook Colors", "FreshLook Dimensions", "Glamorous Color", "Glamorous color", "Morning Q38", "MyDay Daily Disposable", "Optima", "Optima FW", "Prima BIO Bi-Focal", "PureVision 2", "Season", "Ultra", "test" ],
  "wearingPeriods" : [ "1 день", "1 месяц", "2 недели", "3 месяца", "30 дней", "6-12 месяцев", "90 дней", "не указано" ],
  "packageNums" : [ 1, 2, 3, 4, 5, 6, 30, 90 ],
  "addidations" : [ "high", "low", "med" ],
  "cylinders" : [ "-0,25", "-0,5", "-0,75", "-1,0", "-1,25", "-1,5", "-1,75", "-2,0", "-2,25", "-2,5", "-2,75", "-3,0", "-3,25", "-3,5", "-3,75", "-4,0", "-4,25", "-4,5", "-4,75", "-5,0", "-5,25", "-5,5", "-5,75", "-6,0", "-6,25", "-6,5", "-6,75", "-7,0", "-7,25", "-7,5", "-7,75", "-8,0", "-8,25", "-8,5", "-8,75", "-9,0", "-9,25", "-9,5", "-9,75", "-10,0", "-10,25", "-10,5", "-10,75", "-11,0", "-11,25", "-11,5", "-11,75", "-12,0", "-12,25", "-12,5", "-12,75", "-13,0", "-13,25", "-13,5", "-13,75", "-14,0", "-14,25", "-14,5", "-14,75", "-15,0", "-15,25", "-15,5", "-15,75", "-16,0", "-16,25", "-16,5", "-16,75", "-17,0", "-17,25", "-17,5", "-17,75", "-18,0", "-18,25", "-18,5", "-18,75", "-19,0", "-19,25", "-19,5", "-19,75", "-20,0", "-20,25", "-20,5", "-20,75", "-21,0", "-21,25", "-21,5", "-21,75", "-22,0", "-22,25", "-22,5", "-22,75", "-23,0", "-23,25", "-23,5", "-23,75", "-24,0", "-24,25", "-24,5", "-24,75", "-25,0", "-25,25", "-25,5", "-25,75", "-26,0", "-26,25", "-26,5", "-26,75", "-27,0", "-27,25", "-27,5", "-27,75", "-28,0", "-28,25", "-28,5", "-28,75", "-29,0", "-29,25", "-29,5", "-29,75", "-30,0", "0", "+0,25", "+0,5", "+0,75", "+1,0", "+1,25", "+1,5", "+1,75", "+2,0", "+2,25", "+2,5", "+2,75", "+3,0", "+3,25", "+3,5", "+3,75", "+4,0", "+4,25", "+4,5", "+4,75", "+5,0", "+5,25", "+5,5", "+5,75", "+6,0", "+6,25", "+6,5", "+6,75", "+7,0", "+7,25", "+7,5", "+7,75", "+8,0", "+8,25", "+8,5", "+8,75", "+9,0", "+9,25", "+9,5", "+9,75", "+10,0", "+10,25", "+10,5", "+10,75", "+11,0", "+11,25", "+11,5", "+11,75", "+12,0", "+12,25", "+12,5", "+12,75", "+13,0", "+13,25", "+13,5", "+13,75", "+14,0", "+14,25", "+14,5", "+14,75", "+15,0", "+15,25", "+15,5", "+15,75", "+16,0", "+16,25", "+16,5", "+16,75", "+17,0", "+17,25", "+17,5", "+17,75", "+18,0", "+18,25", "+18,5", "+18,75", "+19,0", "+19,25", "+19,5", "+19,75", "+20,0", "+20,25", "+20,5", "+20,75", "+21,0", "+21,25", "+21,5", "+21,75", "+22,0", "+22,25", "+22,5", "+22,75", "+23,0", "+23,25", "+23,5", "+23,75", "+24,0", "+24,25", "+24,5", "+24,75", "+25,0", "+25,25", "+25,5", "+25,75", "+26,0", "+26,25", "+26,5", "+26,75", "+27,0", "+27,25", "+27,5", "+27,75", "+28,0", "+28,25", "+28,5", "+28,75", "+29,0", "+29,25", "+29,5", "+29,75", "+30,0" ],
  "colors" : [ "Amethyst", "Aqua", "BLUE", "Black", "Black out", "Blue", "Brilliant Blue", "Browen", "Brown", "Caribbean Aqua", "GREEN", "Gemstone Green", "Gold", "Gray", "Green", "Hazel", "Pacific Blue", "Pure Gold", "Pure Hazel", "Sapphire", "Sapphire Blue", "Sea Green", "Shimmer", "Sparkle", "Sterling Gray", "Sterling Grey", "TRUE SAPPHIRE", "TURQUOISE", "True Sapphire", "True sapphire", "Turquoise", "Violet", "~Aqua", "~Blue", "~Green" ]
}

update

request
PUT /api/v2/clients/filters/9999990000 HTTP/1.1

{
  "name" : "Filter from test",
  "authorId" : 1000000001,
  "clientParameters" : {
    "id" : null,
    "firstName" : "First",
    "familyName" : "Family",
    "gender" : "MALE",
    "ageFrom" : 18,
    "ageTo" : 18,
    "birthdayFrom" : "01.01",
    "birthdayTo" : "31.03",
    "birthdayInDays" : null,
    "hasOrder" : true,
    "orderSumFrom" : 100.0,
    "orderSumTo" : 10000.5,
    "hasCard" : true,
    "cardSumFrom" : 20.8,
    "cardSumTo" : 6000.0,
    "assistantId" : 1000000000,
    "lastCallFrom" : "2024-01-01",
    "lastCallTo" : "2024-02-01",
    "lastSmsFrom" : "2024-01-31",
    "lastSmsTo" : "2024-02-28",
    "lastEmailFrom" : "2023-01-01",
    "lastEmailTo" : "2024-02-10",
    "lastPrivateSmsFrom" : "2023-06-20",
    "lastPrivateSmsTo" : "2023-06-20",
    "daysToOffer" : 5,
    "cardEditedDays" : 15,
    "mobile" : true,
    "daysToExpiration" : 8,
    "cities" : [ "Санкт-Петербург", "Москва" ]
  },
  "notMadeOrderParameters" : {
    "id" : null,
    "lastOrderDaysAgoFrom" : 14,
    "lastOrderDaysAgoTo" : 16,
    "status" : "CREATED",
    "sumFrom" : 3000.0,
    "sumTo" : 15000.0,
    "isClientPrescription" : true,
    "orderTypes" : [ "REPAIR", "GLASSES" ],
    "goodTypes" : [ "ACCESSORY" ],
    "departments" : [ 1000000007, 1000000003 ]
  },
  "madeOrderParameters" : {
    "id" : null,
    "lastOrderDaysAgoFrom" : null,
    "lastOrderDaysAgoTo" : null,
    "status" : null,
    "sumFrom" : null,
    "sumTo" : null,
    "isClientPrescription" : false,
    "orderTypes" : null,
    "goodTypes" : [ "GLASSES", "SUNGLASSES" ],
    "departments" : [ 1000000006 ]
  },
  "notSoldGoodParameters" : {
    "id" : null,
    "lastOrderDaysAgoFrom" : 20,
    "lastOrderDaysAgoTo" : null,
    "type" : "ACCESSORY",
    "isReturned" : false,
    "orderTypes" : [ "SALE" ],
    "categories" : [ "Category one", "Second" ],
    "names" : null,
    "wearingPeriods" : null,
    "packageNums" : null,
    "dioptresFrom" : null,
    "dioptresTo" : null,
    "addidations" : null,
    "cylinders" : null,
    "colors" : null,
    "brands" : null,
    "targetGroups" : null,
    "designs" : null,
    "manufacturers" : null,
    "lensCovers" : null,
    "lensTypes" : null,
    "lensClasses" : null,
    "refractionIndices" : null,
    "userGroups" : null,
    "serviceTypes" : null
  },
  "soldGoodParameters" : {
    "id" : null,
    "lastOrderDaysAgoFrom" : 2,
    "lastOrderDaysAgoTo" : 4,
    "type" : "CONTACT_LENS",
    "isReturned" : true,
    "orderTypes" : [ "CONTACT_LENS", "GLASSES" ],
    "categories" : null,
    "names" : [ "Avaira", "Biofinity" ],
    "wearingPeriods" : [ "1 день", "1 месяц" ],
    "packageNums" : [ 1, 6 ],
    "dioptresFrom" : -0.5,
    "dioptresTo" : 0.75,
    "addidations" : [ "+1,00", "+1,00 D" ],
    "cylinders" : [ -0.5, 1.0 ],
    "colors" : [ "Blue", "Red" ],
    "brands" : null,
    "targetGroups" : null,
    "designs" : null,
    "manufacturers" : null,
    "lensCovers" : null,
    "lensTypes" : null,
    "lensClasses" : null,
    "refractionIndices" : null,
    "userGroups" : null,
    "serviceTypes" : null
  },
  "notMadePrescriptionParameters" : {
    "id" : null,
    "purpose" : null,
    "doctorId" : null,
    "lastOrderDaysAgo" : null,
    "type" : "GLASSES",
    "inUse" : false,
    "dioptresFrom" : null,
    "dioptresTo" : null,
    "cylinders" : null,
    "addidations" : null
  },
  "madePrescriptionParameters" : {
    "id" : null,
    "purpose" : "Рецепт клиента",
    "doctorId" : 1000000023,
    "lastOrderDaysAgo" : 6,
    "type" : "CONTACT_LENS",
    "inUse" : true,
    "dioptresFrom" : 8.5,
    "dioptresTo" : 10.9,
    "cylinders" : [ -2.25, 1.75 ],
    "addidations" : [ "+2.00 D", "+2.00 N" ]
  },
  "deleted" : false
}
Table 121. request description
Path Type Description Constraints

name

String

Название фильтра

Must not be null

authorId

Number

ИД создателя фильтра

Must not be null

deleted

Boolean

Является ли удаленным

clientParameters

Object

Объект отвечающий за поля вкладки 'клиент'

clientParameters.firstName

String

Имя

clientParameters.familyName

String

Фамилия

clientParameters.gender

String

Пол

clientParameters.ageFrom

Number

Возраст клиента от

clientParameters.ageTo

Number

Возраст клиента до

clientParameters.birthdayFrom

String

День рождения от [dd.MM]

clientParameters.birthdayTo

String

День рождения до [dd.MM]

clientParameters.birthdayInDays

Number

До дня рождения

clientParameters.hasOrder

Boolean

Наличие заказа

clientParameters.orderSumFrom

Number

Сумма заказов от

clientParameters.orderSumTo

Number

Сумма заказов до

clientParameters.hasCard

Boolean

Дисконтная карта

clientParameters.cardSumFrom

Number

Сумма на карте от

clientParameters.cardSumTo

Number

Сумма на карте до

clientParameters.assistantId

Number

ИД куратора клиента

clientParameters.lastCallFrom

String

Звонок клиенту от

clientParameters.lastCallTo

String

Звонок клиенту до

clientParameters.lastSmsFrom

String

SMS рассылка от

clientParameters.lastSmsTo

String

SMS рассылка до

clientParameters.lastEmailFrom

String

Email рассылка от

clientParameters.lastEmailTo

String

Email рассылка до

clientParameters.lastPrivateSmsFrom

String

Уведомление от

clientParameters.lastPrivateSmsTo

String

Уведомление до

clientParameters.daysToOffer

Number

До конца акции МКЛ

clientParameters.cardEditedDays

Number

С изменения карты

clientParameters.mobile

Boolean

Пользователь мобильного

clientParameters.daysToExpiration

Number

До даты сгорания бонусов

clientParameters.cities

Array

Город клиента

notMadeOrderParameters

Object

Клиент НЕ оформлял в заказе

madeOrderParameters

Object

Клиент оформлял в заказе

madeOrderParameters.lastOrderDaysAgoFrom

Number

За последние (дней) от

madeOrderParameters.lastOrderDaysAgoTo

Number

За последние (дней) до

madeOrderParameters.status

String

Учитывать дату

madeOrderParameters.sumFrom

Number

Сумма заказа от

madeOrderParameters.sumTo

Number

Сумма заказа до

madeOrderParameters.isClientPrescription

Boolean

По рецепту клиента

madeOrderParameters.orderTypes

Array

Тип заказа

madeOrderParameters.goodTypes

Array

Тип товара

madeOrderParameters.departments

Array

Департамент

notSoldGoodParameters

Object

Клиент НЕ покупал товары

soldGoodParameters

Object

Клиент покупал товары

soldGoodParameters.lastOrderDaysAgoFrom

Number

За последние (дней) от

soldGoodParameters.lastOrderDaysAgoTo

Number

За последние (дней) до

soldGoodParameters.type

String

Тип товара

soldGoodParameters.isReturned

Boolean

Товар вернули

soldGoodParameters.orderTypes

Array

Тип заказа

soldGoodParameters.categories

Array

Категория

soldGoodParameters.names

Array

Наименование

soldGoodParameters.wearingPeriods

Array

Период ношения

soldGoodParameters.packageNums

Array

Кол-во в упаковке

soldGoodParameters.dioptresFrom

Number

Сфера от

soldGoodParameters.dioptresTo

Number

Сфера до

soldGoodParameters.addidations

Array

Аддидация

soldGoodParameters.cylinders

Array

Цилиндр

soldGoodParameters.colors

Array

Цвет

soldGoodParameters.brands

Array

Бренд

soldGoodParameters.targetGroups

Array

Целевая группа

soldGoodParameters.designs

Array

Дизайн

soldGoodParameters.manufacturers

Array

Производитель

soldGoodParameters.lensCovers

Array

Покрытие

soldGoodParameters.lensTypes

Array

Тип линзы

soldGoodParameters.lensClasses

Array

Класс линзы

soldGoodParameters.refractionIndices

Array

Индекс рефракции

soldGoodParameters.serviceTypes

Array

Название услуги

soldGoodParameters.userGroups

Array

Кто оказывает

notMadePrescriptionParameters

Object

НЕ выписывали клиенту

madePrescriptionParameters

Object

Выписывали клиенту

madePrescriptionParameters.purpose

String

Назначение рецепта

madePrescriptionParameters.doctorId

Number

ИД Врач-офтальмолог

madePrescriptionParameters.lastOrderDaysAgo

Number

За последние (дней)

madePrescriptionParameters.type

String

Тип рецепта

madePrescriptionParameters.inUse

Boolean

Использован в заказе

madePrescriptionParameters.dioptreFrom

Number

Сфера от

madePrescriptionParameters.dioptreTo

Number

Сфера до

madePrescriptionParameters.cylinders

Array

Цилиндр

madePrescriptionParameters.addidations

Array

Аддидация

response
HTTP/1.1 200 OK

{
  "id" : 9999990000,
  "name" : "Filter from test",
  "author" : {
    "id" : 9000000008,
    "label" : "topmanager topmanager topmanager"
  },
  "clientParameters" : {
    "id" : 9900000000,
    "firstName" : "First",
    "familyName" : "Family",
    "gender" : "MALE",
    "ageFrom" : 18,
    "ageTo" : 18,
    "birthdayFrom" : "01.01",
    "birthdayTo" : "31.03",
    "birthdayInDays" : null,
    "hasOrder" : true,
    "orderSumFrom" : 100.0,
    "orderSumTo" : 10000.5,
    "hasCard" : true,
    "cardSumFrom" : 20.8,
    "cardSumTo" : 6000.0,
    "assistant" : {
      "id" : 1000000000,
      "label" : "Itigris Itigris Itigris"
    },
    "lastCallFrom" : "2024-01-01",
    "lastCallTo" : "2024-02-01",
    "lastSmsFrom" : "2024-01-31",
    "lastSmsTo" : "2024-02-28",
    "lastEmailFrom" : "2023-01-01",
    "lastEmailTo" : "2024-02-10",
    "lastPrivateSmsFrom" : "2023-06-20",
    "lastPrivateSmsTo" : "2023-06-20",
    "daysToOffer" : 5,
    "cardEditedDays" : 15,
    "mobile" : true,
    "daysToExpiration" : 8,
    "cities" : [ "Москва", "Санкт-Петербург" ]
  },
  "notMadeOrderParameters" : {
    "id" : 9990000000,
    "lastOrderDaysAgoFrom" : 14,
    "lastOrderDaysAgoTo" : 16,
    "status" : "CREATED",
    "sumFrom" : 3000.0,
    "sumTo" : 15000.0,
    "isClientPrescription" : true,
    "goodTypes" : [ "ACCESSORY" ],
    "orderTypes" : [ "GLASSES", "REPAIR" ],
    "departments" : [ {
      "id" : 1000000003,
      "name" : "Первый магазин"
    }, {
      "id" : 1000000007,
      "name" : "Второй магазин"
    } ]
  },
  "madeOrderParameters" : {
    "id" : 9990000001,
    "lastOrderDaysAgoFrom" : null,
    "lastOrderDaysAgoTo" : null,
    "status" : null,
    "sumFrom" : null,
    "sumTo" : null,
    "isClientPrescription" : false,
    "goodTypes" : [ "SUNGLASSES", "GLASSES" ],
    "orderTypes" : [ ],
    "departments" : [ {
      "id" : 1000000006,
      "name" : "Четвертый магазин"
    } ]
  },
  "notSoldGoodParameters" : {
    "id" : 7,
    "lastOrderDaysAgoFrom" : 20,
    "lastOrderDaysAgoTo" : null,
    "type" : "ACCESSORY",
    "isReturned" : false,
    "orderTypes" : [ "SALE" ],
    "categories" : [ "Category one", "Second" ]
  },
  "soldGoodParameters" : {
    "id" : 8,
    "lastOrderDaysAgoFrom" : 2,
    "lastOrderDaysAgoTo" : 4,
    "type" : "CONTACT_LENS",
    "isReturned" : true,
    "orderTypes" : [ "GLASSES", "CONTACT_LENS" ],
    "names" : [ "Avaira", "Biofinity" ],
    "wearingPeriods" : [ "1 день", "1 месяц" ],
    "packageNums" : [ 1, 6 ],
    "dioptresFrom" : -0.5,
    "dioptresTo" : 0.75,
    "addidations" : [ "+1,00", "+1,00 D" ],
    "cylinders" : [ -0.5, 1.0 ],
    "colors" : [ "Blue", "Red" ]
  },
  "notMadePrescriptionParameters" : {
    "id" : 6,
    "purpose" : null,
    "doctor" : null,
    "lastOrderDaysAgo" : null,
    "type" : "GLASSES",
    "inUse" : false,
    "dioptresFrom" : null,
    "dioptresTo" : null,
    "cylinders" : null,
    "addidations" : null
  },
  "madePrescriptionParameters" : {
    "id" : 5,
    "purpose" : "Рецепт клиента",
    "doctor" : {
      "id" : 1000000023,
      "label" : "Новый Доктор"
    },
    "lastOrderDaysAgo" : 6,
    "type" : "CONTACT_LENS",
    "inUse" : true,
    "dioptresFrom" : 8.5,
    "dioptresTo" : 10.9,
    "cylinders" : [ -2.25, 1.75 ],
    "addidations" : [ "+2.00 D", "+2.00 N" ]
  },
  "createdAt" : "2024-02-21T16:16:48.636",
  "deleted" : false
}

change favourite

request
PUT /api/v2/clients/filters/9999990001/favourite HTTP/1.1

{
  "isFavourite" : true
}
Table 122. /api/v2/clients/filters/{filterId}/favourite
Parameter Description

filterId

ИД корневой сущности фильтра

Path Type Description Constraints

isFavourite

Boolean

Будет ли фильтр являться избранным

response
HTTP/1.1 200 OK

delete

request
DELETE /api/v2/clients/filters/9999990000 HTTP/1.1
Table 123. /api/v2/clients/filters/{filterId}
Parameter Description

filterId

ИД корневой сущности фильтра

response
HTTP/1.1 200 OK

apply by filter request

Получить клиентов согласно переданному запросу фильтра.
По умолчанию: 30 эл-тов на странице
request
POST /api/v2/clients/filters/apply HTTP/1.1

{
  "clientParameters" : null,
  "notMadeOrderParameters" : null,
  "madeOrderParameters" : null,
  "notSoldGoodParameters" : null,
  "soldGoodParameters" : {
    "id" : null,
    "lastOrderDaysAgoFrom" : null,
    "lastOrderDaysAgoTo" : null,
    "type" : "LENS",
    "isReturned" : false,
    "orderTypes" : null,
    "categories" : null,
    "names" : null,
    "wearingPeriods" : null,
    "packageNums" : null,
    "dioptresFrom" : -3.0,
    "dioptresTo" : 1.0,
    "addidations" : null,
    "cylinders" : null,
    "colors" : null,
    "brands" : [ "Orma 15", "Access Easy A" ],
    "targetGroups" : null,
    "designs" : null,
    "manufacturers" : [ "Essilor", "Glance" ],
    "lensCovers" : [ "BP", "Cefir", "Elixir" ],
    "lensTypes" : [ "Стигматическая", "Бифокальная" ],
    "lensClasses" : [ "Фотохромная", "Водительская" ],
    "refractionIndices" : [ 1.5, 1.74 ],
    "userGroups" : null,
    "serviceTypes" : null
  },
  "notMadePrescriptionParameters" : null,
  "madePrescriptionParameters" : null
}
Table 124. request description
Path Type Description Constraints

clientParameters

Object

Объект отвечающий за поля вкладки 'клиент'

clientParameters.firstName

String

Имя

clientParameters.familyName

String

Фамилия

clientParameters.gender

String

Пол

clientParameters.ageFrom

Number

Возраст клиента от

clientParameters.ageTo

Number

Возраст клиента до

clientParameters.birthdayFrom

String

День рождения от [dd.MM]

clientParameters.birthdayTo

String

День рождения до [dd.MM]

clientParameters.birthdayInDays

Number

До дня рождения

clientParameters.hasOrder

Boolean

Наличие заказа

clientParameters.orderSumFrom

Number

Сумма заказов от

clientParameters.orderSumTo

Number

Сумма заказов до

clientParameters.hasCard

Boolean

Дисконтная карта

clientParameters.cardSumFrom

Number

Сумма на карте от

clientParameters.cardSumTo

Number

Сумма на карте до

clientParameters.assistantId

Number

ИД куратора клиента

clientParameters.lastCallFrom

String

Звонок клиенту от

clientParameters.lastCallTo

String

Звонок клиенту до

clientParameters.lastSmsFrom

String

SMS рассылка от

clientParameters.lastSmsTo

String

SMS рассылка до

clientParameters.lastEmailFrom

String

Email рассылка от

clientParameters.lastEmailTo

String

Email рассылка до

clientParameters.lastPrivateSmsFrom

String

Уведомление от

clientParameters.lastPrivateSmsTo

String

Уведомление до

clientParameters.daysToOffer

Number

До конца акции МКЛ

clientParameters.cardEditedDays

Number

С изменения карты

clientParameters.mobile

Boolean

Пользователь мобильного

clientParameters.daysToExpiration

Number

До даты сгорания бонусов

clientParameters.cities

Array

Город клиента

notMadeOrderParameters

Object

Клиент НЕ оформлял в заказе

madeOrderParameters

Object

Клиент оформлял в заказе

madeOrderParameters.lastOrderDaysAgoFrom

Number

За последние (дней) от

madeOrderParameters.lastOrderDaysAgoTo

Number

За последние (дней) до

madeOrderParameters.status

String

Учитывать дату

madeOrderParameters.sumFrom

Number

Сумма заказа от

madeOrderParameters.sumTo

Number

Сумма заказа до

madeOrderParameters.isClientPrescription

Boolean

По рецепту клиента

madeOrderParameters.orderTypes

Array

Тип заказа

madeOrderParameters.goodTypes

Array

Тип товара

madeOrderParameters.departments

Array

Департамент

notSoldGoodParameters

Object

Клиент НЕ покупал товары

soldGoodParameters

Object

Клиент покупал товары

soldGoodParameters.lastOrderDaysAgoFrom

Number

За последние (дней) от

soldGoodParameters.lastOrderDaysAgoTo

Number

За последние (дней) до

soldGoodParameters.type

String

Тип товара

soldGoodParameters.isReturned

Boolean

Товар вернули

soldGoodParameters.orderTypes

Array

Тип заказа

soldGoodParameters.categories

Array

Категория

soldGoodParameters.names

Array

Наименование

soldGoodParameters.wearingPeriods

Array

Период ношения

soldGoodParameters.packageNums

Array

Кол-во в упаковке

soldGoodParameters.dioptresFrom

Number

Сфера от

soldGoodParameters.dioptresTo

Number

Сфера до

soldGoodParameters.addidations

Array

Аддидация

soldGoodParameters.cylinders

Array

Цилиндр

soldGoodParameters.colors

Array

Цвет

soldGoodParameters.brands

Array

Бренд

soldGoodParameters.targetGroups

Array

Целевая группа

soldGoodParameters.designs

Array

Дизайн

soldGoodParameters.manufacturers

Array

Производитель

soldGoodParameters.lensCovers

Array

Покрытие

soldGoodParameters.lensTypes

Array

Тип линзы

soldGoodParameters.lensClasses

Array

Класс линзы

soldGoodParameters.refractionIndices

Array

Индекс рефракции

soldGoodParameters.serviceTypes

Array

Название услуги

soldGoodParameters.userGroups

Array

Кто оказывает

notMadePrescriptionParameters

Object

НЕ выписывали клиенту

madePrescriptionParameters

Object

Выписывали клиенту

madePrescriptionParameters.purpose

String

Назначение рецепта

madePrescriptionParameters.doctorId

Number

ИД Врач-офтальмолог

madePrescriptionParameters.lastOrderDaysAgo

Number

За последние (дней)

madePrescriptionParameters.type

String

Тип рецепта

madePrescriptionParameters.inUse

Boolean

Использован в заказе

madePrescriptionParameters.dioptreFrom

Number

Сфера от

madePrescriptionParameters.dioptreTo

Number

Сфера до

madePrescriptionParameters.cylinders

Array

Цилиндр

madePrescriptionParameters.addidations

Array

Аддидация

Parameter Description

pageable

Pageable description

response
HTTP/1.1 200 OK

{
  "content" : [ {
    "id" : 9000000203,
    "familyName" : "Бурак",
    "firstName" : "Сергей",
    "patronymicName" : "-",
    "birthday" : "1995-01-25",
    "tel" : "89183510446",
    "email" : "test@itigris.ru",
    "birthdayDay" : 25,
    "birthdayMonth" : 1,
    "birthdayYear" : 1995
  } ],
  "pageable" : {
    "pageNumber" : 0,
    "pageSize" : 30,
    "sort" : {
      "empty" : true,
      "sorted" : false,
      "unsorted" : true
    },
    "offset" : 0,
    "paged" : true,
    "unpaged" : false
  },
  "last" : true,
  "totalElements" : 1,
  "totalPages" : 1,
  "first" : true,
  "size" : 30,
  "number" : 0,
  "sort" : {
    "empty" : true,
    "sorted" : false,
    "unsorted" : true
  },
  "numberOfElements" : 1,
  "empty" : false
}

apply by filter ID

Получить клиентов согласно переданному ИД фильтра.
По умолчанию: 30 эл-тов на странице
request
GET /api/v2/clients/filters/9999990006/apply HTTP/1.1
Table 125. /api/v2/clients/filters/{filterId}/apply
Parameter Description

filterId

ИД корневой сущности фильтра

Parameter Description

pageable

Pageable description

response
HTTP/1.1 200 OK

{
  "content" : [ {
    "id" : 9000000203,
    "familyName" : "Бурак",
    "firstName" : "Сергей",
    "patronymicName" : "-",
    "birthday" : "1995-01-25",
    "tel" : "89183510446",
    "email" : "test@itigris.ru",
    "birthdayDay" : 25,
    "birthdayMonth" : 1,
    "birthdayYear" : 1995
  } ],
  "pageable" : {
    "pageNumber" : 0,
    "pageSize" : 30,
    "sort" : {
      "empty" : true,
      "sorted" : false,
      "unsorted" : true
    },
    "offset" : 0,
    "paged" : true,
    "unpaged" : false
  },
  "last" : true,
  "totalElements" : 1,
  "totalPages" : 1,
  "first" : true,
  "size" : 30,
  "number" : 0,
  "sort" : {
    "empty" : true,
    "sorted" : false,
    "unsorted" : true
  },
  "numberOfElements" : 1,
  "empty" : false
}

apply for mailing by filter id

Рассылки - получить клиентов по готовому фильтру
request
GET /api/v2/clients/filters/9999990001/mailing/apply?mailingType=SMS HTTP/1.1
Table 126. /api/v2/clients/filters/{filterId}/mailing/apply
Parameter Description

filterId

Id готового фильтра

Parameter Description

mailingType

[EMAIL,SMS]

pageable

Pageable description

response
HTTP/1.1 200 OK

{
  "content" : [ {
    "id" : 1000000046,
    "familyName" : "-",
    "firstName" : "Оксана",
    "patronymicName" : "-",
    "birthday" : null,
    "tel" : "89031878823",
    "email" : "",
    "lastMailingId" : null,
    "lastMailingOn" : null
  }, {
    "id" : 1000000047,
    "familyName" : "-",
    "firstName" : "Алина",
    "patronymicName" : "-",
    "birthday" : null,
    "tel" : "89032670333",
    "email" : "",
    "lastMailingId" : null,
    "lastMailingOn" : null
  }, {
    "id" : 1000000048,
    "familyName" : "-",
    "firstName" : "Наталья",
    "patronymicName" : "-",
    "birthday" : null,
    "tel" : "89032726022",
    "email" : "",
    "lastMailingId" : null,
    "lastMailingOn" : null
  }, {
    "id" : 1000000049,
    "familyName" : "-",
    "firstName" : "Диана",
    "patronymicName" : "-",
    "birthday" : null,
    "tel" : "89033003062",
    "email" : "oksana.sereginanatala029@gmail.com",
    "lastMailingId" : null,
    "lastMailingOn" : null
  }, {
    "id" : 1000000050,
    "familyName" : "-",
    "firstName" : "Андрей",
    "patronymicName" : "-",
    "birthday" : null,
    "tel" : "89033459339",
    "email" : "",
    "lastMailingId" : null,
    "lastMailingOn" : null
  }, {
    "id" : 1000000051,
    "familyName" : "-",
    "firstName" : "Алла",
    "patronymicName" : "-",
    "birthday" : null,
    "tel" : "89033477888",
    "email" : "",
    "lastMailingId" : null,
    "lastMailingOn" : null
  }, {
    "id" : 1000000052,
    "familyName" : "-",
    "firstName" : "Юлия",
    "patronymicName" : "-",
    "birthday" : null,
    "tel" : "89034104672",
    "email" : "",
    "lastMailingId" : null,
    "lastMailingOn" : null
  }, {
    "id" : 1000000053,
    "familyName" : "-",
    "firstName" : "Марина",
    "patronymicName" : "-",
    "birthday" : null,
    "tel" : "89034954874",
    "email" : "",
    "lastMailingId" : null,
    "lastMailingOn" : null
  }, {
    "id" : 1000000054,
    "familyName" : "-",
    "firstName" : "Татьяна",
    "patronymicName" : "-",
    "birthday" : null,
    "tel" : "89035761055",
    "email" : "",
    "lastMailingId" : null,
    "lastMailingOn" : null
  }, {
    "id" : 1000000012,
    "familyName" : "-",
    "firstName" : "Валентина",
    "patronymicName" : "-",
    "birthday" : null,
    "tel" : "89000015248",
    "email" : "lans.la@yandex.ru",
    "lastMailingId" : null,
    "lastMailingOn" : null
  } ],
  "pageable" : {
    "pageNumber" : 0,
    "pageSize" : 10,
    "sort" : {
      "empty" : true,
      "sorted" : false,
      "unsorted" : true
    },
    "offset" : 0,
    "paged" : true,
    "unpaged" : false
  },
  "last" : false,
  "totalElements" : 45703,
  "totalPages" : 4571,
  "first" : true,
  "size" : 10,
  "number" : 0,
  "sort" : {
    "empty" : true,
    "sorted" : false,
    "unsorted" : true
  },
  "numberOfElements" : 10,
  "empty" : false
}

apply for mailing by filter request

Рассылки - получить клиентов по переданному фильтру
request
POST /api/v2/clients/filters/mailing/apply HTTP/1.1

{
  "mailingType" : "SMS",
  "ageFrom" : null,
  "ageTo" : null,
  "gender" : "MALE",
  "driver" : null,
  "computer" : null,
  "familyName" : "Петров",
  "cities" : null,
  "departmentIds" : null,
  "birthdayFrom" : null,
  "birthdayTo" : null,
  "lastVisitedOnFrom" : null,
  "lastVisitedOnTo" : null,
  "smsAccepted" : null,
  "emailAccepted" : null,
  "phoneAccepted" : null,
  "mailAccepted" : null,
  "orderType" : null,
  "goodType" : null,
  "ordersSumFrom" : null,
  "ordersSumTo" : null,
  "hasOrders" : null,
  "hasClientCard" : null,
  "cardSumFrom" : null,
  "cardSumTo" : null
}
Parameter Description

pageable

Pageable description

response
HTTP/1.1 200 OK

{
  "content" : [ {
    "id" : 1000023514,
    "familyName" : "Петров",
    "firstName" : "Александр",
    "patronymicName" : "Леонидович",
    "birthday" : null,
    "tel" : "89898260491",
    "email" : "",
    "lastMailingId" : null,
    "lastMailingOn" : null
  }, {
    "id" : 1000045336,
    "familyName" : "Петров",
    "firstName" : "Анатолий",
    "patronymicName" : "Олегович",
    "birthday" : null,
    "tel" : "89216575887",
    "email" : "",
    "lastMailingId" : null,
    "lastMailingOn" : null
  }, {
    "id" : 1000041550,
    "familyName" : "Петров",
    "firstName" : "Анатолий",
    "patronymicName" : "Олегович",
    "birthday" : null,
    "tel" : "89216575887",
    "email" : "",
    "lastMailingId" : null,
    "lastMailingOn" : null
  }, {
    "id" : 1000045337,
    "familyName" : "Петров",
    "firstName" : "Андрей",
    "patronymicName" : "Альбертович",
    "birthday" : null,
    "tel" : "89112555194",
    "email" : "",
    "lastMailingId" : null,
    "lastMailingOn" : null
  }, {
    "id" : 1000041551,
    "familyName" : "Петров",
    "firstName" : "Андрей",
    "patronymicName" : "Альбертович",
    "birthday" : null,
    "tel" : "89112555194",
    "email" : "",
    "lastMailingId" : null,
    "lastMailingOn" : null
  }, {
    "id" : 1000109275,
    "familyName" : "Петров",
    "firstName" : "Андрей",
    "patronymicName" : "Викторович",
    "birthday" : null,
    "tel" : "89962191585",
    "email" : "",
    "lastMailingId" : null,
    "lastMailingOn" : null
  }, {
    "id" : 1000041552,
    "familyName" : "Петров",
    "firstName" : "Андрей",
    "patronymicName" : "Николаевич",
    "birthday" : null,
    "tel" : "89216357192",
    "email" : "",
    "lastMailingId" : null,
    "lastMailingOn" : null
  }, {
    "id" : 1000035116,
    "familyName" : "Петров",
    "firstName" : "Андрей",
    "patronymicName" : "Николаевич",
    "birthday" : null,
    "tel" : "89117649919",
    "email" : "",
    "lastMailingId" : null,
    "lastMailingOn" : null
  }, {
    "id" : 1000045338,
    "familyName" : "Петров",
    "firstName" : "Андрей",
    "patronymicName" : "Николаевич",
    "birthday" : null,
    "tel" : "89216357192",
    "email" : "",
    "lastMailingId" : null,
    "lastMailingOn" : null
  }, {
    "id" : 1000023515,
    "familyName" : "Петров",
    "firstName" : "Вадим",
    "patronymicName" : "Витальевич",
    "birthday" : null,
    "tel" : "89615152037",
    "email" : "",
    "lastMailingId" : null,
    "lastMailingOn" : null
  } ],
  "pageable" : {
    "pageNumber" : 0,
    "pageSize" : 10,
    "sort" : {
      "empty" : true,
      "sorted" : false,
      "unsorted" : true
    },
    "offset" : 0,
    "paged" : true,
    "unpaged" : false
  },
  "last" : false,
  "totalElements" : 115,
  "totalPages" : 12,
  "first" : true,
  "size" : 10,
  "number" : 0,
  "sort" : {
    "empty" : true,
    "sorted" : false,
    "unsorted" : true
  },
  "numberOfElements" : 10,
  "empty" : false
}

get authors

GET /api/v2/clients/filters/authors HTTP/1.1
response
HTTP/1.1 200 OK

[ {
  "id" : 9000000008,
  "label" : "topmanager topmanager topmanager"
}, {
  "id" : 1000000001,
  "label" : "Кадын Тимофей"
} ]