Фильтрация клиентов

Запрос /online/bonuses/filterCustomers [POST] - получить список клиентов CRM по фильтру

Параметры запроса:

  • search - строка поиска

Параметры ответа: список клиентов CRM, для которых строка поиска частично совпадает хотя бы с одним из свойств:

  • фамилия, имя, отчество клиента (без учета регистра)
  • номер телефона клиента

Пример:

test@test:~$ curl -i -X POST -u test:test -H "Content-Type:application/json" -d '{"search":"Иван"}' http://test.quickresto.ru/platform/online/bonuses/filterCustomers
HTTP/1.1 200 OK
Server: nginx/1.4.6 (Ubuntu)
Date: Mon, 08 Feb 2016 08:34:19 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Set-Cookie: JSESSIONID=446353F21B5E176F94E30EFF7FDB21FF; Path=/; HttpOnly

{"customers":[{"id":1,"version":0,"deleted":false,"firstName":"Иван","lastName":"Лобанов","dateOfBirth":636836400000,"sex":"male","contactMethods":[],"tokens":[],"accounts":[],"accumulationBalance":{"ledger":0,"available":0,"debitHold":0,"creditHold":0},"createTime":1454920295388,"hidden":false,"customerGuid":"customer_put-160208013135387T","title":"Иван null Лобанов","blocked":false,"disabled":false,"lastFrontRevision":false,"className":"ru.edgex.quickresto.modules.crm.customer.CrmCustomer","_Level":0,"_id":"customer_put-160208013135387T"},{"id":2,"version":0,"deleted":false,"firstName":"иван","lastName":"петров","dateOfBirth":718052400000,"sex":"male","contactMethods":[],"tokens":[],"accounts":[],"accumulationBalance":{"ledger":0,"available":0,"debitHold":0,"creditHold":0},"createTime":1454920313845,"hidden":false,"customerGuid":"customer_put-160208013153845B","title":"иван null петров","blocked":false,"disabled":false,"lastFrontRevision":false,"className":"ru.edgex.quickresto.modules.crm.customer.CrmCustomer","_Level":0,"_id":"customer_put-160208013153845B"},{"id":3,"version":0,"deleted":false,"firstName":"Василий","lastName":"Иванов","dateOfBirth":615492000000,"sex":"male","contactMethods":[],"tokens":[],"accounts":[],"accumulationBalance":{"ledger":0,"available":0,"debitHold":0,"creditHold":0},"createTime":1454920425583,"hidden":false,"customerGuid":"customer_put-1602080133455832","title":"Василий null Иванов","blocked":false,"disabled":false,"lastFrontRevision":false,"className":"ru.edgex.quickresto.modules.crm.customer.CrmCustomer","_Level":0,"_id":"customer_put-1602080133455832"}]}
Регистрируясь на сервисе Quick Resto, вы принимаете условия лицензионного соглашения
Подождите, происходит установка и настройка вашего облака.