{"info":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"28955770","collectionId":"5a0121e3-624a-46ca-8a82-1804464dfbc6","publishedId":"2s9Yyzbwux","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-02-08T17:01:19.000Z"},"item":[{"name":"User Auth","id":"0f257686-05b2-4e18-8c2a-4c46ca6107e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"gnrgargbjmrgrg@mail.ru\",\n    \"password\":\"2020arn\"\n}","options":{"raw":{"language":"json"}}},"url":"/api/v2/auth","description":"<p>Метод авторизации клиента, возвращает данные клиента и его токен</p>\n","urlObject":{"path":["api","v2","auth"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"378e9064-6f7e-4d52-9afe-a9760b68f905","name":"User Auth","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"example@email.ru\",\n    \"password\":\"password\"\n}","options":{"raw":{"language":"json"}}},"url":"/api/v1/auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTE5NzMyLCJvcmdJZCI6NjA1MTksIm5hbWUiOiLQmNC70L7QvSDQnNCw0YHQuiDQnNC7IiwicGhvbmUiOiIrNyg5MjIpNTA4LTI4LTcwIiwiZW1haWwiOiJ0ZXRlcmluLXN0ZXBhbnRldGVyaW5AeWFuZGV4LnJ1IiwiaWF0IjoxNjYxNDEzOTM5fQ.faByK9vGnvT4d61npvR6NQ5sGgKyiI9yNvjsU5AtUIM\",\n    \"user\": {\n        \"id\": 119732,\n        \"orgId\": 60519,\n        \"name\": \"Илон Маск Мл\",\n        \"phone\": \"+7(922)508-28-70\",\n        \"email\": \"teterin-stepanteterin@yandex.ru\"\n    }\n}"}],"_postman_id":"0f257686-05b2-4e18-8c2a-4c46ca6107e8"},{"name":"Edit Hook Settings","id":"6302d030-ae76-4c8e-b3c7-4e94e8eaaf65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"urls\":[\n        \"https://eozi2qpczsut8qj.m.pipedream.net\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"/api/v2/hook_settings","description":"<p>Настройка веб-хуков для организации, необходимо передать массив url хуков, массив каждый раз переписывается, если передать пустой - обнулится.</p>\n","urlObject":{"path":["api","v2","hook_settings"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"6302d030-ae76-4c8e-b3c7-4e94e8eaaf65"},{"name":"Get Visits","id":"c841d011-93e2-4b12-a4a7-705263f028bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/visit?dateFrom=2023-04-26&dateTill=2023-11-30","description":"<p>Получение списка визитов за определенные даты, параметры обязательны, без параметров возвращает за текущее число.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","visit"],"host":[""],"query":[{"key":"dateFrom","value":"2023-04-26"},{"key":"dateTill","value":"2023-11-30"},{"disabled":true,"description":{"content":"<p>Не обязательно</p>\n","type":"text/plain"},"key":"page","value":null},{"disabled":true,"description":{"content":"<p>Не обязательно</p>\n","type":"text/plain"},"key":"perPage","value":null}],"variable":[]}},"response":[{"id":"11519e9a-0a84-4292-8de8-4641c3877178","name":"Get Visits","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":{"raw":"/api/v2/visit?dateFrom=2023-04-26&dateTill=2023-11-30","path":["api","v2","visit"],"query":[{"key":"dateFrom","value":"2023-04-26"},{"key":"dateTill","value":"2023-11-30"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 07 Nov 2023 11:09:48 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"ETag","value":"W/\"71a-72yUDHNnqculZ6bjKqHGjuO6I0k\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 9,\n            \"resourceId\": 2,\n            \"services\": [\n                {\n                    \"id\": 3,\n                    \"name\": \"00\\\\а Ремонт\",\n                    \"paySum\": 500,\n                    \"price\": \"500.00\",\n                    \"discount\": 0,\n                    \"amount\": 1\n                }\n            ],\n            \"commodities\": [],\n            \"subscriptions\": [],\n            \"certificates\": [],\n            \"totalPrice\": \"500.00\",\n            \"totalCost\": \"500.00\",\n            \"client\": 1,\n            \"clientData\": {\n                \"id\": 1,\n                \"name\": \"Физическое лицо\",\n                \"firstname\": \"\",\n                \"lastname\": \"Физическое лицо\",\n                \"patronymic\": \"\",\n                \"phone\": \"\",\n                \"additionalPhone\": \"\",\n                \"sex\": 0,\n                \"birthDate\": null,\n                \"comment\": \"\",\n                \"totalArrival\": \"500.00\",\n                \"type\": null,\n                \"visitsCount\": 1,\n                \"tags\": [],\n                \"email\": \"\",\n                \"passportData\": null\n            },\n            \"datetime\": \"2023-11-07 14:00:00\",\n            \"comment\": \"\",\n            \"master_requested\": true,\n            \"attendance\": 1,\n            \"deleted\": false,\n            \"online\": false,\n            \"author\": \"Ятут Главный\",\n            \"organization\": {\n                \"name\": \"АПИпипипи\",\n                \"id\": 61542\n            },\n            \"create_date\": \"2023-11-07 14:37:30\",\n            \"update_date\": \"2023-11-07 14:37:30\"\n        },\n        {\n            \"id\": 10,\n            \"resourceId\": 1,\n            \"services\": [\n                {\n                    \"id\": 1,\n                    \"name\": \"Стрижка мужская\",\n                    \"paySum\": 500,\n                    \"price\": \"500.00\",\n                    \"discount\": 0,\n                    \"amount\": 1\n                }\n            ],\n            \"commodities\": [],\n            \"subscriptions\": [],\n            \"certificates\": [],\n            \"totalPrice\": \"500.00\",\n            \"totalCost\": \"500.00\",\n            \"client\": 2,\n            \"clientData\": {\n                \"id\": 2,\n                \"name\": \"Манилов Георгий Георгиевич\",\n                \"firstname\": \"Георгий\",\n                \"lastname\": \"Манилов\",\n                \"patronymic\": \"Георгиевич\",\n                \"phone\": \"+7(777)777-77-77\",\n                \"additionalPhone\": \"\",\n                \"sex\": 1,\n                \"birthDate\": \"03.11.1986\",\n                \"comment\": \"абвгдйка\",\n                \"totalArrival\": \"0.00\",\n                \"type\": null,\n                \"visitsCount\": 0,\n                \"tags\": [],\n                \"email\": \"77777@77.com\",\n                \"passportData\": \"66 55 444321\"\n            },\n            \"datetime\": \"2023-11-07 15:30:00\",\n            \"comment\": \"Создано Амо\",\n            \"master_requested\": true,\n            \"attendance\": 0,\n            \"deleted\": false,\n            \"online\": true,\n            \"author\": \"Онлайн-запись\",\n            \"organization\": {\n                \"name\": \"АПИпипипи\",\n                \"id\": 61542\n            },\n            \"create_date\": \"2023-11-07 14:40:41\",\n            \"update_date\": \"2023-11-07 14:40:41\"\n        }\n    ],\n    \"meta\": {\n        \"page\": 1,\n        \"lastPage\": 1,\n        \"maxPerPage\": 20\n    }\n}"}],"_postman_id":"c841d011-93e2-4b12-a4a7-705263f028bf"},{"name":"Get Visit","id":"91527fbc-8803-4a6c-a7ea-a29f01f900e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/visit/1324","description":"<p>Получение информации по конкретному визиту</p>\n","urlObject":{"path":["api","v2","visit","1324"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"b29d54da-3015-4748-87f1-759cc0e21397","name":"Get Visit","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/visit/1077"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"visit\": {\n        \"id\": 1324,\n        \"resourceId\": 1,\n        \"services\": [\n            {\n                \"id\": 2,\n                \"name\": \"Маникюр\",\n                \"paySum\": 500,\n                \"price\": \"500.00\",\n                \"discount\": 0,\n                \"amount\": 1\n            }\n        ],\n        \"commodities\": [],\n        \"subscriptions\": [],\n        \"certificates\": [],\n        \"totalPrice\": \"500.00\",\n        \"totalCost\": \"500.00\",\n        \"client\": 1,\n        \"clientData\": {\n            \"id\": 1,\n            \"name\": \"Физическое лицо\",\n            \"firstname\": \"\",\n            \"lastname\": \"Физическое лицо\",\n            \"patronymic\": \"\",\n            \"phone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": null,\n            \"comment\": \"\",\n            \"totalArrival\": \"500.00\",\n            \"type\": \"potential\",\n            \"visitsCount\": 1,\n            \"tags\": [\n                \"Источник: реклама в Instagram\",\n                \"Источник: отзывы на Flamp\"\n            ],\n            \"email\": \"test@example.com\"\n        },\n        \"datetime\": \"2023-04-26 12:00:00\",\n        \"comment\": \"\",\n        \"master_requested\": true,\n        \"attendance\": 1,\n        \"deleted\": false,\n        \"online\": false,\n        \"author\": \"Вагин Дмитрий\",\n        \"organization\": {\n            \"name\": \"Тестовый\",\n            \"id\": 48542\n        },\n        \"create_date\": \"2023-04-26 12:21:17\",\n        \"update_date\": \"2023-04-26 12:29:19\"\n    }\n}"}],"_postman_id":"91527fbc-8803-4a6c-a7ea-a29f01f900e8"},{"name":"Create Visit","id":"3a0081f0-eb4b-4d4b-b53e-af87b2b21fe0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"visit\":{\n        \"user\": {\n            \"name\": \"Test\",\n            \"phone\": \"+79049887220\",\n            \"email\": \"as@as.ru\"\n        },\n        \"comment\": \"Создано Амо\",\n        \"appointment\": {\n            \"serviceIds\": [\n                \"1\"\n            ],\n            \"resourceId\": \"1\",\n            \"datetime\": \"2023-10-07T15:30:00+05:00\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"/api/v2/visit","description":"<p>Создание визита</p>\n<p>Если указать id мастера 0 будет выбран любой мастер</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","visit"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"385953a1-0f62-4c54-b759-3fb3d59bd898","name":"Create Visit","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer  ","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"visit\":{\n        \"user\": {\n            \"name\": \"Test\",\n            \"phone\": \"+79049887220\",\n            \"email\": \"as@as.ru\"\n        },\n        \"comment\": \"Создано Амо\",\n        \"appointment\": {\n            \"serviceIds\": [\n                \"8\"\n            ],\n            \"staff_id\": \"3\",\n            \"datetime\": \"2022-08-25T14:00:00+05:00\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"/api/v2/visit"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"visit\": {\n        \"id\": 1081,\n        \"serviceIds\": [\n            \"8\"\n        ],\n        \"resourceId\": \"3\",\n        \"datetime\": \"2022-08-29T14:00:00+05:00\"\n    }\n}"}],"_postman_id":"3a0081f0-eb4b-4d4b-b53e-af87b2b21fe0"},{"name":"Update Visit","id":"08dd011a-e83e-4e3a-b2a6-3fdfc37ddb82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"comment\": \"Перенос\",\n    \"datetime\": \"2023-10-28T17:00:00+05:00\"\n}","options":{"raw":{"language":"json"}}},"url":"/api/v2/visit/8","description":"<p>Изменение визита, можно изменить комментарий и дату визита, прошедшие визиты и визиты в статусе \"клиент пришел\" менять нельзя.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","visit","8"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"3fc2ba97-1ed3-4b50-b2e1-2e852d5c39d0","name":"Update Visit","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"comment\": \"Перенос\",\n    \"datetime\": \"2022-08-28T17:00:00+05:00\"\n}","options":{"raw":{"language":"json"}}},"url":"/api/v2/visit/1077"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"visit\": {\n        \"id\": [\n            1077\n        ],\n        \"serviceIds\": [\n            \"8\"\n        ],\n        \"resourceId\": \"3\",\n        \"datetime\": \"2022-08-28T17:00:00+05:00\"\n    }\n}"}],"_postman_id":"08dd011a-e83e-4e3a-b2a6-3fdfc37ddb82"},{"name":"Update Visit Status","id":"f322c624-b05a-4cb1-8ac6-24fd48d623d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"status\": \"new\"\n}","options":{"raw":{"language":"json"}}},"url":"/api/v2/visit/27/status","description":"<p>Изменение визита, можно изменить комментарий и дату визита, прошедшие визиты и визиты в статусе \"клиент пришел\" менять нельзя.</p>\n<p>Можно передать статусы:</p>\n<ul>\n<li><p>'new': Не подтверждён</p>\n</li>\n<li><p>'confirmed': Подтверждён</p>\n</li>\n<li><p>'showedUp': Клиент пришёл</p>\n</li>\n<li><p>'cancel': Отменен</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","visit","27","status"],"host":[""],"query":[{"disabled":true,"key":"status","value":"confirmed"}],"variable":[]}},"response":[{"id":"30abfbf9-4acd-444b-8ed7-8765942de497","name":"Update Visit","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"comment\": \"Перенос\",\n    \"datetime\": \"2022-08-28T17:00:00+05:00\"\n}","options":{"raw":{"language":"json"}}},"url":"/api/v2/visit/1077"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"visit\": {\n        \"id\": [\n            1077\n        ],\n        \"serviceIds\": [\n            \"8\"\n        ],\n        \"resourceId\": \"3\",\n        \"datetime\": \"2022-08-28T17:00:00+05:00\"\n    }\n}"}],"_postman_id":"f322c624-b05a-4cb1-8ac6-24fd48d623d8"},{"name":"Delete Visit","id":"0af6f9c9-6b2a-457a-a0d9-e3efe2354e44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/visit/1077","description":"<p>Удаление визита, прошедшие визиты и визиты в статусе \"клиент пришел\" удалять нельзя.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","visit","1077"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"0af6f9c9-6b2a-457a-a0d9-e3efe2354e44"},{"name":"Get Booking Services","id":"142d2f3c-db6c-4169-99c4-0a69eb8ec199","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/booking/service","description":"<p>Получение услуг организации</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","booking","service"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"fa1d182d-1a09-41b5-93c4-9ce78c624e5e","name":"Get Booking Services","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"https://bookingapi.arnica.pro/api/v2/booking/service"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"services\": [\n        {\n            \"id\": \"1\",\n            \"title\": \"Стрижка женская\",\n            \"description\": \"\",\n            \"category\": \"Парикмахерский зал\",\n            \"image\": \"\",\n            \"durationSeconds\": 3600,\n            \"price\": {\n                \"currencyCode\": \"RUB\",\n                \"range\": [\n                    500,\n                    500\n                ]\n            },\n            \"resources\": [\n                {\n                    \"id\": \"3\",\n                    \"durationSeconds\": 3600\n                },\n                {\n                    \"id\": \"28\",\n                    \"durationSeconds\": 3600\n                },\n                {\n                    \"id\": \"31\",\n                    \"durationSeconds\": 3600\n                },\n                {\n                    \"id\": \"32\",\n                    \"durationSeconds\": 3600\n                }\n            ]\n        },\n        {\n            \"id\": \"2\",\n            \"title\": \"Маникюр\",\n            \"description\": \"\",\n            \"category\": \"Ногтевая студия\",\n            \"image\": \"\",\n            \"durationSeconds\": 5400,\n            \"price\": {\n                \"currencyCode\": \"RUB\",\n                \"range\": [\n                    500,\n                    500\n                ]\n            },\n            \"resources\": [\n                {\n                    \"id\": \"3\",\n                    \"durationSeconds\": 5400\n                },\n                {\n                    \"id\": \"28\",\n                    \"durationSeconds\": 5400\n                },\n                {\n                    \"id\": \"31\",\n                    \"durationSeconds\": 5400\n                },\n                {\n                    \"id\": \"32\",\n                    \"durationSeconds\": 5400\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"142d2f3c-db6c-4169-99c4-0a69eb8ec199"},{"name":"Get Booking Service","id":"82bbfd5c-6e0c-49db-861b-83b83792bc2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/booking/service/1","description":"<p>Получение одной услуги</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","booking","service","1"],"host":[""],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"deb2d6e3-f9bc-46e2-9602-e1c2d128418c","name":"Get Booking Service","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":{"raw":"/api/v2/booking/service/1","path":["api","v2","booking","service","1"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"service\": {\n        \"id\": \"1\",\n        \"title\": \"Стрижка женская\",\n        \"description\": \"\",\n        \"category\": \"Парикмахерский зал\",\n        \"image\": \"\",\n        \"durationSeconds\": 3600,\n        \"price\": {\n            \"currencyCode\": \"RUB\",\n            \"range\": [\n                500,\n                500\n            ]\n        },\n        \"resources\": [\n            {\n                \"id\": \"3\",\n                \"durationSeconds\": 3600\n            },\n            {\n                \"id\": \"28\",\n                \"durationSeconds\": 3600\n            },\n            {\n                \"id\": \"31\",\n                \"durationSeconds\": 3600\n            },\n            {\n                \"id\": \"32\",\n                \"durationSeconds\": 3600\n            }\n        ]\n    }\n}"}],"_postman_id":"82bbfd5c-6e0c-49db-861b-83b83792bc2f"},{"name":"Get Services","id":"50b81692-9ad7-4927-a307-107f7f837d3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/service","description":"<p>Получение услуг организации</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","service"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Не обязательно</p>\n","type":"text/plain"},"key":"page","value":null},{"disabled":true,"description":{"content":"<p>Не обязательно</p>\n","type":"text/plain"},"key":"perPage","value":null}],"variable":[]}},"response":[{"id":"b913707d-0393-4804-87f3-8d7008ae3331","name":"Get Services","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/service"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 07 Nov 2023 11:10:49 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"ETag","value":"W/\"d0d-3xxuGUZA1t8I44QHr/AzemWMl6E\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"1\",\n            \"title\": \"Стрижка мужская\",\n            \"description\": null,\n            \"category\": \"Парикмахерский зал\",\n            \"durationSeconds\": 3600,\n            \"price\": {\n                \"currencyCode\": \"RUB\",\n                \"range\": [\n                    \"300.00\",\n                    \"300.00\"\n                ]\n            }\n        },\n        {\n            \"id\": \"2\",\n            \"title\": \"Маникюр\",\n            \"description\": null,\n            \"category\": \"Ногтевая студия\",\n            \"durationSeconds\": 5400,\n            \"price\": {\n                \"currencyCode\": \"RUB\",\n                \"range\": [\n                    \"500.00\",\n                    \"500.00\"\n                ]\n            }\n        },\n        {\n            \"id\": \"3\",\n            \"title\": \"00\\\\а Ремонт\",\n            \"description\": null,\n            \"category\": \"Парикмахерский зал\",\n            \"durationSeconds\": 3660,\n            \"price\": {\n                \"currencyCode\": \"RUB\",\n                \"range\": [\n                    \"1000.00\",\n                    \"1000.00\"\n                ]\n            }\n        },\n        {\n            \"id\": \"4\",\n            \"title\": \"ИТ информасьон\",\n            \"description\": null,\n            \"category\": \"Парикмахерский зал\",\n            \"durationSeconds\": 3540,\n            \"price\": {\n                \"currencyCode\": \"RUB\",\n                \"range\": [\n                    \"999.00\",\n                    \"999.00\"\n                ]\n            }\n        },\n        {\n            \"id\": \"5\",\n            \"title\": \"Солярий\",\n            \"description\": null,\n            \"category\": \"Парикмахерский зал\",\n            \"durationSeconds\": 60,\n            \"price\": {\n                \"currencyCode\": \"RUB\",\n                \"range\": [\n                    \"10.00\",\n                    \"10.00\"\n                ]\n            }\n        },\n        {\n            \"id\": \"6\",\n            \"title\": \"онлайн запись скидка работает?\",\n            \"description\": null,\n            \"category\": \"Парикмахерский зал\",\n            \"durationSeconds\": 3600,\n            \"price\": {\n                \"currencyCode\": \"RUB\",\n                \"range\": [\n                    \"1.00\",\n                    \"1.00\"\n                ]\n            }\n        },\n        {\n            \"id\": \"7\",\n            \"title\": \"услуга с достаточно длинным названием, но могло быть и длиннее\",\n            \"description\": null,\n            \"category\": \"Парикмахерский зал\",\n            \"durationSeconds\": 3600,\n            \"price\": {\n                \"currencyCode\": \"RUB\",\n                \"range\": [\n                    \"5000.00\",\n                    \"5000.00\"\n                ]\n            }\n        },\n        {\n            \"id\": \"8\",\n            \"title\": \"Скидка\",\n            \"description\": null,\n            \"category\": \"Парикмахерский зал\",\n            \"durationSeconds\": 1800,\n            \"price\": {\n                \"currencyCode\": \"RUB\",\n                \"range\": [\n                    \"1000.00\",\n                    \"1000.00\"\n                ]\n            }\n        },\n        {\n            \"id\": \"9\",\n            \"title\": \"услуга\",\n            \"description\": null,\n            \"category\": \"Парикмахерский зал\",\n            \"durationSeconds\": 4800,\n            \"price\": {\n                \"currencyCode\": \"RUB\",\n                \"range\": [\n                    \"2100.00\",\n                    \"2100.00\"\n                ]\n            }\n        },\n        {\n            \"id\": \"10\",\n            \"title\": \"1. апиоль\",\n            \"description\": null,\n            \"category\": \"Парикмахерский зал\",\n            \"durationSeconds\": 5400,\n            \"price\": {\n                \"currencyCode\": \"RUB\",\n                \"range\": [\n                    \"632.00\",\n                    \"632.00\"\n                ]\n            }\n        },\n        {\n            \"id\": \"11\",\n            \"title\": \"Комплексное гистологическое и иммуногистохимическое исследование с применением необходимых иммуногистохимических окрасок для определения: иммунофенотипа опухоли (в том числе при лимфопролиферативных заболеваниях); гистогенеза метастазов при неустановленно\",\n            \"description\": null,\n            \"category\": \"Парикмахерский зал\",\n            \"durationSeconds\": 900,\n            \"price\": {\n                \"currencyCode\": \"RUB\",\n                \"range\": [\n                    \"1500.00\",\n                    \"1500.00\"\n                ]\n            }\n        },\n        {\n            \"id\": \"12\",\n            \"title\": \"01234567890123456789012345678901234567890123456789\",\n            \"description\": null,\n            \"category\": \"Парикмахерский зал\",\n            \"durationSeconds\": 2700,\n            \"price\": {\n                \"currencyCode\": \"RUB\",\n                \"range\": [\n                    \"5000.00\",\n                    \"5000.00\"\n                ]\n            }\n        },\n        {\n            \"id\": \"13\",\n            \"title\": \"1. маник\",\n            \"description\": null,\n            \"category\": \"Парикмахерский зал\",\n            \"durationSeconds\": 60,\n            \"price\": {\n                \"currencyCode\": \"RUB\",\n                \"range\": [\n                    \"800.00\",\n                    \"800.00\"\n                ]\n            }\n        },\n        {\n            \"id\": \"14\",\n            \"title\": \"1.1 стрижка\",\n            \"description\": null,\n            \"category\": \"Парикмахерский зал\",\n            \"durationSeconds\": 3600,\n            \"price\": {\n                \"currencyCode\": \"RUB\",\n                \"range\": [\n                    \"700.00\",\n                    \"700.00\"\n                ]\n            }\n        }\n    ],\n    \"meta\": {\n        \"page\": 1,\n        \"lastPage\": 1,\n        \"maxPerPage\": 20\n    }\n}"}],"_postman_id":"50b81692-9ad7-4927-a307-107f7f837d3d"},{"name":"Get Service","id":"bd9e3091-17bc-44da-a7f3-9135ae0ef6a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/service/1","description":"<p>Получение одной услуги</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","service","1"],"host":[""],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"ff15de2d-7651-437a-994e-dac444a8c697","name":"Get Service","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":{"raw":"/api/v2/service/1","path":["api","v2","service","1"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"service\": {\n        \"id\": \"1\",\n        \"title\": \"Стрижка женская\",\n        \"description\": \"\",\n        \"category\": \"Парикмахерский зал\",\n        \"image\": \"\",\n        \"durationSeconds\": 3600,\n        \"price\": {\n            \"currencyCode\": \"RUB\",\n            \"range\": [\n                500,\n                500\n            ]\n        },\n        \"resources\": [\n            {\n                \"id\": \"3\",\n                \"durationSeconds\": 3600\n            },\n            {\n                \"id\": \"28\",\n                \"durationSeconds\": 3600\n            },\n            {\n                \"id\": \"31\",\n                \"durationSeconds\": 3600\n            },\n            {\n                \"id\": \"32\",\n                \"durationSeconds\": 3600\n            }\n        ]\n    }\n}"}],"_postman_id":"bd9e3091-17bc-44da-a7f3-9135ae0ef6a0"},{"name":"Get Commodities","id":"576048a6-5e29-40da-b915-fe930f25f62c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/commodity","description":"<p>Получение одной услуги</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","commodity"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Не обязательно</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>Не обязательно</p>\n","type":"text/plain"},"key":"perPage","value":null}],"variable":[]}},"response":[{"id":"f260fcff-5156-420a-a6e0-101d5da5c68a","name":"Get Commodities","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":{"raw":"/api/v2/commodity","path":["api","v2","commodity"],"query":[{"key":"","value":"","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 07 Nov 2023 11:11:11 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"383"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"ETag","value":"W/\"17f-SEg6FxKblnBOdl3jMLlIk0GP39w\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"1\",\n            \"title\": \"Зубная паста\",\n            \"description\": null,\n            \"category\": \"Гигиена полости рта\",\n            \"price\": \"100.00\",\n            \"article\": null\n        },\n        {\n            \"id\": \"2\",\n            \"title\": \"Ополаскиватель для полости рта\",\n            \"description\": null,\n            \"category\": \"Гигиена полости рта\",\n            \"price\": \"150.00\",\n            \"article\": null\n        }\n    ],\n    \"meta\": {\n        \"page\": 1,\n        \"lastPage\": 1,\n        \"maxPerPage\": 20\n    }\n}"}],"_postman_id":"576048a6-5e29-40da-b915-fe930f25f62c"},{"name":"Get Commodity","id":"0768f0cf-e470-498d-8d08-705ba6ac2ddb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/commodity/3","description":"<p>Получение одной услуги</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","commodity","3"],"host":[""],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"c907d538-bc50-42fd-a89b-a7d4ae94a570","name":"Get Commodity","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":{"raw":"/api/v2/commodity/3","path":["api","v2","commodity","3"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"commodity\": {\n        \"id\": \"3\",\n        \"title\": \"Juviderm Ultra3 1мл\",\n        \"description\": \"asdsads\",\n        \"category\": \"ИПЛ\",\n        \"price\": \"6098.75\",\n        \"article\": null\n    }\n}"}],"_postman_id":"0768f0cf-e470-498d-8d08-705ba6ac2ddb"},{"name":"Get Resources","id":"f33add11-9a36-4e12-b84f-9d245fbcbc63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/resource","description":"<p>Получение доступных сотрудников</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","resource"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"c5d76365-0d5a-44c1-bbf3-5ef6cace7b95","name":"Get Resources","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/resource"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"resources\": [\n        {\n            \"id\": \"3\",\n            \"title\": \"Вячеслав Вяткин\",\n            \"description\": \"Администратор\",\n            \"image\": \"\"\n        },\n        {\n            \"id\": \"28\",\n            \"title\": \"Иван Иванов\",\n            \"description\": null,\n            \"image\": \"\"\n        }\n    ]\n}"}],"_postman_id":"f33add11-9a36-4e12-b84f-9d245fbcbc63"},{"name":"Get Resource Available Time Slots","id":"4ad2c237-7d75-4fe3-a9c6-75665c1a1bdb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/resource/3/time?serviceIds[]=1&date=2023-10-07&resourceId=1","description":"<p>Получение доступных слотов для записи к выбранному сотруднику, ид услуг и дата обязательны</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","resource","3","time"],"host":[""],"query":[{"key":"serviceIds[]","value":"1"},{"key":"date","value":"2023-10-07"},{"key":"resourceId","value":"1"}],"variable":[]}},"response":[{"id":"d6be2412-4ed2-4575-9015-4fb0140420a6","name":"Get Resource Available Time Slots","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":{"raw":"/api/v2/resource/3/time?serviceIds[]=2&date=2022-08-25","path":["api","v2","resource","3","time"],"query":[{"key":"serviceIds[]","value":"2"},{"key":"date","value":"2022-08-25"},{"key":"resourceId","value":"3","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"availableTimeSlots\": [\n        {\n            \"datetime\": \"2022-08-25T16:45:00+05:00\"\n        },\n        {\n            \"datetime\": \"2022-08-25T17:00:00+05:00\"\n        },\n        {\n            \"datetime\": \"2022-08-25T17:15:00+05:00\"\n        },\n        {\n            \"datetime\": \"2022-08-25T17:30:00+05:00\"\n        },\n        {\n            \"datetime\": \"2022-08-25T17:45:00+05:00\"\n        },\n        {\n            \"datetime\": \"2022-08-25T18:00:00+05:00\"\n        },\n        {\n            \"datetime\": \"2022-08-25T18:15:00+05:00\"\n        },\n        {\n            \"datetime\": \"2022-08-25T18:30:00+05:00\"\n        }\n    ]\n}"}],"_postman_id":"4ad2c237-7d75-4fe3-a9c6-75665c1a1bdb"},{"name":"Get Resource Available Dates","id":"9917edff-8ddb-466e-80c4-328a8bfd5778","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/resource/3/date?serviceIds[]=2&from=2022-08-25&to=2022-08-28","description":"<p>Получение дат, в которые возможно осуществить запись к сотруднику по выбранным услугам</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","resource","3","date"],"host":[""],"query":[{"key":"serviceIds[]","value":"2"},{"key":"from","value":"2022-08-25"},{"key":"to","value":"2022-08-28"}],"variable":[]}},"response":[{"id":"1e5b8ae9-e548-4191-b06c-f9084e7afad4","name":"Get Resource Available Dates","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":{"raw":"/api/v2/resource/3/date?serviceIds[]=2&from=2022-08-25&to=2022-08-28","path":["api","v2","resource","3","date"],"query":[{"key":"serviceIds[]","value":"2"},{"key":"from","value":"2022-08-25"},{"key":"to","value":"2022-08-28"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"availableDates\": [\n        {\n            \"date\": \"2022-08-25\"\n        },\n        {\n            \"date\": \"2022-08-26\"\n        },\n        {\n            \"date\": \"2022-08-27\"\n        },\n        {\n            \"date\": \"2022-08-28\"\n        }\n    ]\n}"}],"_postman_id":"9917edff-8ddb-466e-80c4-328a8bfd5778"},{"name":"Get Clients","id":"9775d006-0756-487a-bbc3-22aebe6b2846","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/client?page=1&perPage=5","description":"<p>Получение клиентов организации</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","client"],"host":[""],"query":[{"description":{"content":"<p>Не обязательно</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Не обязательно</p>\n","type":"text/plain"},"key":"perPage","value":"5"}],"variable":[]}},"response":[{"id":"af0ce8f0-951a-434e-8b12-5eb95ae3219b","name":"Get Clients","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/client"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 07 Nov 2023 11:11:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"ETag","value":"W/\"239d-MjFaqgWjhNy7qqlFGxad79REmzo\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"Физическое лицо\",\n            \"firstname\": \"\",\n            \"lastname\": \"Физическое лицо\",\n            \"patronymic\": \"\",\n            \"phone\": \"\",\n            \"additionalPhone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": null,\n            \"comment\": \"\",\n            \"totalArrival\": \"500.00\",\n            \"type\": null,\n            \"visitsCount\": 1,\n            \"tags\": [],\n            \"email\": \"\",\n            \"passportData\": null,\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Манилов Георгий Георгиевич\",\n            \"firstname\": \"Георгий\",\n            \"lastname\": \"Манилов\",\n            \"patronymic\": \"Георгиевич\",\n            \"phone\": \"+7(777)777-77-77\",\n            \"additionalPhone\": \"\",\n            \"sex\": 1,\n            \"birthDate\": \"03.11.1986\",\n            \"comment\": \"абвгдйка\",\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"77777@77.com\",\n            \"passportData\": \"66 55 444321\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        },\n        {\n            \"id\": 3,\n            \"name\": \"Мария Грищенко Сергеевна\",\n            \"firstname\": \"Грищенко\",\n            \"lastname\": \"Мария\",\n            \"patronymic\": \"Сергеевна\",\n            \"phone\": \"+7(966)701-15-48\",\n            \"additionalPhone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": \"07.08.1994\",\n            \"comment\": \"ЛяськиДублирующий пользователь имел следующую информацию:\\nимя - Пришел,\\nфамилия - Со скидкой,\\nотчество - Хер,\\nкарта - 0008\",\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"\",\n            \"passportData\": \"\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        },\n        {\n            \"id\": 4,\n            \"name\": \"Оценкщик качества11 Миу\",\n            \"firstname\": \"качества11\",\n            \"lastname\": \"Оценкщик\",\n            \"patronymic\": \"Миу\",\n            \"phone\": \"+7(982)609-89-78\",\n            \"additionalPhone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": null,\n            \"comment\": null,\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"frrf@mail.ru\",\n            \"passportData\": \"\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        },\n        {\n            \"id\": 5,\n            \"name\": \"Новый Клиент\",\n            \"firstname\": \"Клиент\",\n            \"lastname\": \"Новый\",\n            \"patronymic\": \"\",\n            \"phone\": \"\",\n            \"additionalPhone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": null,\n            \"comment\": null,\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"\",\n            \"passportData\": \"\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        },\n        {\n            \"id\": 21,\n            \"name\": \"Лох\",\n            \"firstname\": \"\",\n            \"lastname\": \"Лох\",\n            \"patronymic\": \"\",\n            \"phone\": \"\",\n            \"additionalPhone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": null,\n            \"comment\": null,\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"\",\n            \"passportData\": \"\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        },\n        {\n            \"id\": 22,\n            \"name\": \"Лох2\",\n            \"firstname\": \"\",\n            \"lastname\": \"Лох2\",\n            \"patronymic\": \"\",\n            \"phone\": \"\",\n            \"additionalPhone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": null,\n            \"comment\": null,\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"\",\n            \"passportData\": \"\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        },\n        {\n            \"id\": 6,\n            \"name\": \"Новый Сергей Гена\",\n            \"firstname\": \"Сергей\",\n            \"lastname\": \"Новый\",\n            \"patronymic\": \"Гена\",\n            \"phone\": \"+7(982)607-52-79\",\n            \"additionalPhone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": \"17.02\",\n            \"comment\": null,\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"\",\n            \"passportData\": \"\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        },\n        {\n            \"id\": 7,\n            \"name\": \"ЖоРа ЖоРа Жора\",\n            \"firstname\": \"ЖоРа\",\n            \"lastname\": \"ЖоРа\",\n            \"patronymic\": \"Жора\",\n            \"phone\": \"+7(999)252-18-36\",\n            \"additionalPhone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": \"26.05.1993\",\n            \"comment\": null,\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"\",\n            \"passportData\": \"\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        },\n        {\n            \"id\": 8,\n            \"name\": \"Пежон Хмурый\",\n            \"firstname\": \"Хмурый\",\n            \"lastname\": \"Пежон\",\n            \"patronymic\": \"\",\n            \"phone\": \"+7(800)225-14-45\",\n            \"additionalPhone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": \"25.05.2003\",\n            \"comment\": null,\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"\",\n            \"passportData\": \"\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        },\n        {\n            \"id\": 9,\n            \"name\": \"Хочет Абонемент Получ Сертификат\",\n            \"firstname\": \"Получ Сертификат\",\n            \"lastname\": \"Хочет Абонемент\",\n            \"patronymic\": \"\",\n            \"phone\": \"\",\n            \"additionalPhone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": null,\n            \"comment\": null,\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"\",\n            \"passportData\": \"\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        },\n        {\n            \"id\": 10,\n            \"name\": \"\\\\Кому передали абонем\",\n            \"firstname\": \"\",\n            \"lastname\": \"\\\\Кому передали абонем\",\n            \"patronymic\": \"\",\n            \"phone\": \"\",\n            \"additionalPhone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": null,\n            \"comment\": null,\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"\",\n            \"passportData\": \"\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        },\n        {\n            \"id\": 11,\n            \"name\": \"Яя Явский\",\n            \"firstname\": \"Явский\",\n            \"lastname\": \"Яя\",\n            \"patronymic\": \"\",\n            \"phone\": \"\",\n            \"additionalPhone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": null,\n            \"comment\": \"полный беспросветный имбецил\",\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"\",\n            \"passportData\": \"\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        },\n        {\n            \"id\": 12,\n            \"name\": \"Бб Бвский\",\n            \"firstname\": \"Бвский\",\n            \"lastname\": \"Бб\",\n            \"patronymic\": \"\",\n            \"phone\": \"\",\n            \"additionalPhone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": null,\n            \"comment\": null,\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"\",\n            \"passportData\": \"\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        },\n        {\n            \"id\": 13,\n            \"name\": \"Зачем Зачто\",\n            \"firstname\": \"Зачто\",\n            \"lastname\": \"Зачем\",\n            \"patronymic\": \"\",\n            \"phone\": \"\",\n            \"additionalPhone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": null,\n            \"comment\": null,\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"\",\n            \"passportData\": \"\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        },\n        {\n            \"id\": 14,\n            \"name\": \"Черныйё Список\",\n            \"firstname\": \"Список\",\n            \"lastname\": \"Черныйё\",\n            \"patronymic\": \"\",\n            \"phone\": \"+7(111)111-11-11\",\n            \"additionalPhone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": null,\n            \"comment\": null,\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"\",\n            \"passportData\": \"\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        },\n        {\n            \"id\": 15,\n            \"name\": \"Карл Ууууу Клары\",\n            \"firstname\": \"Ууууу\",\n            \"lastname\": \"Карл\",\n            \"patronymic\": \"Клары\",\n            \"phone\": \"\",\n            \"additionalPhone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": null,\n            \"comment\": \"Устная передача — самый древний способ передачи знаний в истории человечества. После изобретения древними цивилизациями систем записи люди начали использовать для письма почти всё, на чём можно писать — глиняные таблички, кору дерева, листы металла и т. п.\\nТаблички\\nШумерская глиняная табличка с клинописью\",\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"\",\n            \"passportData\": \"\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        },\n        {\n            \"id\": 16,\n            \"name\": \"вика\",\n            \"firstname\": \"вика\",\n            \"lastname\": \"\",\n            \"patronymic\": \"\",\n            \"phone\": \"\",\n            \"additionalPhone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": null,\n            \"comment\": null,\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"\",\n            \"passportData\": \"\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        },\n        {\n            \"id\": 17,\n            \"name\": \"Вереченко Дима\",\n            \"firstname\": \"Дима\",\n            \"lastname\": \"Вереченко\",\n            \"patronymic\": \"\",\n            \"phone\": \"+7(996)593-98-20\",\n            \"additionalPhone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": null,\n            \"comment\": \"Дублирующий пользователь имел следующую информацию:\\nимя - Дмитрий,\\nфамилия - Вереченко\",\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"\",\n            \"passportData\": \"\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        },\n        {\n            \"id\": 18,\n            \"name\": \"Алина Шпиц Чарли\",\n            \"firstname\": \"Шпиц\",\n            \"lastname\": \"Алина\",\n            \"patronymic\": \"Чарли\",\n            \"phone\": \"\",\n            \"additionalPhone\": \"\",\n            \"sex\": 0,\n            \"birthDate\": null,\n            \"comment\": null,\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"\",\n            \"passportData\": \"\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": null,\n                \"numberDocument\": null,\n                \"dateOfIssue\": null,\n                \"issuingAuthority\": null\n            }\n        }\n    ],\n    \"meta\": {\n        \"page\": 1,\n        \"lastPage\": 3,\n        \"maxPerPage\": 20\n    }\n}"}],"_postman_id":"9775d006-0756-487a-bbc3-22aebe6b2846"},{"name":"Get Client","id":"e1362203-5937-4571-978f-97abe7866501","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/client/1","description":"<p>Получение клиента</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","client","1"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"124e9336-3bc7-49cc-9f0a-918e1c1783a1","name":"Get Client","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/client/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 07 Nov 2023 11:38:41 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"407"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"ETag","value":"W/\"197-ssj+FJ2WvKBeVVYflQ30VLJnDds\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"client\": {\n        \"id\": 1,\n        \"name\": \"Физическое лицо\",\n        \"firstname\": \"\",\n        \"lastname\": \"Физическое лицо\",\n        \"patronymic\": \"\",\n        \"phone\": \"\",\n        \"additionalPhone\": \"\",\n        \"sex\": 0,\n        \"birthDate\": null,\n        \"comment\": \"\",\n        \"totalArrival\": \"500.00\",\n        \"type\": null,\n        \"visitsCount\": 1,\n        \"tags\": [],\n        \"email\": \"\",\n        \"passportData\": null,\n        \"passportDataDetailed\": {\n            \"serialDocument\": null,\n            \"numberDocument\": null,\n            \"dateOfIssue\": null,\n            \"issuingAuthority\": null\n        }\n    }\n}"}],"_postman_id":"e1362203-5937-4571-978f-97abe7866501"},{"name":"Get Client By Phone","id":"25039c23-4c63-441f-84f8-cd1ac9da0f79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/client/phone/+7(904)988-72-20","description":"<p>Получение клиента</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","client","phone","+7(904)988-72-20"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"abb9e057-84f2-4134-ab64-a64b6f2c6108","name":"Get Client By Phone","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/client/phone/+7(904)988-72-20"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"client\": {\n        \"id\": 7396,\n        \"name\": \"Абрамов test Иванович\",\n        \"phone\": \"+7(904)988-72-20\",\n        \"sex\": 0,\n        \"birthDate\": \"10.03.1987\",\n        \"comment\": null,\n        \"totalArrival\": \"6050.00\",\n        \"type\": \"noGroup\"\n    }\n}"}],"_postman_id":"25039c23-4c63-441f-84f8-cd1ac9da0f79"},{"name":"Create Client","id":"e1297a50-b9ed-4582-8cee-d7bf7b5d4e79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"firstname\":\"Иван\",\n        \"lastname\":\"Иванов\",\n        \"patronymic\":\"Иванович\",\n        \"phone\":\"+7(904)988-72-21\",\n        \"comment\":\"comment\",\n        \"birthDate\":\"1988-04-03\",\n        \"sex\": 1,\n        \"email\": \"test@example.com\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"/api/v2/client","description":"<p>Создание клиента, в имени обязательно по порядку указывать Имя, Фамилия, Отчество</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","client"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"dbe5d755-55d8-4079-a7d0-9c8194f89c93","name":"Create Client","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"name\":\"Иван Иванов Иванович\",\n        \"phone\":\"+7(904)988-72-21\",\n        \"comment\":\"comment\",\n        \"birthDate\":\"1988-04-03\",\n        \"sex\": 1\n    }\n}","options":{"raw":{"language":"json"}}},"url":"/api/v2/client"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"client\": {\n        \"id\": 93,\n        \"name\": \"Иванов Иван Иванович\",\n        \"firstname\": \"Иван\",\n        \"lastname\": \"Иванов\",\n        \"patronymic\": \"Иванович\",\n        \"phone\": \"+7(904)988-72-21\",\n        \"sex\": 1,\n        \"birthDate\": \"03.04.1988\",\n        \"comment\": \"comment\",\n        \"totalArrival\": \"0\",\n        \"type\": null,\n        \"email\": \"test@example.com\"\n    }\n}"}],"_postman_id":"e1297a50-b9ed-4582-8cee-d7bf7b5d4e79"},{"name":"Update Client","id":"38eb4298-8933-49bc-af96-8d0ba4f6d516","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"client\": {\n            \"firstname\": \"Иван1\",\n            \"lastname\": \"Иванов1\",\n            \"patronymic\": \"Иванович\",\n            \"phone\": \"9044887221\",\n            \"additionalPhone\": \"+7(904)488-72-21\",\n            \"sex\": 1,\n            \"birthDate\": \"05.04.1988\",\n            \"comment\": \"изменился\",\n            \"totalArrival\": \"0.00\",\n            \"type\": null,\n            \"visitsCount\": 0,\n            \"tags\": [],\n            \"email\": \"test@example.com\",\n            \"passportData\": \"5456\",\n            \"passportDataDetailed\": {\n                \"serialDocument\": \"1233\",\n                \"numberDocument\": \"231233\",\n                \"dateOfIssue\": \"03.05.2016\",\n                \"issuingAuthority\": \"УФМС России\"\n            }\n\n    }\n}","options":{"raw":{"language":"json"}}},"url":"/api/v2/client/2","description":"<p>Изменение клиента</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","client","2"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"3f231ec6-c8ba-4078-9ce5-31100f9e3d87","name":"Update Client","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"name\":\"Иван Иванов Иванович\",\n        \"phone\":\"+7(904)988-72-23\",\n        \"comment\":\"comment\",\n        \"birthDate\":\"1988-04-04\",\n        \"sex\": 2\n    }\n}","options":{"raw":{"language":"json"}}},"url":"/api/v2/client/84"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"client\": {\n        \"id\": 93,\n        \"name\": \"Иванов Иван Иванович\",\n        \"firstname\": \"Иван\",\n        \"lastname\": \"Иванов\",\n        \"patronymic\": \"Иванович\",\n        \"phone\": \"+7(904)988-72-21\",\n        \"sex\": 1,\n        \"birthDate\": \"03.04.1988\",\n        \"comment\": \"comment\",\n        \"totalArrival\": \"0\",\n        \"type\": null,\n        \"email\": \"test@example.com\"\n    }\n}"}],"_postman_id":"38eb4298-8933-49bc-af96-8d0ba4f6d516"},{"name":"Delete Client","id":"6496e054-4902-490f-b3c4-4a40de9fc65a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v2/client/83","description":"<p>Удаление клиента</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","id":"5a0121e3-624a-46ca-8a82-1804464dfbc6","name":"Arnika - Crm Exchange REST API V2","type":"collection"}},"urlObject":{"path":["api","v2","client","83"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"6496e054-4902-490f-b3c4-4a40de9fc65a"}],"auth":{"type":"bearer","bearer":{"basicConfig":[]}},"event":[{"listen":"prerequest","script":{"id":"77b15400-9c7c-40f8-a3d2-0673b2374df8","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"bfb225ed-2f78-4d0f-b2da-e3dd5ae62111","type":"text/javascript","exec":[""]}}],"variable":[{"key":"host","value":"","type":"string"},{"key":"userToken","value":"","type":"string"}]}