{"info":{"_postman_id":"693ff7a6-2bde-47d1-8f08-a9130edcf6e8","name":"AgentApp b2b API","description":"<html><head></head><body><h1 id=\"principy-api\">Принципы API</h1>\n<h3 id=\"корневой-url-root\">Корневой URL (root)</h3>\n<ul>\n<li>Весь api находится по адресу, выданному сотрудниками AgentApp</li>\n<li>Основной процесс оформления показан на схеме <a href=\"https://drive.google.com/file/d/1Q9gcYKELJHa-Meos_VlDyrkuRa6YggVK/view\">https://drive.google.com/file/d/1Q9gcYKELJHa-Meos_VlDyrkuRa6YggVK/view</a></li>\n</ul>\n<h3 id=\"версионность\">Версионность</h3>\n<ul>\n<li>После корня идёт указание версии api. Версия данного api - v1, v2</li>\n<li>v1 подходит для указания контактов страхователя после получения тарифов от СК</li>\n<li>v2 подходит, когда известны данные страхователя до получения расчёта от СК\n!!! Рекомендуется использовать процесс v2 т.к. поддержка v1 может прекратиться</li>\n</ul>\n<h3 id=\"конечные-точки-endpoints\">Конечные точки (endpoints)</h3>\n<ul>\n<li>Используется мн.ч.</li>\n<li>Слова соединяются через подчёркивание</li>\n<li>На конце слэш не ставится</li>\n</ul>\n<h3 id=\"методы-запросов\">Методы запросов.</h3>\n<ul>\n<li>GET - получить объект/объекты. Если не указывать ID объекта, то получаем все доступные объекты. Пример, /dicts/credential_types</li>\n<li>POST - создать объект.</li>\n<li>PUT - обновить полностью объект. Требуется ID объекта</li>\n<li>PATCH - обновить частично объект. Требуется ID объекта</li>\n<li>DELETE - удалить объект. Требуется ID объекта</li>\n</ul>\n<h3 id=\"статусы-ответов\">Статусы ответов:</h3>\n<ul>\n<li>200 OK – [GET]</li>\n<li>201 CREATED – [POST/PUT/PATCH]</li>\n<li>204 NO CONTENT – [DELETE]</li>\n<li>400 INVALID REQUEST – [POST/PUT/PATCH/DELETE]</li>\n<li>403 FORBIDDEN – [*]</li>\n<li>404 NOT FOUND – [*]</li>\n<li>423 LOCKED - требуется верификация (телефона, реквизитов)</li>\n<li>500 INTERNAL SERVER ERROR – [*]</li>\n</ul>\n<h3 id=\"аутентификация-authentication\">Аутентификация (Authentication)</h3>\n<ul>\n<li>Все запросы, кроме получения токена требуют передачу вместе с запросом заголовка:</li>\n</ul>\n<p>Authorization: Token {{token}}',</p>\n<p>где {{token}} - это токен</p>\n<ul>\n<li>Получение токена осуществляется через метод /users/obtain-token</li>\n</ul>\n<h3 id=\"тип-передаваемой-и-получаемой-информации-accept-content-type\">Тип передаваемой и получаемой информации (Accept, Content-Type)</h3>\n<ul>\n<li>Каждый запрос, как ожидает, так и отвечает application/json</li>\n</ul>\n<h3 id=\"фильтры\">Фильтры</h3>\n<ul>\n<li>Некоторые GET-запросы допускают фильтрацию через добавление к запросу параметров:\n** ?ordering=last_name</li>\n</ul>\n<h1 id=\"changelog\">ChangeLog</h1>\n<p>19/02/20 Добавлен тип документа для ЕПТС </p><br>\n<p>04/12/19 Добавлено описание создания автомобиля по справочнику v2 без модификации</p><br>\n<p>01/10/19 Добавлено описание новых справочников. Справочники перенесены в соответствующий раздел. Добавлен запрос v2 на создание автомобиля</p><br>\n<p>20/08/19 Добавлена ссылка на схему основного процесса</p><br>\n<p>23/07/19 По страхователю/собственнику/водителю добавлены примеры передачи пола</p><br>\n<p>18/07/19 Добавлено описание метода Работа с договором\\Проверка статуса котировки</p></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Принципы API","slug":"principy-api"},{"content":"ChangeLog","slug":"changelog"}],"owner":"1182459","collectionId":"693ff7a6-2bde-47d1-8f08-a9130edcf6e8","publishedId":"S1ZxcVkV","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-06-18T08:22:30.000Z"},"item":[{"name":"Аутентификация","item":[{"name":"Получение токена","event":[{"listen":"test","script":{"id":"2667f9dc-af33-4fd2-86c1-7e12e565bb83","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","tests[\"Response time is less than 500ms\"] = responseTime < 500;","","try {","   var resp_data = JSON.parse(responseBody),","       token = resp_data.token;","       postman.setEnvironmentVariable(\"token\", token);","} catch(e) {","   console.log(e);","   console.log(resp_data);","   ","}"],"type":"text/javascript"}}],"id":"57518b5d-f268-431f-bf81-a6f626144276","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"username\": \"{{username}}\",\n  \"password\": \"{{password}}\"\n}"},"url":"{{http_schema}}://{{host}}/v1/users/obtain-token","description":"<p>Сервис работает только с аутентифицированным пользователем.</p>\n<p>Аутентификация работает через заголовок</p>\n<p>\"Authorization: Token {{token}}\",</p>\n<p>где {{token}} - токен, полученный от системы</p>\n<p>Запрос - POST-запрос с инфой:</p>\n<ul>\n<li>\"username\" -- логин пользователя</li>\n<li>\"password\" -- пароль</li>\n</ul>\n<p>В ответе получаем \"token\"</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["v1","users","obtain-token"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"aabdb8f4-b8a3-4d8f-a5c3-fbe89872bc8c","name":"Obtain Token","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"username\": \"{{username}}\",\n  \"password\": \"{{password}}\"\n}"},"url":"{{http_schema}}://{{host}}/v1/users/obtain-token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Language","value":"ru","name":"Content-Language","description":"The language the content is in"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 23 Jul 2018 11:37:55 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx/1.10.2","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Accept, Accept-Language, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Jul 26 2018 11:49:51 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"eosago-aggregator.2018-1.test.b2bpolis.ru","path":"/","secure":false,"value":"wg18fhkhk5fsbqcqy9btkvc191073cie","key":"sessionid"}],"responseTime":null,"body":"{\"token\": \"832nc4823nc984723xm43248nc\"}"}],"_postman_id":"57518b5d-f268-431f-bf81-a6f626144276"},{"name":"Текущий пользователь","event":[{"listen":"test","script":{"id":"337f2b19-aa9f-4401-b881-a9940e94f563","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","tests[\"Response time is less than 500ms\"] = responseTime < 500;","","try {","   var resp_data = JSON.parse(responseBody),","       my_department_id = resp_data.department.id;","   postman.setEnvironmentVariable(\"my_department_id\", my_department_id);","} catch(e) {","   console.log(e);","   console.log(resp_data);","   ","}"],"type":"text/javascript"}}],"id":"714ab7c1-adc4-4425-82f9-12e5ea298bbc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Token {{token}}"}],"url":"{{http_schema}}://{{host}}/v1/users/current_user","urlObject":{"protocol":"{{http_schema}}","path":["v1","users","current_user"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b60c82a4-0911-4292-a51e-519b06b6dddc","name":"Текущий пользователь","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Token {{token}}"}],"url":"{{http_schema}}://{{host}}/v1/users/current_user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 29 Oct 2018 14:44:17 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2307"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"1660dd0c-574b-4057-8457-2e9acde874f8\",\n    \"username\": \"test@test.ru\",\n    \"department\": {\n        \"id\": \"e8962ff0-febf-4f09-8135-eb3c6d21ee13\",\n        \"title\": \"PARTNER\",\n        \"parent\": null,\n        \"users\": [\n            {\n                \"id\": \"a8685381-c951-4366-b8e9-e58dd0430add\",\n                \"username\": \"helpkbm@bk.ru\",\n                \"department\": \"e8962ff0-febf-4f09-8135-eb3c6d21ee13\",\n                \"first_name\": \"Вася\",\n                \"last_name\": \"Коля\",\n                \"patronymic\": \"\",\n                \"groups\": [\n                    {\n                        \"name\": \"Администратор партнерстора\",\n                        \"code\": \"PARTNER_STORE_ADMIN\"\n                    },\n                    {\n                        \"name\": \"Администратор подразделения\",\n                        \"code\": \"DEPARTMENT_ADMIN\"\n                    }\n                ],\n                \"is_active\": true\n            },\n            {\n                \"id\": \"df1269a0-fcc9-450c-9410-e1010cd90fbe\",\n                \"username\": \"vas@ya.ru\",\n                \"department\": \"e8962ff0-febf-4f09-8135-eb3c6d21ee13\",\n                \"first_name\": \"Коля\",\n                \"last_name\": \"Вася\",\n                \"patronymic\": \"Петя\",\n                \"groups\": [],\n                \"is_active\": true\n            }\n        ]\n    },\n    \"first_name\": \"Тест\",\n    \"last_name\": \"Тест\",\n    \"patronymic\": \"Тест\",\n    \"permissions\": []\n}"}],"_postman_id":"714ab7c1-adc4-4425-82f9-12e5ea298bbc"}],"id":"dfc1fc38-47dd-4ba8-9db3-463ec574835c","event":[{"listen":"prerequest","script":{"id":"bf9195ed-db15-4e9e-9823-c124f4f5060b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9c87f391-60c5-430d-a1f8-50d3bf7360d6","type":"text/javascript","exec":[""]}}],"_postman_id":"dfc1fc38-47dd-4ba8-9db3-463ec574835c","description":""},{"name":"Общие настройки","item":[{"name":"Получение общих настроек приложения","id":"af3426c7-b5a6-4437-931a-0d7ddfc53100","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{token}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{http_schema}}://{{host}}/v1/general_preferences/","description":"<p>Можно получить изображение логотипа, favicon, футер для сайта и т.д.</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["v1","general_preferences",""],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"af3426c7-b5a6-4437-931a-0d7ddfc53100"}],"id":"32424204-09ea-4844-b067-a1d1554b5225","_postman_id":"32424204-09ea-4844-b067-a1d1554b5225","description":""},{"name":"Водители и Собственник (если мультидрайв)","item":[{"name":"Водитель","event":[{"listen":"test","script":{"id":"0cd7b501-7c29-4f45-b967-c8a63e93e57b","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Response time is less than 2000ms\"] = responseTime < 2000;","","try {","   var resp_data = JSON.parse(responseBody),","       driver_id = resp_data.id;","       postman.setEnvironmentVariable(\"driver_id\", driver_id);","} catch(e) {","   console.log(e);","   console.log(resp_data);","   ","}"],"type":"text/javascript"}}],"id":"88bbe71a-3829-4a79-bb89-e4a14159d796","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n   \"first_name\": \"Дмитрий\",\n   \"last_name\": \"Тарасов\",\n   \"patronymic\": \"Сергеевич\",\n   \"birth_date\": \"1987-01-13\",\n   \"gender\":\"M\",\n   \"driving_experience_started\": \"2006-08-08\",\n   \"driver_licenses\": [{\n   \t\t\"credential_type\": \"DRIVER_LICENSE\",\n\t\t\"number\": \"013837\",\n\t\t\"series\": \"47СТ\",\n\t\t\"issue_date\": \"2006-08-08\"\n\t}]\n}"},"url":"{{http_schema}}://{{host}}/{{api_version}}/insured_objects/drivers","description":"<p>В ответе находятся параметры по КБМ:\n\"kbm_value\" -- коэф. КБМ\n\"is_rsa_checked\" -- true/false (ответ из РСА о наличии водителя в базе РСА)</p>\n<p>На каждого водителя требуется отдельный запрос.\nПараметр \"gender\" не обязательный. Принимаемые значения \"M\" - мужской, \"F\" - женский</p>\n<p>Типы водительского удостоверения (credential_type):\nDRIVER_LICENSE - водительслькое удостоверение РФ\nFOREIGN_DRIVER_LICENSE - иностранное водительское удостоверение</p>\n<p>Из ответа берём \"id\" -- потребуется при создании сущности \"объект страхования\".</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","insured_objects","drivers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"81bf8851-a634-45b6-8f17-8047ea5ee6d5","name":"Водитель","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n   \"first_name\": \"Дмитрий\",\n   \"last_name\": \"Тарасов\",\n   \"patronymic\": \"Сергеевич\",\n   \"birth_date\": \"1987-01-13\",\n   \"gender\":\"M\",\n   \"driving_experience_started\": \"2006-08-08\",\n   \"driver_licenses\": [{\n   \t\t\"credential_type\": \"DRIVER_LICENSE\",\n\t\t\"number\": \"013837\",\n\t\t\"series\": \"47СТ\",\n\t\t\"issue_date\": \"2006-08-08\"\n\t}]\n}"},"url":"{{http_schema}}://{{host}}/{{api_version}}/insured_objects/drivers"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 29 Oct 2018 14:59:25 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"420"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"aba35d4d-91ed-49fd-a56d-970bcbd6777b\",\n    \"fact_address\": null,\n    \"legal_address\": null,\n    \"contact\": [],\n    \"driver_licenses\": [\n        {\n            \"number\": \"013837\",\n            \"series\": \"47СТ\",\n            \"issue_date\": \"2006-08-08\",\n            \"credential_type\": \"DRIVER_LICENSE\"\n        }\n    ],\n    \"first_name\": \"Дмитрий\",\n    \"last_name\": \"Тарасов\",\n    \"patronymic\": \"Сергеевич\",\n    \"gender\":\"MALE\",\n    \"birth_date\": \"1987-01-13\",\n    \"driving_experience_started\": \"2006-08-08\",\n    \"is_rsa_checked\": true,\n    \"kbm_value\": \"0.70\"\n}"}],"_postman_id":"88bbe71a-3829-4a79-bb89-e4a14159d796"},{"name":"Водитель","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Response time is less than 2000ms\"] = responseTime < 2000;","","try {","   var resp_data = JSON.parse(responseBody),","       driver_id = resp_data.id;","       postman.setEnvironmentVariable(\"driver_id\", driver_id);","} catch(e) {","   console.log(e);","   console.log(resp_data);","   ","}"]}}],"id":"ac127a0e-d4c5-4afc-a8bb-50cb4c2e4daf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Token {{token}}"}],"url":"{{http_schema}}://{{host}}/{{api_version}}/insured_objects/drivers/{{driver_id}}","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","insured_objects","drivers","{{driver_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"ae17e48c-19a8-4f9f-ba9c-56b764f2575e","name":"Водитель","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Token {{token}}"}],"url":"{{http_schema}}://{{host}}/{{api_version}}/insured_objects/drivers/{{driver_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Tue, 17 Sep 2019 10:21:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Vary","value":"Cookie"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"81a3d7c4-211e-4363-86c4-4547fd55703b\",\n    \"fact_address\": null,\n    \"legal_address\": null,\n    \"contact\": [],\n    \"driver_licenses\": [\n        {\n            \"number\": \"013837\",\n            \"series\": \"47СТ\",\n            \"issue_date\": \"2006-08-08\",\n            \"credential_type\": \"DRIVER_LICENSE\"\n        }\n    ],\n    \"first_name\": \"Дмитрий\",\n    \"last_name\": \"Тарасов\",\n    \"patronymic\": \"Сергеевич\",\n    \"birth_date\": \"1987-01-13\",\n    \"gender\": \"M\",\n    \"driving_experience_started\": \"2006-08-08\",\n    \"is_rsa_checked\": true,\n    \"kbm_value\": \"0.65\",\n    \"previous_policy_serial\": \"ХХХ\",\n    \"previous_policy_number\": \"0000000000\"\n}"}],"_postman_id":"ac127a0e-d4c5-4afc-a8bb-50cb4c2e4daf"},{"name":"Собственник. ЮЛ","event":[{"listen":"test","script":{"id":"08665595-abe3-4d17-b90d-bb932cb36d08","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","","","try {","   var resp_data = JSON.parse(responseBody),","       owner_id = resp_data.person;","       postman.setEnvironmentVariable(\"owner_id\", owner_id);","} catch(e) {","   console.log(e);","   console.log(resp_data);","}"],"type":"text/javascript"}}],"id":"8d757100-823e-4d73-b6e4-2c37652a5efe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n\t\"title\": \"Рога\",\n\t\"inn\": \"12378423\",\n\t\"ogrn\": \"1293876128973\",\n\t\"credential\": [{\n\t\t\"number\": \"206141\",\n\t\t\"series\": \"65\"\n\t}],\n\t\"address\": [{\n\t\t\"address_query\": \"г Санкт-Петербург, г Ломоносов, ул Швейцарская, д 8 к 22\",\n\t\t\"address_type\": \"LEGAL_ADDRESS\",\n\t\t\"region_kladr_id\": \"7800000000000\",\n\t\t\"city_kladr_id\": \"7800000600000\"\n\t},\n\t{\n\t\t\"address_query\": \"г Санкт-Петербург, г Ломоносов, ул Швейцарская, д 8 к 22\",\n\t\t\"address_type\": \"ACTUAL_ADDRESS\",\n\t\t\"region_kladr_id\": \"7800000000000\",\n\t\t\"city_kladr_id\": \"7800000600000\"\n\t}]\n}"},"url":"{{http_schema}}://{{host}}/{{api_version}}/insured_objects/owners/legal_persons","description":"<p>! НА ДАННЫЙ МОМЕНТ РАБОТА С ЮРИДИЧЕСКИМ ЛИЦОМ НЕДОСТУПНА !</p>\n<p>Создание собственника ЮЛ требует следующих полей:</p>\n<ul>\n<li>\"title\" -- Фамилия</li>\n<li>\"inn\" -- Имя</li>\n<li>\"ogrn\" -- Отчётство</li>\n<li>\"credential\" -- массив документов</li>\n<li>\"address\" -- массив адресов. Два типа адресов - фактический и юридический. Различаются по параметру \"address_type\": \"ACTUAL_ADDRESS\" и \"LEGAL_ADDRESS\" соответственно</li>\n</ul>\n","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","insured_objects","owners","legal_persons"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b6bc9ef0-9e8c-46ba-9637-83c2bf38f4c4","name":"Собственник ЮЛ","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false},{"key":"Accept","value":"application/json, text/plain, */*","disabled":false},{"key":"Authorization","value":"Token {{token}}","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"check_owner\": true,\n  \"last_name\": \"Тарасов\",\n  \"first_name\": \"Дмитрий\",\n  \"patronymic\": \"Сергеевич\",\n  \"gender\": \"M\",\n  \"birth_date\": \"1987-01-13\",\n  \"credential\": [\n    {\n      \"credential_type\": 1,\n      \"issue_date\": \"2017-03-08\",\n      \"issue_point\": \"УФМС\",\n      \"number\": \"123123\",\n      \"series\": \"1111\"\n    }\n  ],\n  \"address\": [\n    {\n      \"address_query\": \"г Санкт-Петербург, г Ломоносов, ул Швейцарская, д 8 к 2\",\n      \"address_type\": 1,\n      \"region\": \"Санкт-Петербург\",\n      \"region_with_type\": \"г Санкт-Петербург\",\n      \"region_kladr_id\": \"7800000000000\",\n      \"postal_code\": \"198412\",\n      \"area_with_type\": null,\n      \"area_kladr_id\": null,\n      \"city_with_type\": \"г Ломоносов\",\n      \"city_kladr_id\": \"7800000600000\",\n      \"city_district_with_type\": \"Петродворцовый р-н\",\n      \"city_district_kladr_id\": null,\n      \"settlement_with_type\": null,\n      \"settlement_kladr_id\": null,\n      \"street_with_type\": \"ул Швейцарская\",\n      \"street_kladr_id\": \"78000006000011700\",\n      \"house\": \"8\",\n      \"house_kladr_id\": \"7800000600001170028\",\n      \"block\": \"2\",\n      \"flat\": null\n    }\n  ]\n}"},"url":"{{http_schema}}://{{host}}/{{api_version}}/insured_objects/owners/legal_persons"},"status":"CREATED","code":201,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Language","value":"ru","name":"Content-Language","description":"The language the content is in"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 25 Jul 2018 07:32:25 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx/1.10.2","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Accept, Accept-Language, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Tue Aug 07 2018 13:01:15 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"eosago-aggregator.2018-1.test.b2bpolis.ru","path":"/","secure":false,"value":"wg18fhkhk5fsbqcqy9btkvc191073cie","key":"sessionid"}],"responseTime":null,"body":"{\n    \"id\": 3814\n}"}],"_postman_id":"8d757100-823e-4d73-b6e4-2c37652a5efe"},{"name":"Собственник. ФЛ","event":[{"listen":"test","script":{"id":"35697ca4-8099-4aff-a68c-01211f28469e","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","","","try {","   var resp_data = JSON.parse(responseBody),","       owner_id = resp_data.person;","       postman.setEnvironmentVariable(\"owner_id\", owner_id);","} catch(e) {","   console.log(e);","   console.log(resp_data);","}"],"type":"text/javascript"}}],"id":"ed2f158a-4053-418f-9ccc-0a35661386ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n\t\"last_name\": \"Тарасов\",\n\t\"first_name\": \"Дмитрий\",\n\t\"patronymic\": \"Сергеевич\",\n\t\"birth_date\": \"1987-01-13\",\n\t\"gender\": \"M\",\n\t\"credential\": [{\n\t  \t\"credential_type\": \"RUSSIAN_INTERNAL_PASSPORT\",\n\t\t\"issue_date\": \"2017-03-08\",\n\t\t\"issue_point\": \"УФМС\",\n\t\t\"issue_point_code\": \"123-456\",\n\t\t\"number\": \"123123\",\n\t\t\"series\": \"1111\"\n\t}],\n\t\"address\": [{\n\t\t\"address_query\": \"г Санкт-Петербург, г Ломоносов, ул Швейцарская, д 8 к 2\",\n\t\t\"address_type\": \"LEGAL_ADDRESS\"\n\t},\n\t{\n\t\t\"address_query\": \"г Санкт-Петербург, г Ломоносов, ул Швейцарская, д 8 к 1\",\n\t\t\"address_type\": \"ACTUAL_ADDRESS\"\n\t}]\n}"},"url":"{{http_schema}}://{{host}}/v1/insured_objects/owners/natural_persons","description":"<p>Создание собственника ФЛ требует следующих полей:</p>\n<ul>\n<li>\"last_name\" -- фамилия</li>\n<li>\"first_name\" -- имя</li>\n<li>\"patronymic\" -- отчетство</li>\n<li>\"gender\" -- Пол (M - мужской, F - женский)</li>\n<li>\"birth_date\" -- дата рождения в формате \"1987-01-13\"</li>\n<li>\"credential\" -- документы. Массив. Первым элементом необходимо добавить российский паспорт \"RUSSIAN_INTERNAL_PASSPORT\"</li>\n<li>\"address\" -- адреса. Массив. Два типа адресов - фактический и по прописке. Различаются по параметру \"address_type\": \"ACTUAL_ADDRESS\" и \"LEGAL_ADDRESS\" соответственно. Если адреса совпадают, можно отправить только \"LEGAL_ADDRESS\"</li>\n</ul>\n<p>Указание LEGAL_ADDRESS необходимо для получения расчетов страховых компаний.</p>\n<p>Для создания страхового объекта брать ID из поля Person.</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["v1","insured_objects","owners","natural_persons"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"71540fb5-f7a3-40ce-9485-b6c3d65096e0","name":"Собственник. ФЛ","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n\t\"last_name\": \"Тарасов\",\n\t\"first_name\": \"Дмитрий\",\n\t\"patronymic\": \"Сергеевич\",\n\t\"birth_date\": \"1987-01-13\",\n\t\"gender\": \"M\",\n\t\"credential\": [{\n\t  \t\"credential_type\": \"RUSSIAN_INTERNAL_PASSPORT\",\n\t\t\"issue_date\": \"2017-03-08\",\n\t\t\"issue_point\": \"УФМС\",\n\t\t\"issue_point_code\": \"123-456\",\n\t\t\"number\": \"123123\",\n\t\t\"series\": \"1111\"\n\t}],\n\t\"address\": [{\n\t\t\"address_query\": \"г Санкт-Петербург, г Ломоносов, ул Швейцарская, д 8 к 2\",\n\t\t\"address_type\": \"LEGAL_ADDRESS\"\n\t},\n\t{\n\t\t\"address_query\": \"г Санкт-Петербург, г Ломоносов, ул Швейцарская, д 8 к 1\",\n\t\t\"address_type\": \"ACTUAL_ADDRESS\"\n\t}]\n}"},"url":"{{http_schema}}://{{host}}/{{api_version}}/insured_objects/owners/natural_persons"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 29 Oct 2018 15:12:47 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1662"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"e5f4746e-c783-459d-af85-c041c14be39c\",\n    \"credential\": [\n        {\n            \"issue_date\": \"2017-03-08\",\n            \"issue_point\": \"УФМС\",\n            \"issue_point_code\": \"123-456\",\n            \"credential_type\": \"RUSSIAN_INTERNAL_PASSPORT\",\n            \"number\": \"123123\",\n            \"series\": \"1111\"\n        }\n    ],\n    \"address\": [\n        {\n            \"address_type\": \"ACTUAL_ADDRESS\",\n            \"address_query\": \"г Санкт-Петербург, г Ломоносов, ул Швейцарская, д 8 к 2\",\n            \"region_kladr_id\": \"7800000000000\",\n            \"city_kladr_id\": \"7800000600000\",\n            \"settlement_kladr_id\": null,\n            \"street_kladr_id\": null,\n            \"house_kladr_id\": null\n        },\n        {\n            \"address_type\": \"LEGAL_ADDRESS\",\n            \"address_query\": \"г Санкт-Петербург, г Ломоносов, ул Швейцарская, д 8 к 2\",\n            \"region_kladr_id\": \"7800000000000\",\n            \"city_kladr_id\": \"7800000600000\",\n            \"settlement_kladr_id\": null,\n            \"street_kladr_id\": null,\n            \"house_kladr_id\": null\n        }\n    ],\n    \"person\": \"246d9e09-c610-4895-bc82-31767046f850\",\n    \"fact_address\": {\n        \"address_type\": \"ACTUAL_ADDRESS\",\n        \"address_query\": \"г Санкт-Петербург, г Ломоносов, ул Швейцарская, д 8 к 2, кв 42\",\n        \"region_kladr_id\": \"7800000000000\",\n        \"city_kladr_id\": \"7800000600000\",\n        \"settlement_kladr_id\": null,\n        \"street_kladr_id\": null,\n        \"house_kladr_id\": null\n    },\n    \"legal_address\": {\n        \"address_type\": \"LEGAL_ADDRESS\",\n        \"address_query\": \"г Санкт-Петербург, г Ломоносов, ул Швейцарская, д 8 к 2\",\n        \"region_kladr_id\": \"7800000000000\",\n        \"city_kladr_id\": \"7800000600000\",\n        \"settlement_kladr_id\": null,\n        \"street_kladr_id\": null,\n        \"house_kladr_id\": null\n    },\n    \"contact\": [],\n    \"first_name\": \"Дмитрий\",\n    \"last_name\": \"Тарасов\",\n    \"patronymic\": \"Сергеевич\",\n    \"birth_date\": \"1987-01-13\",\n    \"is_rsa_checked\": true,\n    \"kbm_value\": null\n}"}],"_postman_id":"ed2f158a-4053-418f-9ccc-0a35661386ba"}],"id":"9a9bbd77-0642-4233-bd04-1643686d0206","_postman_id":"9a9bbd77-0642-4233-bd04-1643686d0206","description":""},{"name":"Предрасчёт","item":[{"name":"Расчёт/ Водители ids","event":[{"listen":"test","script":{"id":"a26a8ff1-56c8-4f1e-8905-74d9afa3369c","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Response time is less than 500ms\"] = responseTime < 500;","","try {","    var resp_data = JSON.parse(responseBody),","        agreement = resp_data.id;","    postman.setEnvironmentVariable(\"agreement_id\", agreement);","} catch(e) {","   console.log(e);","   console.log(resp_data);","}"],"type":"text/javascript"}}],"id":"3dcee58b-3640-454c-9083-7e0cf96f15fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n\t\"valid_from\": \"2019-06-30\",\n\t\"valid_to\": \"2020-06-29\",\n\t\"engine_power\": 95,\n\t\"is_car_without_registration\": false,\n\t\"car_type\": \"B\",\n\t\"target_of_using\": 11,\n\t\"has_car_trailer\": false,\n\t\"insurance_period\": 8,\n\t\"owner_registration\": {\n\t\t\"address_query\": \"г Санкт-Петербург\",\n\t\t\"region_kladr_id\": \"7800000000000\"\n\n\t},\n\t\"periods\": [\n        {\n            \"start_date\": \"2019-06-30\",\n            \"end_date\": \"2019-09-29\"\n        }\n    ],\n\t\"drivers_ids\":[\"{{driver_id}}\"]\n}"},"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/calculations","description":"<p>Параметры:</p>\n<ul>\n<li>valid_from -- начало действия полиса. В системе срок страхования = 1 год, поэтому разница между датой valid from и valid to должна составлять 1 год. Например, если valid from \"2019-06-30\", дата valid to должна быть \"2020-06-29\" </li>\n<li>valid_to -- окончание действия полиса</li>\n<li>insurance_period -- id периода (длительность периода страховки)</li>\n<li>target_of_using -- цель использования</li>\n<li>drivers_ids -- массив водителей</li>\n<li>is_car_without_registration -- ТС без регистрации (влияет только на расчёт. Для передачи авто без номера см. запрос insured_objects/cars)</li>\n<li>engine_power -- мощность ТС</li>\n<li>has_car_trailer -- ТС с прицепом (влияет только на расчёт) При создании автомобиля нужно так же передать признак прицепа</li>\n<li>max_mass -- максимальная масса ТС</li>\n<li>seats_count -- количество мест</li>\n<li>car_type -- тип ТС</li>\n<li>owner_registration -- список кладров, характеризующих адрес регистрации собственника. Формируется аналогично адресу у Собственника.</li>\n</ul>\n<p>Если был выбран период страхования \"1 год\", то передается пустой массив periods. А если был выбран другой период, то в массиве periods передаются параметры:</p>\n<ul>\n<li>start_date -- начало периода</li>\n<li>end_date -- окончание периода</li>\n</ul>\n<p>Период не может выходить за даты начала и окончания договора. Возможные периоды: 3-9 месяцев, 1 год.</p>\n<p>В ответе получаем:</p>\n<ul>\n<li>id -- идентификатор договора. Этот id понадобится для дальнейших запросов.</li>\n<li>calculation -- информация о расчёте</li>\n<li>calculation.premium -- справочная страховая премия (расчёт по минимальной базовой ставке)</li>\n</ul>\n","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","agreements","calculations"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"85d674ae-c2db-47db-bc08-c157f12b20a5","name":"Расчёт/ Водители ids","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n\t\"valid_from\": \"2019-06-30\",\n\t\"valid_to\": \"2020-06-29\",\n\t\"engine_power\": 95,\n\t\"is_car_without_registration\": false,\n\t\"car_type\": \"B\",\n\t\"target_of_using\": 11,\n\t\"has_car_trailer\": false,\n\t\"insurance_period\": 8,\n\t\"owner_registration\": {\n\t\t\"address_query\": \"г Санкт-Петербург\",\n\t\t\"region_kladr_id\": \"7800000000000\"\n\n\t},\n\t\"periods\": [\n        {\n            \"start_date\": \"2019-06-30\",\n            \"end_date\": \"2019-09-29\"\n        }\n    ],\n\t\"drivers_ids\":[\"{{driver_id}}\"]\n}"},"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/calculations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 17 Jun 2019 12:10:10 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Vary","value":"Cookie"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"80a24deb-466e-45ce-80d7-23c125f2c5dc\",\n    \"valid_from\": \"2019-06-30T00:00:00+03:00\",\n    \"valid_to\": \"2020-06-29T23:59:59.999999+03:00\",\n    \"periods\": [\n        {\n            \"start_date\": \"2019-06-30\",\n            \"end_date\": \"2019-09-29\"\n        }\n    ],\n    \"calculation\": {\n        \"premium\": 75150.03,\n        \"data\": {\n            \"valid_from\": \"2019-06-30\",\n            \"valid_to\": \"2020-06-29\",\n            \"engine_power\": 95,\n            \"is_car_without_registration\": false,\n            \"car_type\": \"B\",\n            \"target_of_using\": \"PERSONAL\",\n            \"has_car_trailer\": false,\n            \"insurance_period\": 8,\n            \"owner_registration\": {\n                \"code_kladr\": \"7800000000000\",\n                \"okato\": \"40000000000\",\n                \"kt1\": 1.8,\n                \"kt2\": 1\n            },\n            \"periods\": [\n                {\n                    \"start_date\": \"2019-06-30\",\n                    \"end_date\": \"2019-09-29\"\n                }\n            ],\n            \"drivers_ids\": [\n                \"92591516-7135-45e3-ac45-5f2d20e25cc4\"\n            ],\n            \"drivers\": [\n                {\n                    \"birth_date\": \"1987-01-13\",\n                    \"driving_experience_started\": \"2006-08-08\",\n                    \"credential\": [\n                        {\n                            \"number\": \"013837\",\n                            \"series\": \"47СТ\",\n                            \"issue_date\": \"2006-08-08\",\n                            \"credential_type\": \"DRIVER_LICENSE\"\n                        }\n                    ],\n                    \"first_name\": \"Дмитрий\",\n                    \"last_name\": \"Тарасов\",\n                    \"patronymic\": \"Сергеевич\"\n                }\n            ],\n            \"max_mass\": 0,\n            \"seats_count\": 0,\n            \"is_multidrive\": false,\n            \"insurance_period_kerm\": \"1.00\",\n            \"insurance_period_month\": 12,\n            \"insurant_type\": \"NATURAL_PERSON\",\n            \"kbm\": 1\n        },\n        \"coeffs\": {\n            \"Tbase_min\": 2746,\n            \"Tbase_max\": 4942,\n            \"Ktrailer\": 1,\n            \"Kregion\": 1.8,\n            \"Kengine\": 1.1,\n            \"Kexpage\": 0.96,\n            \"Klim\": 1,\n            \"Kterm\": 8,\n            \"Kbm\": 1,\n            \"kbm_class\": \"3\",\n            \"S_min\": 41756.77\n        }\n    },\n    \"status\": \"DRAFT\",\n    \"insured_object\": null\n}"}],"_postman_id":"3dcee58b-3640-454c-9083-7e0cf96f15fd"},{"name":"Расчёт. Мультидрайв. Собственник ЮЛ id","event":[{"listen":"test","script":{"id":"9112f06e-4803-4321-9e4d-18be6f6af323","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Response time is less than 500ms\"] = responseTime < 500;","","try {","    var resp_data = JSON.parse(responseBody),","        calculation_id = resp_data.id,","        ins_program = resp_data.available_insurance_departments[0].id;","    postman.setEnvironmentVariable(\"calculation_id\", calculation_id);","    postman.setEnvironmentVariable(\"ins_program\", ins_program);","} catch(e) {","   console.log(e);","   console.log(resp_data);","}"],"type":"text/javascript"}}],"id":"d724e2c9-9e59-48ab-b5d4-345b1fb0f746","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n\t\"valid_from\": \"2019-06-30\",\n\t\"valid_to\": \"2020-06-29\",\n\t\"engine_power\": 120,\n\t\"is_car_without_registration\": true,\n\t\"car_type\": \"B\",\n\t\"target_of_using\": 11,\n\t\"has_car_trailer\": false,\n\t\"insurance_period\": 8,\n\t\"car_vin_number\": \"TMBED45J2B3209311\",\n\t\"owner_id\": \"{{owner_id}}\",\n\t\"periods\": [\n        {\n            \"start_date\": \"2019-06-30\",\n            \"end_date\": \"2019-09-29\"\n        }\n    ]\n}"},"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/calculations","description":"<p>Параметры:</p>\n<ul>\n<li>valid_from -- начало действия полиса. В системе срок страхования = 1 год, поэтому разница между датой valid from и valid to должна составлять 1 год. Например, если valid from \"2019-06-30\", дата valid to должна быть \"2020-06-29\" </li>\n<li>valid_to -- окончение действия полиса</li>\n<li>insurance_period -- id периода (длительность периода страховки)</li>\n<li>target_of_using -- цель использования</li>\n<li>owner_id -- id собственника</li>\n<li>is_car_without_registration -- ТС без регистрации</li>\n<li>engine_power -- мощность ТС</li>\n<li>has_car_trailer -- ТС с прицепом</li>\n<li>max_mass -- максимальная масса ТС</li>\n<li>seats_count -- количество мест</li>\n<li>car_type -- тип ТС</li>\n<li>owner_registration -- список кладров, характеризующих адрес регистрации собственника. Формируется аналогично адресу у Собственника.</li>\n</ul>\n<p>Если был выбран период страхования \"1 год\", то передается пустой массив periods. А если был выбран другой период, то в массиве periods передаются параметры:</p>\n<ul>\n<li>start_date -- начало периода</li>\n<li>end_date -- окончание периода</li>\n</ul>\n<p>Период не может выходить за даты начала и окончания договора. Возможные периоды: 3-9 месяцев, 1 год.</p>\n<p>В ответе получаем:</p>\n<ul>\n<li>id -- идентификатор договора. Этот id понадобится для дальнейших запросов.</li>\n<li>calculation -- информация о расчёте</li>\n<li>calculation.premium -- страховая премия</li>\n</ul>\n","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","agreements","calculations"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"0d9a9740-ec7f-4cd2-b9f8-9aa6884c0a58","name":"Расчёт. Мультидрайв. Собственник ЮЛ id","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n\t\"valid_from\": \"2019-06-30\",\n\t\"valid_to\": \"2020-06-29\",\n\t\"engine_power\": 120,\n\t\"is_car_without_registration\": true,\n\t\"car_type\": \"B\",\n\t\"target_of_using\": 11,\n\t\"has_car_trailer\": false,\n\t\"insurance_period\": 8,\n\t\"car_vin_number\": \"TMBED45J2B3209311\",\n\t\"owner_id\": \"{{owner_id}}\",\n\t\"periods\": [\n        {\n            \"start_date\": \"2019-06-30\",\n            \"end_date\": \"2019-09-29\"\n        }\n    ]\n}"},"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/calculations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 17 Jun 2019 12:13:00 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Vary","value":"Cookie"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"f05b32c4-9f69-4e4e-bb47-d1d1b7f71900\",\n    \"valid_from\": \"2019-06-30T00:00:00+03:00\",\n    \"valid_to\": \"2020-06-29T23:59:59.999999+03:00\",\n    \"periods\": [\n        {\n            \"start_date\": \"2019-06-30\",\n            \"end_date\": \"2019-09-29\"\n        }\n    ],\n    \"calculation\": {\n        \"premium\": 2217.97,\n        \"data\": {\n            \"valid_from\": \"2019-06-30\",\n            \"valid_to\": \"2020-06-29\",\n            \"engine_power\": 120,\n            \"is_car_without_registration\": true,\n            \"car_type\": \"B\",\n            \"target_of_using\": \"PERSONAL\",\n            \"has_car_trailer\": false,\n            \"insurance_period\": 8,\n            \"car_vin_number\": \"TMBED45J2B3209311\",\n            \"owner_id\": \"252e6686-7966-4ec1-bff6-0e68225d6c68\",\n            \"periods\": [\n                {\n                    \"start_date\": \"2019-06-30\",\n                    \"end_date\": \"2019-09-29\"\n                }\n            ],\n            \"owner_registration\": {\n                \"code_kladr\": \"7800000600000\",\n                \"okato\": \"40290502000\",\n                \"kt1\": 1.8,\n                \"kt2\": 1\n            },\n            \"owner_data\": {\n                \"birth_date\": \"1987-01-13\",\n                \"credential\": [\n                    {\n                        \"issue_date\": \"2017-03-08\",\n                        \"issue_point\": \"УФМС\",\n                        \"issue_point_code\": \"123-456\",\n                        \"number\": \"123123\",\n                        \"series\": \"1111\",\n                        \"credential_type\": \"RUSSIAN_INTERNAL_PASSPORT\"\n                    }\n                ],\n                \"first_name\": \"Дмитрий\",\n                \"last_name\": \"Тарасов\",\n                \"patronymic\": \"Сергеевич\"\n            },\n            \"max_mass\": 0,\n            \"seats_count\": 0,\n            \"is_multidrive\": true,\n            \"insurance_period_kerm\": \"1.00\",\n            \"insurance_period_month\": 12,\n            \"insurant_type\": \"NATURAL_PERSON\",\n            \"kbm\": 1\n        },\n        \"coeffs\": {\n            \"Tbase_min\": 2746,\n            \"Tbase_max\": 4942,\n            \"Ktrailer\": 1,\n            \"Kregion\": 1.8,\n            \"Kengine\": 1.2,\n            \"Kexpage\": 1,\n            \"Klim\": 1.87,\n            \"Kterm\": 0.2,\n            \"Kbm\": 1,\n            \"kbm_class\": \"3\",\n            \"S_min\": 1232.4\n        }\n    },\n    \"status\": \"DRAFT\",\n    \"insured_object\": null\n}"}],"_postman_id":"d724e2c9-9e59-48ab-b5d4-345b1fb0f746"}],"id":"402abed1-6b6a-4560-b6b2-ce5a04da23bb","_postman_id":"402abed1-6b6a-4560-b6b2-ce5a04da23bb","description":""},{"name":"Сбор полных данных","item":[{"name":"Страхователь","event":[{"listen":"test","script":{"id":"995b7d1a-2038-45ff-8cf5-e62c639b12de","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Response time is less than 500ms\"] = responseTime < 500;","","try {","   var resp_data = JSON.parse(responseBody),","       insurant_id = resp_data.person;","       postman.setEnvironmentVariable(\"insurant_id\", insurant_id);","} catch(e) {","   console.log(e);","   console.log(resp_data);","   ","}"],"type":"text/javascript"}}],"id":"b012f40d-1161-4b2d-9820-dad6b2f68f89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n\t\"last_name\": \"Тарасов\",\n\t\"first_name\": \"Дмитрий\",\n\t\"patronymic\": \"Сергеевич\",\n\t\"birth_date\": \"1987-01-13\",\n\t\"credential\": [{\n\t  \t\"credential_type\": \"RUSSIAN_INTERNAL_PASSPORT\",\n\t\t\"issue_date\": \"2017-03-08\",\n\t\t\"issue_point\": \"УФМС\",\n\t\t\"issue_point_code\": \"123-456\",\n\t\t\"number\": \"123123\",\n\t\t\"series\": \"1111\"\n\t}],\n\t\"address\": [{\n\t\t\"address_query\": \"г Санкт-Петербург, г Ломоносов, ул Швейцарская, д 8 к 2\",\n\t\t\"address_type\": \"LEGAL_ADDRESS\"\n\t},\n\t{\n\t\t\"address_query\": \"г Санкт-Петербург, г Ломоносов, ул Швейцарская, д 8 к 1\",\n\t\t\"address_type\": \"ACTUAL_ADDRESS\"\n\t}]\n}"},"url":"{{http_schema}}://{{host}}/{{api_version}}/insured_objects/insurants/natural_persons","description":"<p>Аналогично полному обновлению Собственника (физлицо).</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","insured_objects","insurants","natural_persons"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b012f40d-1161-4b2d-9820-dad6b2f68f89"},{"name":"Страхователь с контактными данными","id":"e25d2656-a513-4c80-80aa-860c728de50e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token {{token}}"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","type":"text","value":"application/json, text/plain, */*"}],"body":{"mode":"raw","raw":"{\n    \"address\": [\n        {\n            \"address_query\": \"г Санкт-Петербург, г Ломоносов, ул Швейцарская, д 8 к 2\",\n            \"address_type\": \"LEGAL_ADDRESS\"\n        },\n        {\n            \"address_query\": \"г Санкт-Петербург, г Ломоносов, ул Швейцарская, д 8 к 1\",\n            \"address_type\": \"ACTUAL_ADDRESS\"\n        }\n    ],\n    \"credential\": [\n        {\n            \"credential_type\": \"RUSSIAN_INTERNAL_PASSPORT\",\n            \"issue_date\": \"2007-03-08\",\n            \"issue_point\": \"УФМС\",\n            \"issue_point_code\": \"111-222\",\n            \"number\": \"111111\",\n            \"series\": \"2222\"\n        }\n    ],\n    \"contact\": [\n        {\n            \"contact_type\": \"PHONE\",\n            \"data\": \"+71111111111\"\n        },\n        {\n            \"contact_type\": \"EMAIL\",\n            \"data\": \"234@123.ru\"\n        }\n    ],\n    \"last_name\": \"Иванов\",\n    \"first_name\": \"Иван\",\n    \"patronymic\": \"Иванович\",\n    \"birth_date\": \"1977-02-23\"\n}"},"url":"{{http_schema}}://{{host}}/v2/insured_objects/insurants/natural_persons","description":"<p>Для применения запросов v2 на покупку полиса необходимо сохранить контактные данные страхователя. Если у вас в форме они уже есть, рекомендуем переходить на запросы v2.</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["v2","insured_objects","insurants","natural_persons"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b3843694-23f7-4d18-a0ab-155ea0ece2f6","name":"v2 Создание страхователя","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token {{token}}"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"address\": [\n        {\n            \"address_query\": \"г Санкт-Петербург, г Ломоносов, ул Швейцарская, д 8 к 2\",\n            \"address_type\": \"LEGAL_ADDRESS\"\n        },\n        {\n            \"address_query\": \"г Санкт-Петербург, г Ломоносов, ул Швейцарская, д 8 к 1\",\n            \"address_type\": \"ACTUAL_ADDRESS\"\n        }\n    ],\n    \"credential\": [\n        {\n            \"credential_type\": \"RUSSIAN_INTERNAL_PASSPORT\",\n            \"issue_date\": \"2007-03-08\",\n            \"issue_point\": \"УФМС\",\n            \"issue_point_code\": \"111-222\",\n            \"number\": \"111111\",\n            \"series\": \"2222\"\n        }\n    ],\n    \"contact\": [\n        {\n            \"contact_type\": \"PHONE\",\n            \"data\": \"+71111111111\"\n        },\n        {\n            \"contact_type\": \"EMAIL\",\n            \"data\": \"234@123.ru\"\n        }\n    ],\n    \"last_name\": \"Иванов\",\n    \"first_name\": \"Иван\",\n    \"patronymic\": \"Иванович\",\n    \"birth_date\": \"1977-02-23\"\n    \n}"},"url":"{{http_schema}}://{{host}}/v2/insured_objects/insurants/natural_persons"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 17 Jun 2019 08:20:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"10296"},{"key":"Connection","value":"keep-alive"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Vary","value":"Cookie"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"address\": [\n        {\n            \"address_query\": \"г Санкт-Петербург, г Ломоносов, ул Швейцарская, д 8 к 2\",\n            \"region_kladr_id\": \"7800000000000\",\n            \"city_kladr_id\": \"7800000600000\",\n            \"address_type\": \"LEGAL_ADDRESS\",\n            \"street_kladr_id\": \"\",\n            \"settlement_kladr_id\": \"\",\n            \"house\": \"8\",\n            \"region\": \"\",\n            \"kladr_id\": \"\"\n        },\n        {\n            \"address_query\": \"г Санкт-Петербург, г Ломоносов, ул Швейцарская, д 8 к 2\",\n            \"region_kladr_id\": \"7800000000000\",\n            \"city_kladr_id\": \"7800000600000\",\n            \"address_type\": \"ACTUAL_ADDRESS\",\n            \"street_kladr_id\": \"\",\n            \"settlement_kladr_id\": \"\",\n            \"house\": \"8\",\n            \"region\": \"\",\n            \"kladr_id\": \"\"\n        }\n    ],\n    \"credential\": [\n        {\n            \"credential_type\": \"RUSSIAN_INTERNAL_PASSPORT\",\n            \"issue_date\": \"2007-03-08\",\n            \"issue_point\": \"УФМС\",\n            \"issue_point_code\": \"111-222\",\n            \"number\": \"111111\",\n            \"series\": \"2222\"\n        }\n    ],\n    \"contact\": [\n        {\n            \"contact_type\": \"PHONE\",\n            \"data\": \"+71111111111\"\n        },\n        {\n            \"contact_type\": \"EMAIL\",\n            \"data\": \"234@123.ru\"\n        }\n    ],\n    \"person\": \"3be0313b-72e9-4ada-b643-5979caccefd2\",\n    \"last_name\": \"Иванов\",\n    \"first_name\": \"Иван\",\n    \"patronymic\": \"Иванович\",\n    \"birth_date\": \"1977-02-23\",\n    \"id\": \"3be0313b-72e9-4ada-b643-5979caccefd2\",\n    \"valid_from\": null\n}"}],"_postman_id":"e25d2656-a513-4c80-80aa-860c728de50e"},{"name":"Автомобиль","event":[{"listen":"test","script":{"id":"c008e531-865c-4b88-a644-c9628bbd4311","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","","try {","   var resp_data = JSON.parse(responseBody),","       car_id = resp_data.id;","       postman.setEnvironmentVariable(\"car_id\", car_id);","} catch(e) {","   console.log(e);","   console.log(resp_data);","   ","}"],"type":"text/javascript"}}],"id":"4b2cf365-7de4-4ea6-9e2f-c04563624616","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"car_model_id\": 9020018,\n    \"engine_power\": 211,\n    \"chassis_number\": null,\n    \"car_body_number\": null,\n    \"vin_number\": \"WAUZZZ8T4BA037241\",\n    \"number_plate\": \"Р904МХ178\",\n    \"manufacturing_year\": 2010,\n    \"max_mass\": null,\n    \"has_trailer\": false,\n    \"credential\": [\n        {\n            \"credential_type\": \"VEHICLE_REGISTRATION\",\n            \"issue_date\": \"2010-11-01\",\n            \"number\": \"267461\",\n            \"series\": \"78УН\"\n        },\n        {\n            \"credential_type\": \"DIAGNOSTIC_CHART\",\n            \"number\": \"021960081809862\",\n            \"series\": \"series\",\n            \"expiration_date\": \"2020-06-17\"\n        }\n    ]\n}"},"url":"{{http_schema}}://{{host}}/v1/insured_objects/cars","description":"<p>Создание автомобиля требует следующих полей:</p>\n<ul>\n<li>\"car_model\" -- id Модели (если используется справочник V1. Передавать значение из справочника V2 нельзя)</li>\n<li>\"engine_power\" -- мощность двигателя в л.с. Уже присутствует, при PATCH'е не требуется указывать</li>\n<li>\"has_trailer\" -- наличие/отсутствие прицепа (bool)</li>\n<li>\"chassis_number\" -- Номер шасси (не обязательно)</li>\n<li>\"car_body_number\" -- Номер кузов (не обязательно)</li>\n<li>\"vin_number\" -- ВИН (не обязательно)</li>\n<li>\"number_plate\" -- Номерной знак (не обязательно). При отсутсвиии знака не передавать параметр или null </li>\n<li>\"manufacturing_date\" -- год выпуска в формате \"2010-01-01\"</li>\n<li>\"max_mass\" -- максимальная масса (для категории C)</li>\n<li>\"credential\" -- документ (массив). Тип документов (credential_type) может быть \"VEHICLE_REGISTRATION\" - СТС, \"DIAGNOSTIC_CHART\" - диагностическая карта, \"VEHICLE_PASSPORT\" - ПТС</li>\n</ul>\n<p>Необходимо указать минимум один из четырёх параметров:</p>\n<ul>\n<li>\"chassis_number\" -- Номер шасси (не обязательно)</li>\n<li>\"car_body_number\" -- Номер кузов (прицеп) (не обязательно)</li>\n<li>\"vin_number\" -- ВИН (не обязательно)</li>\n<li>\"number_plate\" -- Номерной знак (не обязательно)</li>\n</ul>\n<p>Рекомендации:</p>\n<ul>\n<li>Желательно указать при создании номер диагностической карты в разделе документов ТС (credential). Некоторые СК не проверяют на своей стороне данные</li>\n<li>Узнать номер ДК и дату окончания можно из запроса \"Проверка ТО\"</li>\n</ul>\n<p>В ответе придут:</p>\n<ul>\n<li>\"id\"</li>\n<li>Сохранённые данные по авто</li>\n</ul>\n","urlObject":{"protocol":"{{http_schema}}","path":["v1","insured_objects","cars"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"5f28a9b5-4baf-4fd9-956b-294427aeb0c4","name":"Автомобиль","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false},{"key":"Accept","value":"application/json, text/plain, */*","disabled":false},{"key":"Authorization","value":"Token {{token}}","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"car_model_id\": {{car_model}},\n  \"engine_power\": 211, \n  \"chassis_number\": null,\n  \"car_body_number\": null,\n  \"vin_number\": \"WAUZZZ8T4BA037241\",\n  \"number_plate\": \"Р904МХ178\",\n  \"manufacturing_year\": 2010,\n  \"max_mass\": null,\n  \"has_trailer\": false,\n  \"credential\": [{\n  \t  \"credential_type\": \"VEHICLE_REGISTRATION\",\n      \"issue_date\": \"2010-11-01\",\n      \"number\": \"267461\",\n      \"series\": \"78УН\"\n  },\n  {\n      \"credential_type\": \"DIAGNOSTIC_CHART\",\n      \"number\": \"021960081809862\",\n      \"series\": \"series\",\n      \"expiration_date\": \"2020-06-17\"\n    }]\n}"},"url":"{{http_schema}}://{{host}}/{{api_version}}/insured_objects/cars"},"status":"CREATED","code":201,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Language","value":"ru","name":"Content-Language","description":"The language the content is in"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 25 Jul 2018 07:45:36 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx/1.10.2","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Accept, Accept-Language, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Tue Aug 07 2018 13:01:15 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"eosago-aggregator.2018-1.test.b2bpolis.ru","path":"/","secure":false,"value":"wg18fhkhk5fsbqcqy9btkvc191073cie","key":"sessionid"}],"responseTime":null,"body":"{\"id\":\"ca8f205b-1acc-4383-b9e2-913b32b5ebca\",\"credential\":[{\"issue_date\":null,\"number\":\"010980051903146\",\"series\":\"series\",\"credential_type\":\"DIAGNOSTIC_CHART\",\"expiration_date\":\"2020-07-02\"},{\"issue_date\":\"2015-02-13\",\"number\":\"059317\",\"series\":\"6629\",\"credential_type\":\"VEHICLE_REGISTRATION\",\"expiration_date\":null}],\"car_mark\":\"ВАЗ/Lada\",\"car_type\":\"B\",\"car_model\":\"2114\",\"rsa_code\":\"501017543\",\"car_model_id\":\"501017543\",\"manufacturing_year\":2004,\"vin_number\":\"XTA21140043759572\",\"number_plate\":\"В277РВ196\",\"car_body_number\":null,\"chassis_number\":null,\"has_trailer\":false,\"is_foreign\":false,\"engine_displacement\":null,\"engine_power\":78.0,\"is_rsa_checked\":false}"}],"_postman_id":"4b2cf365-7de4-4ea6-9e2f-c04563624616"},{"name":"V2 Автомобиль","event":[{"listen":"test","script":{"id":"c008e531-865c-4b88-a644-c9628bbd4311","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","","try {","   var resp_data = JSON.parse(responseBody),","       car_id = resp_data.id;","       postman.setEnvironmentVariable(\"car_id\", car_id);","} catch(e) {","   console.log(e);","   console.log(resp_data);","   ","}"],"type":"text/javascript"}}],"id":"5ff8a16b-9f36-4968-8d1f-384de00bd51c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"car_modification_id\": 202224,\n    \"engine_power\": 211,\n    \"chassis_number\": null,\n    \"car_body_number\": null,\n    \"vin_number\": \"WAUZZZ8T4BA037241\",\n    \"number_plate\": \"Р904МХ178\",\n    \"manufacturing_year\": 2010,\n    \"max_mass\": null,\n    \"has_trailer\": false,\n    \"credential\": [\n        {\n            \"credential_type\": \"VEHICLE_REGISTRATION\",\n            \"issue_date\": \"2010-11-01\",\n            \"number\": \"267461\",\n            \"series\": \"78УН\"\n        },\n        {\n            \"credential_type\": \"DIAGNOSTIC_CHART\",\n            \"number\": \"021960081809862\",\n            \"series\": \"series\",\n            \"expiration_date\": \"2020-06-17\"\n        }\n    ]\n}"},"url":"{{http_schema}}://{{host}}/v2/insured_objects/cars","description":"<p>Создание автомобиля требует следующих полей:</p>\n<ul>\n<li>\"car_modification_id\" -- id Модификации (если используется справочник V2)</li>\n<li>\"engine_power\" -- мощность двигателя в л.с. Уже присутствует, при PATCH'е не требуется указывать. При указании модификации необязательный параметр</li>\n<li>\"has_trailer\" -- наличие/отсутствие прицепа (bool)</li>\n<li>\"chassis_number\" -- Номер шасси (не обязательно)</li>\n<li>\"car_body_number\" -- Номер кузов (не обязательно)</li>\n<li>\"vin_number\" -- ВИН (не обязательно)</li>\n<li>\"number_plate\" -- Номерной знак (не обязательно). При отсутсвиии знака не передавать параметр или null </li>\n<li>\"manufacturing_date\" -- год выпуска в формате \"2010-01-01\"</li>\n<li>\"max_mass\" -- максимальная масса (для категории C)</li>\n<li>\"credential\" -- документ (массив). Тип документов (credential_type) может быть \"VEHICLE_REGISTRATION\" - СТС, \"DIAGNOSTIC_CHART\" - диагностическая карта, \"VEHICLE_PASSPORT\" - ПТС, \"E_VEHICLE_PASSPORT\" - ЭПТС</li>\n</ul>\n<p>Необходимо указать минимум один из четырёх параметров:</p>\n<ul>\n<li>\"chassis_number\" -- Номер шасси (не обязательно)</li>\n<li>\"car_body_number\" -- Номер кузов (прицеп) (не обязательно)</li>\n<li>\"vin_number\" -- ВИН (не обязательно)</li>\n<li>\"number_plate\" -- Номерной знак (не обязательно)</li>\n</ul>\n<p>Рекомендации:</p>\n<ul>\n<li>Желательно указать при создании номер диагностической карты в разделе документов ТС (credential). Некоторые СК не проверяют на своей стороне данные</li>\n<li>Узнать номер ДК и дату окончания можно из запроса \"Проверка ТО\"</li>\n</ul>\n<p>В ответе придут:</p>\n<ul>\n<li>\"id\"</li>\n<li>Сохранённые данные по авто</li>\n</ul>\n<p>Опционально можно создавать только с car_model_id если ни одна модификация не подходит по мощности. Для этого нужно обязательно:</p>\n<ul>\n<li>Указать \"engine_power\"</li>\n<li>Указать \"car_modification_id\": null</li>\n</ul>\n","urlObject":{"protocol":"{{http_schema}}","path":["v2","insured_objects","cars"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"f8ee4e8d-f912-42c9-aee3-d5dfe9998c15","name":"Автомобиль","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false},{"key":"Accept","value":"application/json, text/plain, */*","disabled":false},{"key":"Authorization","value":"Token {{token}}","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"car_model_id\": {{car_model}},\n  \"engine_power\": 211, \n  \"chassis_number\": null,\n  \"car_body_number\": null,\n  \"vin_number\": \"WAUZZZ8T4BA037241\",\n  \"number_plate\": \"Р904МХ178\",\n  \"manufacturing_year\": 2010,\n  \"max_mass\": null,\n  \"has_trailer\": false,\n  \"credential\": [{\n  \t  \"credential_type\": \"VEHICLE_REGISTRATION\",\n      \"issue_date\": \"2010-11-01\",\n      \"number\": \"267461\",\n      \"series\": \"78УН\"\n  },\n  {\n      \"credential_type\": \"DIAGNOSTIC_CHART\",\n      \"number\": \"021960081809862\",\n      \"series\": \"series\",\n      \"expiration_date\": \"2020-06-17\"\n    }]\n}"},"url":"{{http_schema}}://{{host}}/{{api_version}}/insured_objects/cars"},"status":"CREATED","code":201,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Language","value":"ru","name":"Content-Language","description":"The language the content is in"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 25 Jul 2018 07:45:36 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx/1.10.2","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Accept, Accept-Language, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Tue Aug 07 2018 13:01:15 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"eosago-aggregator.2018-1.test.b2bpolis.ru","path":"/","secure":false,"value":"wg18fhkhk5fsbqcqy9btkvc191073cie","key":"sessionid"}],"responseTime":null,"body":"{\"id\":\"ca8f205b-1acc-4383-b9e2-913b32b5ebca\",\"credential\":[{\"issue_date\":null,\"number\":\"010980051903146\",\"series\":\"series\",\"credential_type\":\"DIAGNOSTIC_CHART\",\"expiration_date\":\"2020-07-02\"},{\"issue_date\":\"2015-02-13\",\"number\":\"059317\",\"series\":\"6629\",\"credential_type\":\"VEHICLE_REGISTRATION\",\"expiration_date\":null}],\"car_mark\":\"ВАЗ/Lada\",\"car_type\":\"B\",\"car_model\":\"2114\",\"rsa_code\":\"501017543\",\"car_model_id\":\"501017543\",\"manufacturing_year\":2004,\"vin_number\":\"XTA21140043759572\",\"number_plate\":\"В277РВ196\",\"car_body_number\":null,\"chassis_number\":null,\"has_trailer\":false,\"is_foreign\":false,\"engine_displacement\":null,\"engine_power\":78.0,\"is_rsa_checked\":false}"}],"_postman_id":"5ff8a16b-9f36-4968-8d1f-384de00bd51c"},{"name":"Получение данных по авто через автокод","event":[{"listen":"test","script":{"id":"c008e531-865c-4b88-a644-c9628bbd4311","exec":[""],"type":"text/javascript"}}],"id":"6c01248f-5c1f-4364-997f-d468d51343da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\"number_plate\":\"Е271ХМ178\"}"},"url":"{{http_schema}}://{{host}}/v1/insured_objects/cars/by_number_plate ","description":"<p>Доступно только по гос. знаку</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["v1","insured_objects","cars","by_number_plate "],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b04c45f2-d813-4d3f-aa14-b6bceeb922a0","name":"Получение данных по авто через автокод","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\"number_plate\":\"Е271ХМ178\"}"},"url":"{{http_schema}}://{{host}}/v1/insured_objects/cars/by_number_plate "},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"sts\": \"4759659225\",\n    \"car_mark\": \"Skoda\",\n    \"category\": \"B\",\n    \"credential\": [\n        {\n            \"number\": \"659225\",\n            \"series\": \"4759\",\n            \"credential_type\": \"VEHICLE_REGISTRATION\"\n        }\n    ],\n    \"vin_number\": \"TMBED45J2B3209311\",\n    \"car_model_id\": \"366013810\",\n    \"engine_power\": 104.7,\n    \"number_plate\": \"Е271ХМ178\",\n    \"manufacturing_year\": 2011\n}"}],"_postman_id":"6c01248f-5c1f-4364-997f-d468d51343da"},{"name":"Проверка ТО","id":"cd810276-e4c1-433a-8a23-5507eaa96a21","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token {{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"ident_type\": \"VIN\",\n\t\"ident_number\": \"TMBED45J2B3209311\"\n}"},"url":"{{http_schema}}://{{host}}/v1/insured_objects/cars/ticket_check","description":"<p>ident_type - одно из значений: \"VIN\", \"BodyNumber\", \"ChassisNumber\", \"LicensePlate\"</p>\n<p>В ответе придут:</p>\n<ul>\n<li>number -- номер Диагностической Карты (ДК)</li>\n<li>next_to -- дата окончания ДК</li>\n</ul>\n","urlObject":{"protocol":"{{http_schema}}","path":["v1","insured_objects","cars","ticket_check"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"bbf3130a-389c-4be8-b95f-f5ae4ed85c50","name":"Проверка ТО","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token {{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"ident_type\": \"VIN\",\n\t\"ident_number\": \"TMBED45J2B3209311\"\n}"},"url":"{{http_schema}}://{{host}}/v1/insured_objects/cars/ticket_check"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 17 Jun 2019 12:30:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Vary","value":"Cookie"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"number\": \"021960081809862\",\n    \"next_to\": \"2019-06-17\",\n    \"error_info\": {\n        \"code\": \"3\",\n        \"message\": \"Обработан успешно\"\n    },\n    \"ticket_existed\": \"true\"\n}"}],"_postman_id":"cd810276-e4c1-433a-8a23-5507eaa96a21"},{"name":"Объединение субъектов и объектов страхования в одну сущность","event":[{"listen":"test","script":{"id":"cc45039a-7f6f-4398-b7f9-959e74d34695","type":"text/javascript","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Response time is less than 500ms\"] = responseTime < 500;","","try {","   var resp_data = JSON.parse(responseBody),","       insured_object = resp_data.id;","       postman.setEnvironmentVariable(\"insured_object_id\", insured_object);","} catch(e) {","   console.log(e);","   console.log(resp_data);","   ","}"]}}],"id":"b0bd485b-02fe-4116-854c-b3fb2df86423","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"drivers\": [\n    \"{{driver_id}}\"\n  ],\n  \"owner\": \"{{owner_id}}\",\n  \"car\": \"{{car_id}}\",\n  \"insurant\": \"{{insurant_id}}\"\n}"},"url":"{{http_schema}}://{{host}}/{{api_version}}/insured_objects/","description":"<p>Создаём техническую сущность - \"объект страхования\":</p>\n<ul>\n<li>\"drivers\" -- массив водителей</li>\n<li>\"owner\" -- собственник</li>\n<li>\"insurant\" -- страхователь</li>\n<li>\"car\" -- автомобиль</li>\n</ul>\n<p>Из ответа берём \"id\" -- потребуется при создании сущности \"договор\" или при обновлении договора.</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","insured_objects",""],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"29220a1b-dbfa-4707-84b9-c816a5250b92","name":"Объединение субъектов и объектов страхования в одну сущность","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8","disabled":false},{"key":"Accept","value":"application/json, text/plain, */*","disabled":false},{"key":"Authorization","value":"Token {{token}}","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"drivers\": [\n    {{driver_id}}\n  ],\n  \"owner\": {{owner_id}},\n  \"car\": {{car_id}}\n}"},"url":"{{http_schema}}://{{host}}/{{api_version}}/insured_objects"},"status":"CREATED","code":201,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, POST, HEAD, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Language","value":"ru","name":"Content-Language","description":"The language the content is in"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 23 Jul 2018 12:17:52 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Location","value":"https://eosago-aggregator.2018-1.test.b2bpolis.ru/rest/default/client/insured-object/430","name":"Location","description":"Used in redirection, or when a new resource has been created."},{"key":"Server","value":"nginx/1.10.2","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Accept, Accept-Language, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Jul 26 2018 11:49:51 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"eosago-aggregator.2018-1.test.b2bpolis.ru","path":"/","secure":false,"value":"wg18fhkhk5fsbqcqy9btkvc191073cie","key":"sessionid"}],"responseTime":null,"body":"{\n    \"id\": 430\n}"}],"_postman_id":"b0bd485b-02fe-4116-854c-b3fb2df86423"},{"name":"Обновление Договора в системе AgentApp","event":[{"listen":"test","script":{"id":"9ff7aacb-ceb9-40c1-8962-3f0ba75c86d7","type":"text/javascript","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Response time is less than 500ms\"] = responseTime < 500;",""]}}],"id":"95c78189-7824-46f4-aaa1-935f138e3c4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"insured_object\": \"{{insured_object_id}}\"\n}"},"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/{{agreement_id}}","description":"<p>Необходимые параметры:</p>\n<ul>\n<li>\"insured_object\" -- id сущности InsuredObject</li>\n</ul>\n<p>В ответе получаем:</p>\n<ul>\n<li>id -- сохраняем как agreement_id, дальше будем использовать.</li>\n</ul>\n","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","agreements","{{agreement_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"31242bba-9fcf-4f08-80b0-f00b84c3e68a","name":"Обновление Договора в системе AgentApp","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"insured_object\": \"{{insured_object_id}}\"\n}"},"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/{{agreement_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 17 Jun 2019 12:36:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Allow","value":"GET, PATCH, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Vary","value":"Cookie"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"80a24deb-466e-45ce-80d7-23c125f2c5dc\",\n    \"valid_from\": \"2019-06-30T00:00:00+03:00\",\n    \"valid_to\": \"2020-06-29T23:59:59.999999+03:00\",\n    \"periods\": [\n        {\n            \"start_date\": \"2019-06-30\",\n            \"end_date\": \"2019-09-29\"\n        }\n    ],\n    \"calculation\": {\n        \"data\": {\n            \"kbm\": 1,\n            \"drivers\": [\n                {\n                    \"last_name\": \"Тарасов\",\n                    \"birth_date\": \"1987-01-13\",\n                    \"credential\": [\n                        {\n                            \"number\": \"013837\",\n                            \"series\": \"47СТ\",\n                            \"issue_date\": \"2006-08-08\",\n                            \"credential_type\": \"DRIVER_LICENSE\"\n                        }\n                    ],\n                    \"first_name\": \"Дмитрий\",\n                    \"patronymic\": \"Сергеевич\",\n                    \"driving_experience_started\": \"2006-08-08\"\n                }\n            ],\n            \"periods\": [\n                {\n                    \"end_date\": \"2019-09-29\",\n                    \"start_date\": \"2019-06-30\"\n                }\n            ],\n            \"car_type\": \"B\",\n            \"max_mass\": 0,\n            \"valid_to\": \"2020-06-29\",\n            \"valid_from\": \"2019-06-30\",\n            \"drivers_ids\": [\n                \"92591516-7135-45e3-ac45-5f2d20e25cc4\"\n            ],\n            \"seats_count\": 0,\n            \"engine_power\": 95,\n            \"insurant_type\": \"NATURAL_PERSON\",\n            \"is_multidrive\": false,\n            \"has_car_trailer\": false,\n            \"target_of_using\": \"PERSONAL\",\n            \"insurance_period\": 8,\n            \"owner_registration\": {\n                \"kt1\": 1.8,\n                \"kt2\": 1,\n                \"okato\": \"40000000000\",\n                \"code_kladr\": \"7800000000000\"\n            },\n            \"insurance_period_kerm\": \"1.00\",\n            \"insurance_period_month\": 12,\n            \"is_car_without_registration\": false\n        },\n        \"coeffs\": {\n            \"Kbm\": 1,\n            \"Klim\": 1,\n            \"Kterm\": 8,\n            \"S_min\": 41756.77,\n            \"Kengine\": 1.1,\n            \"Kexpage\": 0.96,\n            \"Kregion\": 1.8,\n            \"Ktrailer\": 1,\n            \"Tbase_max\": 4942,\n            \"Tbase_min\": 2746,\n            \"kbm_class\": \"3\"\n        },\n        \"premium\": 75150.03\n    },\n    \"status\": \"DRAFT\",\n    \"insured_object\": \"17ecd3eb-7fc7-44d4-bed4-53ca0dfeae1d\"\n}"}],"_postman_id":"95c78189-7824-46f4-aaa1-935f138e3c4f"},{"name":"Получение Договора и инфы о нём","id":"5d16b1c6-7d9b-4448-aad4-835340c0ab5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"},{"key":"Content-Type","value":"application/json;charset=UTF-8"}],"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/{{agreement_id}}","description":"<p>В ответе придёт информация о Договоре.\nДля получения всей информации в url необходимо добавить /full.</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","agreements","{{agreement_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"1ba50d53-afbd-493d-ba25-e46048335ea6","name":"Получение Договора и инфы о нём (полис в статусе Выпущен)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"},{"key":"Content-Type","value":"application/json;charset=UTF-8"}],"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/{{agreement_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"5c776b23-666k-41c8-b606-6e26cd9b6d09\",\n  \"valid_from\": \"2019-08-18T00:00:00+03:00\",\n  \"valid_to\": \"2020-08-17T23:59:59.999999+03:00\",\n  \"insurant\": {\n    \"last_name\": \"Фамилия\",\n    \"first_name\": \"Имя\",\n    \"patronymic\": \"Отчество\"\n  },\n  \"insurance_company\": \"ПАО СК «Росгосстрах»\",\n  \"status\": \"ISSUED\",\n  \"creator\": {\n    \"last_name\": \"\",\n    \"first_name\": \"\",\n    \"patronymic\": \"\"\n  },\n  \"premium\": \"13572.36\",\n  \"department_title\": \"Умный Полис\",\n  \"created_at\": \"2019-08-14T11:04:03.069958+03:00\",\n  \"pay_parameters\": {\n    \"pay_link\": \"https://web.rbsuat.com/rgsb/merchants/rgs/payment_ru.html?mdOrder=f68664be-7b3b-77bc-9ac0-f18500002739\",\n    \"pay_link_expiration\": \"2019-08-14T11:30:10.482238+03:00\"\n  },\n  \"icresults\": [\n    {\n      \"parameters\": {\n        \"premium\": \"13572.36\",\n        \"segment\": \"Санкт-Петербург\",\n        \"commission\": {\n          \"creator_premium\": \"1682.97\"\n        },\n        \"pay_parameters\": {\n          \"pay_link\": \"https://web.rbsuat.com/rgsb/merchants/rgs/payment_ru.html?mdOrder=f68664be-7b3b-77bc-9ac0-f18500002739\",\n          \"parameters\": {\n            \"OrderId\": \"f68664be-7b3b-77bc-9ac0-f18500002739\",\n            \"verification_status\": \"CONFIRMED\"\n          },\n          \"pay_link_expiration\": \"2019-08-14T11:30:10.482238+03:00\"\n        },\n        \"commission_value\": 1682.97,\n        \"result_parameters\": {\n          \"Number\": \"0550180995\",\n          \"CalculationId\": \"dc7c4bbb-d5b4-4159-80c4-e2d19eb55bb7\",\n          \"valid_from_days\": 4\n        },\n        \"verification_status\": \"CONFIRMED\",\n        \"integrated_agency_code\": \"RGS\",\n        \"integrated_company_code\": \"RGS\",\n        \"integrated_company_title\": \"Росгосстрах\"\n      },\n      \"is_active\": true,\n      \"commission\": {\n        \"creator_premium\": \"1682.97\"\n      }\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"DENY\",\n        \"last_error_message\": \"Не прошел скоринг ОСАГО\",\n        \"integrated_agency_code\": \"ALPHA_STRAH_1\",\n        \"integrated_company_code\": \"ALPHA_STRAH\",\n        \"last_error_message_description\": null\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"premium\": \"15743.94\",\n        \"segment\": \"Санкт-Петербург\",\n        \"commission\": {\n          \"creator_premium\": \"3935.98\"\n        },\n        \"ping_status\": {\n          \"status\": \"APPROVED\",\n          \"message\": \"Договор одобрен страховой компанией\"\n        },\n        \"commission_value\": 3935.98,\n        \"result_parameters\": {\n          \"renPolicyId\": \"1968568\",\n          \"valid_from_days\": 1\n        },\n        \"integrated_agency_code\": \"RENAISSANCE\",\n        \"integrated_company_code\": \"RENAISSANCE\",\n        \"integrated_company_title\": \"Ренессанс\"\n      },\n      \"is_active\": false,\n      \"commission\": {\n        \"creator_premium\": \"3935.98\"\n      }\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"DENY\",\n        \"last_error_message\": \"Расчёт заблокирован СК\",\n        \"integrated_agency_code\": \"TINKOFF\",\n        \"integrated_company_code\": \"TINKOFF\",\n        \"last_error_message_description\": null\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"premium\": \"14107.61\",\n        \"segment\": \"Все регионы\",\n        \"commission\": {\n          \"creator_premium\": \"2116.13\"\n        },\n        \"commission_value\": 2116.14,\n        \"result_parameters\": {\n          \"policyId\": \"1398351\",\n          \"valid_from_days\": 1\n        },\n        \"integrated_agency_code\": \"UGORIA\",\n        \"integrated_company_code\": \"UGORIA\",\n        \"integrated_company_title\": \"Югория\"\n      },\n      \"is_active\": false,\n      \"commission\": {\n        \"creator_premium\": \"2116.13\"\n      }\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"DENY\",\n        \"last_error_message\": \"Расчёт заблокирован СК\",\n        \"integrated_agency_code\": \"ZETTA\",\n        \"integrated_company_code\": \"ZETTA\",\n        \"last_error_message_description\": null\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"ERROR\",\n        \"last_error_message\": \"Проверьте правильность введенного телефонного номера Страхователя. Данный телефон указан у другого клиента\",\n        \"integrated_agency_code\": \"INGOSSTRAH_1\",\n        \"integrated_company_code\": \"INGOSSTRAH\",\n        \"last_error_message_description\": \"Внимание! В карточке страхователя указан некорректный номер, который является дубликатом другого телефона!\"\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"IC_DENY\",\n        \"last_error_message\": \"IC: Нежелательный сегмент\",\n        \"integrated_agency_code\": \"SNGI\",\n        \"integrated_company_code\": \"SNGI\",\n        \"last_error_message_description\": null\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"TECH_ERROR\",\n        \"last_error_message\": \"Расчёт по компании временно отключён \",\n        \"integrated_agency_code\": \"SDS\",\n        \"integrated_company_code\": \"SDS\",\n        \"last_error_message_description\": null\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"TECH_ERROR\",\n        \"last_error_message\": \"Отсутствует подключение к IC\",\n        \"integrated_agency_code\": \"RESO\",\n        \"integrated_company_code\": \"RESO\",\n        \"last_error_message_description\": \"\"\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"IC_DENY\",\n        \"last_error_message\": \"IC: Нежелательный сегмент\",\n        \"integrated_agency_code\": \"SERVIS_REZERV\",\n        \"integrated_company_code\": \"SERVIS_REZERV\",\n        \"last_error_message_description\": null\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    }\n  ],\n  \"insured_object\": \"c721a29b-7380-429c-ba2a-cb5152f494fd\",\n  \"documents\": [\n    {\n      \"name\": \"Policy-5c776b23-cd4f-41c8-b606-6e26cd9b6d09.pdf\",\n      \"url\": \"/media/policy_2019-8/Policy-5c776b23-cd4f-41c8-b606-6e26cd9b6d09.pdf\"\n    }\n  ],\n  \"periods\": [],\n  \"calculation\": {\n    \"data\": {\n      \"kbm\": 1,\n      \"drivers\": [\n        {\n          \"last_name\": \"Фамилия\",\n          \"birth_date\": \"1990-08-01\",\n          \"credential\": [\n            {\n              \"number\": \"111222\",\n              \"series\": \"5634\",\n              \"issue_date\": \"2011-01-11\",\n              \"credential_type\": \"DRIVER_LICENSE\"\n            }\n          ],\n          \"first_name\": \"Имя\",\n          \"patronymic\": \"Отчество\",\n          \"driving_experience_started\": \"2011-01-11\"\n        }\n      ],\n      \"car_type\": \"B\",\n      \"max_mass\": 0,\n      \"valid_to\": \"2020-08-13\",\n      \"valid_from\": \"2019-08-14\",\n      \"drivers_ids\": [\n        \"0e04d6d9-fa28-4ebb-892c-79bf4a9dcd8d\"\n      ],\n      \"seats_count\": 0,\n      \"engine_power\": 104.7,\n      \"insurant_type\": \"NATURAL_PERSON\",\n      \"is_multidrive\": false,\n      \"has_car_trailer\": false,\n      \"target_of_using\": \"PERSONAL\",\n      \"insurance_period\": 8,\n      \"owner_registration\": {\n        \"kt1\": 1.8,\n        \"kt2\": 1,\n        \"okato\": \"40000000000\",\n        \"code_kladr\": \"7800000000000\"\n      },\n      \"insurance_period_kterm\": \"1.00\",\n      \"insurance_period_month\": 12,\n      \"is_car_without_registration\": false\n    },\n    \"coeffs\": {\n      \"Kbm\": 1,\n      \"Klim\": 1,\n      \"Kterm\": 1,\n      \"S_min\": 10498.51,\n      \"Kengine\": 1.2,\n      \"Kexpage\": 1.77,\n      \"Kregion\": 1.8,\n      \"Ktrailer\": 1,\n      \"Tbase_max\": 4942,\n      \"Tbase_min\": 2746,\n      \"kbm_class\": \"3\"\n    },\n    \"premium\": 18894.25\n  },\n  \"eternal_payment_link\": null,\n  \"is_temporary_blocked\": false\n}"},{"id":"d4ae0c2c-b5c2-443d-8096-1bcc0ab93a05","name":"Получение данных по договору (полис в статусе предвыпуск)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/2656bf29-666r-4052-a86c-a552dc7967e8"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, PATCH, HEAD, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Language","value":"ru","name":"Content-Language","description":"The language the content is in"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 24 Jul 2018 13:15:34 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx/1.10.2","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Accept, Accept-Language, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Tue Aug 07 2018 13:01:15 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"eosago-aggregator.2018-1.test.b2bpolis.ru","path":"/","secure":false,"value":"wg18fhkhk5fsbqcqy9btkvc191073cie","key":"sessionid"}],"responseTime":null,"body":"{\n  \"id\": \"2656bf29-666r-4052-a86c-a552dc7967e8\",\n  \"valid_from\": \"2019-08-22T00:00:00+03:00\",\n  \"valid_to\": \"2020-08-21T00:00:00+03:00\",\n  \"insurant\": {\n    \"last_name\": \"Фамилия\",\n    \"first_name\": \"Имя\",\n    \"patronymic\": \"Отчество\"\n  },\n  \"insurance_company\": \"АО«АльфаСтрахование»\",\n  \"status\": \"PREISSUED\",\n  \"creator\": {\n    \"last_name\": \"Фамилия\",\n    \"first_name\": \"Имя\",\n    \"patronymic\": \"\"\n  },\n  \"premium\": 4132.82,\n  \"department_title\": \"Умный Полис\",\n  \"created_at\": \"2019-08-14T12:59:53.009926+03:00\",\n  \"pay_parameters\": {\n    \"pay_link\": \"https://engine.paymentgate.ru/payment/merchants/alfa_insur2/payment_ru.html?mdOrder=c436d920-09f8-70ce-b47a-1b9800009efa\",\n    \"pay_link_expiration\": \"2019-08-14T13:20:45.027714+03:00\"\n  },\n  \"icresults\": [\n    {\n      \"parameters\": {\n        \"last_error_type\": \"IC_DENY\",\n        \"last_error_message\": \"IC: Нежелательный сегмент\",\n        \"integrated_agency_code\": \"SERVIS_REZERV\",\n        \"integrated_company_code\": \"SERVIS_REZERV\",\n        \"last_error_message_description\": null\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"premium\": 4132.82,\n        \"segment\": \"Остальные\",\n        \"commission\": {\n          \"creator_premium\": \"413.27\"\n        },\n        \"pay_parameters\": {\n          \"pay_link\": \"https://engine.paymentgate.ru/payment/merchants/alfa_insur2/payment_ru.html?mdOrder=c436d920-09f8-70ce-b47a-1b9800009efa\",\n          \"parameters\": {},\n          \"pay_link_expiration\": \"2019-08-14T13:20:45.027714+03:00\"\n        },\n        \"commission_value\": 413.28,\n        \"result_parameters\": {\n          \"UPID\": \"406aa2d9-5d37-4242-9fdd-f3b90bd367cf\",\n          \"OwnerId\": 2569386818,\n          \"DriverIds\": [\n            [\n              \"7fe2ed44-03da-4558-ac65-88f403636d3f\",\n              2569386997\n            ]\n          ],\n          \"ContractId\": 78550191,\n          \"InsurantId\": 2569386702,\n          \"ContractNumber\": \"0093191728\",\n          \"isProlongation\": false,\n          \"valid_from_days\": 4\n        },\n        \"verification_status\": null,\n        \"integrated_agency_code\": \"ALPHA_STRAH_1\",\n        \"integrated_company_code\": \"ALPHA_STRAH\",\n        \"integrated_company_title\": \"АльфаСтрахование\"\n      },\n      \"is_active\": true,\n      \"commission\": {\n        \"creator_premium\": \"413.27\"\n      }\n    },\n    {\n      \"parameters\": {\n        \"premium\": \"5390.30\",\n        \"segment\": \"Все регионы\",\n        \"commission\": {\n          \"creator_premium\": \"808.53\"\n        },\n        \"ping_status\": {\n          \"status\": \"CHECKING\",\n          \"message\": \"Истекло время проверки статуса договора\"\n        },\n        \"commission_value\": 808.54,\n        \"result_parameters\": {\n          \"policyId\": \"1399765\",\n          \"valid_from_days\": 1\n        },\n        \"integrated_agency_code\": \"UGORIA\",\n        \"integrated_company_code\": \"UGORIA\",\n        \"integrated_company_title\": \"Югория\"\n      },\n      \"is_active\": false,\n      \"commission\": {\n        \"creator_premium\": \"808.53\"\n      }\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"DENY\",\n        \"last_error_message\": \"Расчёт заблокирован СК\",\n        \"integrated_agency_code\": \"TINKOFF\",\n        \"integrated_company_code\": \"TINKOFF\",\n        \"last_error_message_description\": null\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"TECH_ERROR\",\n        \"last_error_message\": \"Оформление невозможно.\",\n        \"integrated_agency_code\": \"ZETTA\",\n        \"integrated_company_code\": \"ZETTA\",\n        \"last_error_message_description\": null\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"DENY\",\n        \"last_error_message\": \"Оформление договора по указанным данным заблокировано\",\n        \"integrated_agency_code\": \"RGS\",\n        \"integrated_company_code\": \"RGS\",\n        \"last_error_message_description\": null\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"premium\": \"4312.59\",\n        \"segment\": \"Остальные S\",\n        \"commission\": {\n          \"creator_premium\": \"431.25\"\n        },\n        \"ping_status\": {\n          \"status\": \"APPROVED\",\n          \"message\": \"Договор одобрен страховой компанией\"\n        },\n        \"commission_value\": 431.26,\n        \"result_parameters\": {\n          \"renPolicyId\": \"1973354\",\n          \"valid_from_days\": 1\n        },\n        \"integrated_agency_code\": \"RENAISSANCE\",\n        \"integrated_company_code\": \"RENAISSANCE\",\n        \"integrated_company_title\": \"Ренессанс\"\n      },\n      \"is_active\": false,\n      \"commission\": {\n        \"creator_premium\": \"431.25\"\n      }\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"IC_DENY\",\n        \"last_error_message\": \"IC: Нежелательный сегмент\",\n        \"integrated_agency_code\": \"SNGI\",\n        \"integrated_company_code\": \"SNGI\",\n        \"last_error_message_description\": null\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"TECH_ERROR\",\n        \"last_error_message\": \"Расчёт по компании временно отключён \",\n        \"integrated_agency_code\": \"SDS\",\n        \"integrated_company_code\": \"SDS\",\n        \"last_error_message_description\": null\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"IC_DENY\",\n        \"last_error_message\": \"IC: Нежелательный сегмент\",\n        \"integrated_agency_code\": \"INGOSSTRAH_1\",\n        \"integrated_company_code\": \"INGOSSTRAH\",\n        \"last_error_message_description\": \"Отклонен IC\"\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"TECH_ERROR\",\n        \"last_error_message\": \"Отсутствует подключение к IC\",\n        \"integrated_agency_code\": \"RESO\",\n        \"integrated_company_code\": \"RESO\",\n        \"last_error_message_description\": \"\"\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    }\n  ],\n  \"insured_object\": \"bf9323aa-b93a-4c0f-ac34-9239ff9a39d4\",\n  \"documents\": [],\n  \"periods\": [],\n  \"calculation\": {\n    \"data\": {\n      \"kbm\": \"0.9\",\n      \"drivers\": [\n        {\n          \"last_name\": \"Фамилия\",\n          \"birth_date\": \"1987-08-14\",\n          \"credential\": [\n            {\n              \"number\": \"111111\",\n              \"series\": \"6666\",\n              \"issue_date\": \"2011-01-11\",\n              \"credential_type\": \"DRIVER_LICENSE\"\n            }\n          ],\n          \"first_name\": \"Имя\",\n          \"patronymic\": \"Отчество\",\n          \"driving_experience_started\": \"2011-08-27\"\n        }\n      ],\n      \"car_type\": \"B\",\n      \"max_mass\": 0,\n      \"valid_to\": \"2020-08-21\",\n      \"valid_from\": \"2019-08-22\",\n      \"drivers_ids\": [\n        \"7fe2ed44-03da-4558-ac65-88f403636d3f\"\n      ],\n      \"seats_count\": 0,\n      \"engine_power\": 101.97,\n      \"insurant_type\": \"NATURAL_PERSON\",\n      \"is_multidrive\": false,\n      \"has_car_trailer\": true,\n      \"target_of_using\": \"PERSONAL\",\n      \"insurance_period\": 8,\n      \"owner_registration\": {},\n      \"insurance_period_kterm\": \"1.00\",\n      \"insurance_period_month\": 12,\n      \"is_car_without_registration\": false\n    },\n    \"coeffs\": {\n      \"Kbm\": 0.9,\n      \"Klim\": 1,\n      \"Kterm\": 1,\n      \"S_min\": 2995.34,\n      \"Kengine\": 1.2,\n      \"Kexpage\": 1.01,\n      \"Kregion\": 1,\n      \"Ktrailer\": 1,\n      \"Tbase_max\": 4942,\n      \"Tbase_min\": 2746,\n      \"kbm_class\": \"5\"\n    },\n    \"premium\": 5390.73\n  },\n  \"eternal_payment_link\": \"https://host.ru/#/a?t=12324324h9S\",\n  \"is_temporary_blocked\": false\n}"}],"_postman_id":"5d16b1c6-7d9b-4448-aad4-835340c0ab5c"},{"name":"Архив Договоров","event":[{"listen":"test","script":{"id":"0ddc5675-2fd7-4656-8dea-25fa7abc1012","exec":["tests[\"Status code is 201\"] = responseCode.code === 200;"],"type":"text/javascript"}}],"id":"5f8af683-085c-4393-95b1-b568ab1f5a82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements","description":"<p>Пагинированный список договоров</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","agreements"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5f8af683-085c-4393-95b1-b568ab1f5a82"}],"id":"c72067c9-3f37-448f-befb-31fbbd30f803","_postman_id":"c72067c9-3f37-448f-befb-31fbbd30f803","description":""},{"name":"Работа с договором","item":[{"name":"Страховые компании","id":"80a411cb-0dd4-4c79-9a99-aa56a3e1e1a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{token}}"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"}],"body":{"mode":"formdata","formdata":[]},"url":"{{http_schema}}://{{host}}/{{api_version}}/companies/","description":"<p>Список СК доступных для расчёта со ссылкой на логотипы и контактные данные.</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","companies",""],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"80a411cb-0dd4-4c79-9a99-aa56a3e1e1a5"},{"name":"Получаем расчёт по Страховой Компании","event":[{"listen":"test","script":{"id":"f5a31a1e-2a25-4913-bd1d-561b84fe3894","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"type":"text/javascript"}}],"id":"71374b86-1af0-4cd9-a196-02f3346e06f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":""},"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/{{agreement_id}}/results/{{ins_company_code}}","description":"<p>По каждой страховой компании необходимо отправить данный запрос.\nВ адресной строке параметры:</p>\n<ul>\n<li>\"agreement_id\" -- id Договора в системе AgentApp</li>\n<li>\"ins_company_code\" -- код Страховой компании. Доступные коды: ZETTA, ALPHA_STRAH, SDS, RENAISSANCE, RGS, SNGI, UGORIA, \nINGOSSTRAH, TINKOFF, RESO, VSK</li>\n</ul>\n<p>В положительном ответе (статус 200) получаем параметры:</p>\n<ul>\n<li>\"integrated_company_title\" -- наименование Страховой Компании</li>\n<li>\"integrated_company_code\" -- code Страховой Компании</li>\n<li>\"premium\" -- Премия</li>\n</ul>\n","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","agreements","{{agreement_id}}","results","{{ins_company_code}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"1cdecde8-22e3-4b87-918d-447b4072363f","name":"Получаем расчёт по Страховой Компании","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":""},"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/{{agreement_id}}/results/{{ins_company_code}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 17 Jun 2019 14:10:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Vary","value":"Cookie"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"parameters\": {\n        \"integrated_agency_code\": \"RENAISSANCE\",\n        \"integrated_company_title\": \"Ренессанс\",\n        \"premium\": \"7400.54\",\n        \"commission_value\": 1850.14,\n        \"segment\": \"Санкт-Петербург\",\n        \"result_parameters\": {\n            \"renPolicyId\": \"975609\",\n            \"valid_from_days\": 1\n        },\n        \"integrated_company_code\": \"RENAISSANCE\",\n        \"commission\": {\n            \"creator_premium\": \"1850.14\"\n        }\n    },\n    \"is_active\": true,\n    \"commission\": {\n        \"creator_premium\": \"1850.14\"\n    }\n}"}],"_postman_id":"71374b86-1af0-4cd9-a196-02f3346e06f2"},{"name":"v1 Покупка полиса выбранной Страховой компании","event":[{"listen":"test","script":{"id":"c4b0bee9-3459-465c-a280-f19d120207b1","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;"],"type":"text/javascript"}}],"id":"47b2c1cf-f283-4db7-bb28-4bae0dd22c60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":""},"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/{{agreement_id}}/results/{{ins_company_code}}/buy","description":"<p>Технический запрос на переведение в статус \"Сохранён\". Работает для первой версии API - v1.</p>\n<p>Ответ может быть положительным. В данном случае:</p>\n<ul>\n<li>Договор в системе AgentApp переходит в статус SAVED</li>\n</ul>\n","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","agreements","{{agreement_id}}","results","{{ins_company_code}}","buy"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"e07e9c7d-3026-4299-b391-3111b4efb6cc","name":"v1 Покупка полиса выбранной Страховой компании","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":""},"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/{{agreement_id}}/results/{{ins_company_code}}/buy"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 17 Jun 2019 14:18:41 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Vary","value":"Cookie"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"success\"\n}"}],"_postman_id":"47b2c1cf-f283-4db7-bb28-4bae0dd22c60"},{"name":"v1 Обновление контактных данных Страхователя","event":[{"listen":"test","script":{"id":"1f9813ca-4766-47e0-96b9-d0318642b81a","type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","tests[\"Response time is less than 500ms\"] = responseTime < 500;",""]}}],"id":"74183c64-ad9c-44bc-abfc-47202dcec505","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"phone\": \"+7 (911) 123-4567\",\n  \"email\": \"osago@customer.ru\",\n  \"send_payment_link_to\": [\n  \t\"phone\", \"email\"\n  \t]\n}"},"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/{{agreement_id}}/insurants_contacts","description":"<p>По первой версии api после покупки полиса в выбранной страховой компании необходимо отправить контактные данные.\nРест обновит контакты страхователя.</p>\n<p>В запросе можно передать:</p>\n<ul>\n<li>\"phone\" -- телефон, в формате \"+7 (925) 123-4567\"</li>\n<li>\"email\" -- email</li>\n</ul>\n<p>После обновления контактов в ответе приходит ссылка на оплату.</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","agreements","{{agreement_id}}","insurants_contacts"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"9461d71e-43b0-4a49-bd54-9f16329abd2a","name":"v1 Обновление контактных данных Страхователя","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"phone\": \"+7 (911) 123-4567\",\n  \"email\": \"osago@customer.ru\",\n  \"send_payment_link_to\": [\n  \t\"phone\", \"email\"\n  \t]\n}"},"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/{{agreement_id}}/insurants_contacts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 17 Jun 2019 14:24:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Vary","value":"Cookie"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"pay_parameters\": {\n        \"pay_link\": \"https://e-commerce.raiffeisen.ru/vsmc3ds/renins/3dsproxy_init.jsp?CountryCode=643&CurrencyCode=643&MerchantCity=MOSCOW&MerchantName=Renins&MerchantURL=http%3a%2f%2fwww.renins.com&MerchantID=000001680169001-80169001&PurchaseDesc=v9PaUhceDb&PurchaseAmt=7400.54&HMAC=tvQuJzMkYtoJVDhki2gBASV0b3a5IH14041zB5bsRdY%3d&FailURL=partner.qa.agentapp.ru%2f%23%2fpay-success&SuccessURL=partner.qa.agentapp.ru%2f%23%2fpay-error%26orderId%3d0322090001560781461\",\n        \"parameters\": {},\n        \"pay_link_expiration\": \"2019-06-17T17:39:22.320024+03:00\"\n    },\n    \"integrated_company_code\": \"RENAISSANCE\"\n}"}],"_postman_id":"74183c64-ad9c-44bc-abfc-47202dcec505"},{"name":"v1 РГС. Подтверждение телефона","event":[{"listen":"test","script":{"id":"c4b0bee9-3459-465c-a280-f19d120207b1","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;"],"type":"text/javascript"}}],"id":"564f1f0c-9081-45a9-a33c-e43680be6b10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n  \"token\": 12344,\n  \"send_payment_link_to\": [\n  \t\"phone\", \"email\"\n  \t]\n}"},"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/{{agreement_id}}/results/pay","description":"<p>Если была выбрана страховая компания с кодом RGS (Росгосстрах), то после обновления контактных данных Страхователя ему на телефон придёт СМС от СК. Необходимо отправить код из сообщения в параметр \"token\". После проверки данных в СК придёт ссылка на оплату.\nЕсли необходимо повторить СМС отправляется \"token\": null\nОтвет аналогичен структуре ответа /insurants_contacts</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","agreements","{{agreement_id}}","results","pay"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"564f1f0c-9081-45a9-a33c-e43680be6b10"},{"name":"Проверка статуса котировки","event":[{"listen":"test","script":{"id":"c4b0bee9-3459-465c-a280-f19d120207b1","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;"],"type":"text/javascript"}}],"id":"701026bb-e649-42d1-9c5d-30bcb022c1a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":""},"url":"{{http_schema}}://{{host}}/v1/agreements/d9ad9c3c-4777-4807-ad6d-440cdd28ef6b/results/SOGLASIE/status","description":"<p>Метод предназначен для проверки статуса одобрения котировки в СК</p>\n\n<p>Вот возможные варианты для передачи:</p>\n\n<table>\n    <tr><td>ZETTA</td></tr>\n    <tr><td>RENAISSANCE</td></tr>\n    <tr><td>UGORIA</td></tr>\n    <tr><td>SOGLASIE</td></tr>\n</table>\n<p></p>\n\n<p>Носит исключительно информационный харакер и позволяет узнать статус одобрения до покупки данных СК. Применять после расчёта. Если возвращается <code>ping_status.status</code> = \"APPROVED\", то можно приступать к покупке <code>/buy</code></p>","urlObject":{"protocol":"{{http_schema}}","path":["v1","agreements","d9ad9c3c-4777-4807-ad6d-440cdd28ef6b","results","SOGLASIE","status"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"59fb1308-ff7d-4cde-8c12-bdcb23e8032b","name":"Пример отказа","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":""},"url":"{{http_schema}}://{{host}}/v1/agreements/{{agreement_id}}/results/{{ins_company_code}}/status"},"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"Указанные данные страхователя уже были использованы при оформлении другого договора. Пожалуйста, проверьте корректность указанных контактных данных\",\n  \"error_code\": null\n}"},{"id":"73569a66-f433-4079-8140-4529b0d041ba","name":"Пример удачной котировки","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8","disabled":false},{"key":"Accept","value":"application/json, text/plain, */*","disabled":false},{"key":"Authorization","value":"Token {{token}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"{{http_schema}}://{{host}}/v1/agreements/{{agreement_id}}/results/{{ins_company_id}}/buy"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, POST, HEAD, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Language","value":"ru","name":"Content-Language","description":"The language the content is in"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 24 Jul 2018 13:19:06 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx/1.10.2","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Accept, Accept-Language, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Tue Aug 07 2018 13:01:15 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"eosago-aggregator.2018-1.test.b2bpolis.ru","path":"/","secure":false,"value":"wg18fhkhk5fsbqcqy9btkvc191073cie","key":"sessionid"}],"responseTime":null,"body":"{\n  \"parameters\": {\n    \"premium\": \"5123.45\",\n    \"segment\": \"Санкт-Петербург\",\n    \"commission\": {\n      \"creator_premium\": \"1280.85\"\n    },\n    \"ping_status\": {\n      \"status\": \"APPROVED\",\n      \"message\": \"Договор одобрен страховой компанией\"\n    },\n    \"commission_value\": 1280.86,\n    \"result_parameters\": {\n      \"renPolicyId\": \"1332410\",\n      \"valid_from_days\": 1\n    },\n    \"integrated_agency_code\": \"RENAISSANCE\",\n    \"integrated_company_code\": \"RENAISSANCE\",\n    \"integrated_company_title\": \"Ренессанс\"\n  },\n  \"is_active\": true,\n  \"commission\": {\n    \"creator_premium\": \"1280.85\"\n  }\n}"}],"_postman_id":"701026bb-e649-42d1-9c5d-30bcb022c1a6"},{"name":"v2 Покупка полиса выбранной Страховой компании","event":[{"listen":"test","script":{"id":"c4b0bee9-3459-465c-a280-f19d120207b1","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;"],"type":"text/javascript"}}],"id":"340c61b5-724f-4a8a-8693-f9075eb57df0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":""},"url":"{{http_schema}}://{{host}}/v2/agreements/{{agreement_id}}/results/{{ins_company_code}}/buy","description":"<p>Для покупки полиса в параметрах необходимо указать code той Страховой Компании, полис которой пользователь хочет купить.</p>\n<p>Ответ может быть положительным. В данном случае:</p>\n<ul>\n<li>Договор в систему AgentApp переходит в статус PREISSUED (Предвыпуск)</li>\n<li>в блоке \"integrated_company_results\" остаётся только та Страховая Компания, по которой прошла покупка</li>\n<li>появляется параметр pay_parameters.pay_link со ссылкой на оплату в СК (если это компания РГС, то страхователю придёт код подтверждения на телефон. Чтобы его подтвердить, нужно выполнить запрос v2 /pay)</li>\n</ul>\n<p>По второй версии api не нужно после покупки  обновлять контактные данные Страхователя, телефон и email отправляются сразу при создании insured_objects (страхователя).</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["v2","agreements","{{agreement_id}}","results","{{ins_company_code}}","buy"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"8dc3d1be-4932-4d16-8b88-76602a95b76a","name":"Пример для всех СК кроме РГС","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8","disabled":false},{"key":"Accept","value":"application/json, text/plain, */*","disabled":false},{"key":"Authorization","value":"Token {{token}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/{{agreement_id}}/results/{{ins_company_id}}/buy"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, POST, HEAD, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Language","value":"ru","name":"Content-Language","description":"The language the content is in"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 24 Jul 2018 13:19:06 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx/1.10.2","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Accept, Accept-Language, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Tue Aug 07 2018 13:01:15 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"eosago-aggregator.2018-1.test.b2bpolis.ru","path":"/","secure":false,"value":"wg18fhkhk5fsbqcqy9btkvc191073cie","key":"sessionid"}],"responseTime":null,"body":"{\n    \"result\": 403,\n    \"calculation\": 558,\n    \"id\": 203,\n    \"valid_from\": \"2018-07-25T00:00:00\",\n    \"valid_to\": \"2019-07-24T23:59:00\",\n    \"status\": \"SAVED\",\n    \"integrated_company_results\": [\n        {\n            \"integrated_company_id\": 1,\n            \"integrated_company_title\": \"Альфа Страхование\",\n            \"premium\": \"9883.20\",\n            \"parameters\": {\n                \"ContractNumber\": \"0050100682\",\n                \"UPID\": \"b36625b5-1a38-4b24-9433-81788bfd8fa7\",\n                \"ContractId\": 57135387\n            }\n        }\n    ],\n    \"pay_parameters\": {\n        \"pay_link\": \"https://engine.paymentgate.ru/payment/merchants/alfa_insur2/payment_ru.html?mdOrder=1673ea01-4dc3-7db0-1673-ea0100009efa\"\n    }\n}"},{"id":"cddbdbe5-362a-4ae6-9031-c9807f6843f4","name":"Пример для РГС","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":""},"url":"{{http_schema}}://{{host}}/v2/agreements/{{agreement_id}}/results/{{ins_company_code}}/buy"},"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":"{\"pay_parameters\":{\"pay_link\":null,\"parameters\":{\"verification_status\":\"WAITING\"},\"pay_link_expiration\":\"2019-06-17T17:55:17.127860+03:00\"},\"integrated_company_code\":\"RGS\"}"}],"_postman_id":"340c61b5-724f-4a8a-8693-f9075eb57df0"},{"name":"v2 РГС. Подтверждение телефона","event":[{"listen":"test","script":{"id":"c4b0bee9-3459-465c-a280-f19d120207b1","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;"],"type":"text/javascript"}}],"id":"2be77188-9098-4846-acae-13d9bd454242","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n\t\"token\": 515553\n}"},"url":"{{http_schema}}://{{host}}/v2/agreements/{{agreement_id}}/results/pay","description":"<p>Если была выбрана страховая компания с кодом RGS (Росгосстрах), то после покупки полиса необходимо подтвердить телефон, после чего в ответе приходит ссылка на оплату.</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["v2","agreements","{{agreement_id}}","results","pay"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2be77188-9098-4846-acae-13d9bd454242"},{"name":"v1 Проверка оплаты и доступности ПФ","event":[{"listen":"test","script":{"id":"8c56d970-9200-4d06-abdc-2717947b3004","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"type":"text/javascript"}}],"id":"a7a88876-82a7-43d1-a658-30a00f4ea9d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":""},"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/{{agreement_id}}/results/check_payment","description":"<p>Положительный результат данного реста-проверки заключается в:</p>\n<ul>\n<li>статус = ISSUED</li>\n<li>в разделе documents находятся ссылка на полис</li>\n</ul>\n<p>или</p>\n<ul>\n<li>возврате новой ссылки на оплату согласно внутренней логике приложения (кончился срок действия)</li>\n</ul>\n<p>во всех остальных случаях договор считается не оплаченным</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","agreements","{{agreement_id}}","results","check_payment"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"98d4ef17-5673-4e93-8afd-443121766be1","name":"Возврат ссылки на проверку печатной формы","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":""},"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/{{agreement_id}}/results/check_payment"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 17 Jun 2019 14:43:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Vary","value":"Cookie"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"pay_parameters\": {\n        \"pay_link\": \"https://e-commerce.raiffeisen.ru/vsmc3ds/renins/3dsproxy_init.jsp?CountryCode=643&CurrencyCode=643&MerchantCity=MOSCOW&MerchantName=Renins&MerchantURL=http%3a%2f%2fwww.renins.com&MerchantID=000001680169001-80169001&PurchaseDesc=p1S8LJSeKM&PurchaseAmt=7400.54&HMAC=1FOwG8WhyktlT2z2d%2bCNCSaCX0lGBbS2836ONtlKu%2fU%3d&FailURL=partner.qa.agentapp.ru%2f%23%2fpay-success&SuccessURL=partner.qa.agentapp.ru%2f%23%2fpay-error%26orderId%3d0035507001560782597\",\n        \"parameters\": {},\n        \"pay_link_expiration\": \"2019-06-17T17:58:17.986784+03:00\"\n    },\n    \"integrated_company_code\": \"RENAISSANCE\"\n}"},{"id":"f39ef147-6973-484c-94ac-1be6f0aa376c","name":"Проверка оплаты и доступности ПФ","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8","disabled":false},{"key":"Accept","value":"application/json, text/plain, */*","disabled":false},{"key":"Authorization","value":"Token {{token}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"{{http_schema}}://{{host}}/{{api_version}}/agreements/{{agreement_id}}/check_payment"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, POST, HEAD, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Language","value":"ru","name":"Content-Language","description":"The language the content is in"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Thu, 26 Jul 2018 15:24:27 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx/1.10.2","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Accept, Accept-Language, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 09 2018 12:50:16 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"eosago-aggregator.2018-1.test.b2bpolis.ru","path":"/","secure":false,"value":"wg18fhkhk5fsbqcqy9btkvc191073cie","key":"sessionid"}],"responseTime":null,"body":"{\n  \"id\": \"4e3e7fc6-df37-4ea0-94c8-a36e5d0dac6b\",\n  \"valid_from\": \"2019-06-23T00:00:00+03:00\",\n  \"valid_to\": \"2020-06-22T23:59:59+03:00\",\n  \"insurant\": {\n    \"last_name\": \"Тарасов\",\n    \"first_name\": \"Дмитрий\",\n    \"patronymic\": \"Сергеевич\"\n  },\n  \"insurance_company\": \"РосГосСтрах\",\n  \"status\": \"ISSUED\",\n  \"creator\": {\n    \"last_name\": \"М\",\n    \"first_name\": \"Тест\",\n    \"patronymic\": \"\"\n  },\n  \"premium\": \"9150.2\",\n  \"department_title\": \"Умный Полис\",\n  \"created_at\": \"2019-06-17T14:44:29.623417+03:00\",\n  \"pay_parameters\": {\n    \"pay_link\": \"https://web.rbsuat.com/rgsb/merchants/rgs/payment_ru.html?mdOrder=f7b25001-9620-7ae0-a9ba-62a700002739\",\n    \"pay_link_expiration\": \"2019-06-17T15:08:50.208234+03:00\"\n  },\n  \"icresults\": [\n    {\n      \"parameters\": {\n        \"last_error_type\": \"ERROR\",\n        \"last_error_message\": \"Указанный E-mail является дубликатом другого адреса. Введите другой E-mail.\",\n        \"integrated_agency_code\": \"INGOSSTRAH_1\",\n        \"integrated_company_code\": \"INGOSSTRAH\",\n        \"last_error_message_description\": \"Указанный E_mail является дубликатом другого E_mail-адреса\"\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"premium\": \"9150.2\",\n        \"segment\": \"Москва\",\n        \"commission\": {\n          \"creator_premium\": \"1134.61\"\n        },\n        \"pay_parameters\": {\n          \"pay_link\": \"https://web.rbsuat.com/rgsb/merchants/rgs/payment_ru.html?mdOrder=f7b25001-9620-7ae0-a9ba-62a700002739\",\n          \"parameters\": {\n            \"OrderId\": \"f7b25001-9620-7ae0-a9ba-62a700002739\",\n            \"verification_status\": \"CONFIRMED\"\n          },\n          \"pay_link_expiration\": \"2019-06-17T15:08:50.208234+03:00\"\n        },\n        \"commission_value\": 1134.62,\n        \"result_parameters\": {\n          \"Number\": \"0550155734\",\n          \"CalculationId\": \"45e0f119-fd83-4ce5-ad28-6b7edda6a8cb\",\n          \"valid_from_days\": 4\n        },\n        \"verification_status\": \"CONFIRMED\",\n        \"integrated_agency_code\": \"RGS\",\n        \"integrated_company_code\": \"RGS\",\n        \"integrated_company_title\": \"Росгосстрах\"\n      },\n      \"is_active\": true,\n      \"commission\": {\n        \"creator_premium\": \"1134.61\"\n      }\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"DENY\",\n        \"last_error_message\": \"Расчёт заблокирован СК\",\n        \"integrated_agency_code\": \"TINKOFF\",\n        \"integrated_company_code\": \"TINKOFF\",\n        \"last_error_message_description\": null\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"premium\": 9150.2,\n        \"segment\": \"Москва\",\n        \"commission\": {\n          \"creator_premium\": \"2287.55\"\n        },\n        \"commission_value\": 2287.55,\n        \"result_parameters\": {\n          \"UPID\": \"0f98190b-b77c-4322-a531-42d675307ed0\",\n          \"OwnerId\": 2421583126,\n          \"DriverIds\": [\n            [\n              \"2059da4a-3de1-4729-bf64-464d8718a7ad\",\n              2421583310\n            ]\n          ],\n          \"ContractId\": 75230318,\n          \"InsurantId\": 2421583012,\n          \"ContractNumber\": \"0087668479\",\n          \"valid_from_days\": 1\n        },\n        \"integrated_agency_code\": \"ALPHA_STRAH_1\",\n        \"integrated_company_code\": \"ALPHA_STRAH\",\n        \"integrated_company_title\": \"АльфаСтрахование\"\n      },\n      \"is_active\": false,\n      \"commission\": {\n        \"creator_premium\": \"2287.55\"\n      }\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"DENY\",\n        \"last_error_message\": \"Расчёт заблокирован СК\",\n        \"integrated_agency_code\": \"ZETTA\",\n        \"integrated_company_code\": \"ZETTA\",\n        \"last_error_message_description\": null\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"IC_DENY\",\n        \"last_error_message\": \"IC: Нежелательный сегмент\",\n        \"integrated_agency_code\": \"SNGI\",\n        \"integrated_company_code\": \"SNGI\",\n        \"last_error_message_description\": null\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"TECH_ERROR\",\n        \"last_error_message\": \"Оформление невозможно.\",\n        \"integrated_agency_code\": \"UGORIA\",\n        \"integrated_company_code\": \"UGORIA\",\n        \"last_error_message_description\": null\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"ERROR\",\n        \"last_error_message\": \"Расчёт по компании временно отключён \",\n        \"integrated_agency_code\": \"SDS\",\n        \"integrated_company_code\": \"SDS\",\n        \"last_error_message_description\": null\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    },\n    {\n      \"parameters\": {\n        \"last_error_type\": \"IC_DENY\",\n        \"last_error_message\": \"IC: Нежелательный сегмент\",\n        \"integrated_agency_code\": \"RENAISSANCE\",\n        \"integrated_company_code\": \"RENAISSANCE\",\n        \"last_error_message_description\": null\n      },\n      \"is_active\": false,\n      \"commission\": {}\n    }\n  ],\n  \"insured_object\": \"05a5d570-89fc-4195-8529-39884958ce69\",\n  \"documents\": [\n    {\n      \"name\": \"Policy-4e3e7fc6-df37-4ea0-94c8-a36e5d0dac6b.pdf\",\n      \"url\": \"/media/policy_2019-6/Policy-4e3e7fc6-df37-4ea0-94c8-a36e5d0dac6b_jaRMgyk.pdf\"\n    }\n  ],\n  \"periods\": [],\n  \"calculation\": {\n    \"data\": {\n      \"kbm\": 1,\n      \"drivers\": [\n        {\n          \"last_name\": \"Тарасов\",\n          \"birth_date\": \"1990-01-01\",\n          \"credential\": [\n            {\n              \"number\": \"488116\",\n              \"series\": \"23АУ\",\n              \"issue_date\": \"2009-01-01\",\n              \"credential_type\": \"DRIVER_LICENSE\"\n            }\n          ],\n          \"first_name\": \"Дмитрий\",\n          \"patronymic\": \"Сергеевич\",\n          \"driving_experience_started\": \"2009-01-01\"\n        }\n      ],\n      \"car_type\": \"B\",\n      \"max_mass\": 0,\n      \"valid_to\": \"2020-06-22\",\n      \"valid_from\": \"2019-06-23\",\n      \"drivers_ids\": [\n        \"2059da4a-3de1-4729-bf64-464d8718a7ad\"\n      ],\n      \"seats_count\": 0,\n      \"engine_power\": 80.2,\n      \"insurant_type\": \"NATURAL_PERSON\",\n      \"is_multidrive\": false,\n      \"has_car_trailer\": true,\n      \"target_of_using\": \"PERSONAL\",\n      \"insurance_period\": 8,\n      \"owner_registration\": {\n        \"kt1\": 2,\n        \"kt2\": 1.2,\n        \"okato\": \"45000000000\",\n        \"code_kladr\": \"7700000000000\"\n      },\n      \"insurance_period_kterm\": \"1.00\",\n      \"insurance_period_month\": 12,\n      \"is_car_without_registration\": false\n    },\n    \"coeffs\": {\n      \"Kbm\": 1,\n      \"Klim\": 1,\n      \"Kterm\": 1,\n      \"S_min\": 6101.61,\n      \"Kengine\": 1.1,\n      \"Kexpage\": 1.01,\n      \"Kregion\": 2,\n      \"Ktrailer\": 1,\n      \"Tbase_max\": 4942,\n      \"Tbase_min\": 2746,\n      \"kbm_class\": \"3\"\n    },\n    \"premium\": 10981.12\n  },\n  \"eternal_payment_link\": null,\n  \"is_temporary_blocked\": false\n}"}],"_postman_id":"a7a88876-82a7-43d1-a658-30a00f4ea9d6"},{"name":"v2 Доступности ПФ","event":[{"listen":"test","script":{"id":"8c56d970-9200-4d06-abdc-2717947b3004","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"type":"text/javascript"}}],"id":"ba1fe9be-d1c7-4fb9-9e3a-382517a14ac1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":""},"url":"{{http_schema}}://{{host}}/v2/agreements/{{agreement_id}}/results/check_payment","description":"<p>Положительный результат данного реста-проверки заключается в:</p>\n<ul>\n<li>статус = ISSUED</li>\n<li>в разделе documents находятся ссылка на полис</li>\n</ul>\n<p>или</p>\n<ul>\n<li>400 c сообщением что полис не оплачен</li>\n</ul>\n","urlObject":{"protocol":"{{http_schema}}","path":["v2","agreements","{{agreement_id}}","results","check_payment"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"ba214e1f-5533-4ccd-893d-99f139be3937","name":"v2 Доступности ПФ (Договор оплачен)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":""},"url":"{{http_schema}}://{{host}}/v2/agreements/{{agreement_id}}/results/check_payment"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\"status\":\"ok\"}"},{"id":"e7683c33-9e6b-4a2d-8240-e528c315e137","name":"v2 Доступности ПФ (Договор ещё не оплачен)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":""},"url":"{{http_schema}}://{{host}}/v2/agreements/{{agreement_id}}/results/check_payment"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 17 Jun 2019 15:01:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"82"},{"key":"Connection","value":"keep-alive"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Vary","value":"Cookie"}],"cookie":[],"responseTime":null,"body":"{\"error\":\"Ошибка печати.\",\"error_description\":null,\"error_type\":\"TECH_ERROR\",\"error_code\":null}"}],"_postman_id":"ba1fe9be-d1c7-4fb9-9e3a-382517a14ac1"},{"name":"v2 Перегенерация ссылки на оплату","event":[{"listen":"test","script":{"id":"8c56d970-9200-4d06-abdc-2717947b3004","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"type":"text/javascript"}}],"id":"ad912726-56d1-4caf-aa96-27634c5e4f6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":""},"url":"{{http_schema}}://{{host}}/v2/agreements/{{agreement_id}}/results/pay","description":"<p>В случае удовлетворения условий по дате начала договора происходит перегенерация ссылки на оплату</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["v2","agreements","{{agreement_id}}","results","pay"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"742c938a-2bec-4215-9e19-fea0c4af4a7a","name":"v2 Перегенерация ссылки на оплату","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":""},"url":"{{http_schema}}://{{host}}/v2/agreements/{{agreement_id}}/results/pay"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 17 Jun 2019 15:05:25 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Vary","value":"Cookie"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"pay_parameters\": {\n        \"pay_link\": \"https://e-commerce.raiffeisen.ru/vsmc3ds/renins/3dsproxy_init.jsp?CountryCode=643&CurrencyCode=643&MerchantCity=MOSCOW&MerchantName=Renins&MerchantURL=http%3a%2f%2fwww.renins.com&MerchantID=000001680169001-80169001&PurchaseDesc=qzYLkFkMWY&PurchaseAmt=7400.54&HMAC=287MsTajI8LiqcTsJeSRliqh3csEzhDex6eMLYvq%2bMA%3d&FailURL=partner.qa.agentapp.ru%2f%23%2fpay-success&SuccessURL=partner.qa.agentapp.ru%2f%23%2fpay-error%26orderId%3d0722289001560783923\",\n        \"parameters\": {},\n        \"pay_link_expiration\": \"2019-06-17T18:20:25.098192+03:00\"\n    },\n    \"integrated_company_code\": \"RENAISSANCE\"\n}"},{"id":"938eef3e-addf-4e91-b0b8-213829c2afcd","name":"Пример когда ссылку нельзя перегенерировать ","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Accept","value":"application/json, text/plain, */*"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":""},"url":"{{http_schema}}://{{host}}/v2/agreements/{{agreement_id}}/results/pay"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 17 Jun 2019 15:08:10 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"175"},{"key":"Connection","value":"keep-alive"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Vary","value":"Cookie"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Договор аннулирован. Необходимо повторно получить тариф по страховой компании\",\n    \"error_code\": null\n}"}],"_postman_id":"ad912726-56d1-4caf-aa96-27634c5e4f6f"}],"id":"06909b71-ab22-4387-878a-75d434b5e3e7","_postman_id":"06909b71-ab22-4387-878a-75d434b5e3e7","description":""},{"name":"Справочники","item":[{"name":"v1 Марки автомобилей","event":[{"listen":"test","script":{"id":"613ab5c3-5527-4d83-9303-ed0fe39f85a6","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Response time is less than 500ms\"] = responseTime < 500;","","try {","   var resp_data = JSON.parse(responseBody),","       car_mark_id = resp_data[0].id;","       postman.setEnvironmentVariable(\"car_mark_id\", car_mark_id);","} catch(e) {","   console.log(e);","   console.log(resp_data);","   ","}"],"type":"text/javascript"}}],"id":"032322a7-bb59-4169-9167-a85af1e0781d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"}],"url":"{{http_schema}}://{{host}}/v1/dicts/car_marks","description":"<p>Справочник на основе РСА</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["v1","dicts","car_marks"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"16427d49-149b-471a-93ef-ecbcf35031cc","name":"Марка Авто","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","disabled":false},{"key":"Accept","value":"application/json, text/plain, */*","disabled":false}],"url":"{{http_schema}}://{{host}}/v1/dicts/car_marks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true","name":"Access-Control-Allow-Credentials","description":"Indicates whether or not the response to the request can be exposed when the credentials flag is true. When used as part of a response to a preflight request, this indicates whether or not the actual request can be made using credentials."},{"key":"Access-Control-Allow-Headers","value":"*","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, DELETE","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Access-Control-Max-Age","value":"86400","name":"Access-Control-Max-Age","description":"Indicates how long the results of a preflight request can be cached in seconds."},{"key":"Allow","value":"get","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Language","value":"ru","name":"Content-Language","description":"The language the content is in"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 24 Jul 2018 13:29:25 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx/1.10.2","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Authenticate, Accept, Accept-Language, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Tue Aug 07 2018 13:01:15 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"eosago-aggregator.2018-1.test.b2bpolis.ru","path":"/","secure":false,"value":"wg18fhkhk5fsbqcqy9btkvc191073cie","key":"sessionid"}],"responseTime":null,"body":"[\n    {\n        \"id\": 4542532,\n        \"title\": \"AC\"\n    },\n    {\n        \"id\": 4542536,\n        \"title\": \"Acura\"\n    },\n    {\n        \"id\": 4542552,\n        \"title\": \"Alfa Romeo\"\n    },\n    {\n        \"id\": 4542584,\n        \"title\": \"Alpina\"\n    },\n    {\n        \"id\": 4542599,\n        \"title\": \"Alpine\"\n    },\n    {\n\n\n        \"id\": 5000483,\n        \"title\": \"Aro\"\n    },\n    {\n\n\n        \"id\": 6000523,\n        \"title\": \"Asia\"\n    },\n    {\n\n\n        \"id\": 7021007,\n        \"title\": \"Aston Martin\"\n    },\n    {\n\n\n        \"id\": 8022013,\n        \"title\": \"Audi\"\n    },\n    {\n\n\n        \"id\": 9022158,\n        \"title\": \"Austin\"\n    },\n    {\n\n\n        \"id\": 10001203,\n        \"title\": \"Autobianchi\"\n    },\n    {\n\n\n        \"id\": 11001210,\n        \"title\": \"Ashok Leyland\"\n    },\n    {\n\n\n        \"id\": 12021005,\n        \"title\": \"Astra\"\n    },\n    {\n\n\n        \"id\": 13021009,\n        \"title\": \"AUTOSAN\"\n    },\n    {\n\n\n        \"id\": 14021011,\n        \"title\": \"Barkas\"\n    },\n    {\n\n\n        \"id\": 31020040,\n        \"title\": \"Bedford\"\n    },\n    {\n\n\n        \"id\": 32001271,\n        \"title\": \"Bentley\"\n    },\n    {\n\n\n        \"id\": 33022180,\n        \"title\": \"Bertone\"\n    },\n    {\n\n\n        \"id\": 34001305,\n        \"title\": \"Bitter\"\n    },\n    {\n\n\n        \"id\": 35001312,\n        \"title\": \"BMW\"\n    },\n    {\n\n\n        \"id\": 36022217,\n        \"title\": \"Bugatti\"\n    },\n    {\n\n\n        \"id\": 38001727,\n        \"title\": \"Buick\"\n    },\n    {\n\n\n        \"id\": 39021032,\n        \"title\": \"Beifang-Benchi\"\n    },\n    {\n\n\n        \"id\": 40021016,\n        \"title\": \"BMC\"\n    },\n    {\n\n\n        \"id\": 41021019,\n        \"title\": \"Bremach\"\n    },\n    {\n\n\n        \"id\": 42021025,\n        \"title\": \"BOVA\"\n    },\n    {\n\n\n        \"id\": 43021024,\n        \"title\": \"Brilliance\"\n    },\n    {\n\n\n        \"id\": 45022098,\n        \"title\": \"Cadillac\"\n    },\n    {\n\n\n        \"id\": 51022055,\n        \"title\": \"Callaway\"\n    },\n    {\n\n\n        \"id\": 52001881,\n        \"title\": \"Caterham\"\n    },\n    {\n\n\n        \"id\": 53001891,\n        \"title\": \"Chevrolet\"\n    },\n    {\n\n\n        \"id\": 54022179,\n        \"title\": \"Chrysler\"\n    },\n    {\n\n\n        \"id\": 55021936,\n        \"title\": \"Citroen\"\n    },\n    {\n\n\n        \"id\": 56021864,\n        \"title\": \"Coggiola\"\n    },\n    {\n\n\n        \"id\": 57002906,\n        \"title\": \"Hongyan\"\n    },\n    {\n\n\n        \"id\": 58021190,\n        \"title\": \"Changhe\"\n    },\n    {\n\n\n        \"id\": 59021054,\n        \"title\": \"Dacia\"\n    },\n    {\n\n\n        \"id\": 71021935,\n        \"title\": \"Daewoo\"\n    },\n    {\n\n\n        \"id\": 72021867,\n        \"title\": \"DAF\"\n    },\n    {\n\n\n        \"id\": 73021089,\n        \"title\": \"Daihatsu\"\n    },\n    {\n\n\n        \"id\": 74022052,\n        \"title\": \"Daimler\"\n    },\n    {\n\n\n        \"id\": 75003461,\n        \"title\": \"Dallas\"\n    },\n    {\n\n\n        \"id\": 76003467,\n        \"title\": \"De Lorean\"\n    },\n    {\n\n\n        \"id\": 77003471,\n        \"title\": \"De Tomaso\"\n    },\n    {\n\n\n        \"id\": 78020530,\n        \"title\": \"Dodge\"\n    },\n    {\n\n\n        \"id\": 79022038,\n        \"title\": \"DAC\"\n    },\n    {\n\n\n        \"id\": 80021076,\n        \"title\": \"Dennis\"\n    },\n    {\n\n\n        \"id\": 81021094,\n        \"title\": \"DFM (Dongfeng)\"\n    },\n    {\n\n\n        \"id\": 82021949,\n        \"title\": \"DROGMOLLER\"\n    },\n    {\n\n\n        \"id\": 84021112,\n        \"title\": \"Eagle\"\n    },\n    {\n\n\n        \"id\": 91020543,\n        \"title\": \"FAW\"\n    },\n    {\n\n\n        \"id\": 101021974,\n        \"title\": \"Ferrari\"\n    },\n    {\n\n\n        \"id\": 102022205,\n        \"title\": \"Fiat\"\n    },\n    {\n\n\n        \"id\": 103022201,\n        \"title\": \"Ford\"\n    },\n    {\n\n\n        \"id\": 104022148,\n        \"title\": \"FSO\"\n    },\n    {\n\n\n        \"id\": 105005591,\n        \"title\": \"Freightliner\"\n    },\n    {\n\n\n        \"id\": 106021156,\n        \"title\": \"FOTON\"\n    },\n    {\n\n\n        \"id\": 107021954,\n        \"title\": \"GMC\"\n    },\n    {\n\n\n        \"id\": 111021938,\n        \"title\": \"GINAF\"\n    },\n    {\n\n\n        \"id\": 112021161,\n        \"title\": \"Hindustan\"\n    },\n    {\n\n\n        \"id\": 121020680,\n        \"title\": \"Holden\"\n    },\n    {\n\n\n        \"id\": 122005897,\n        \"title\": \"Honda\"\n    },\n    {\n\n\n        \"id\": 123022047,\n        \"title\": \"HUMMER\"\n    },\n    {\n\n\n        \"id\": 124021462,\n        \"title\": \"Hyundai\"\n    },\n    {\n\n\n        \"id\": 125022192,\n        \"title\": \"Hino\"\n    },\n    {\n\n\n        \"id\": 126022010,\n        \"title\": \"Infiniti\"\n    },\n    {\n\n\n        \"id\": 141021872,\n        \"title\": \"Innocenti\"\n    },\n    {\n\n\n        \"id\": 142020333,\n        \"title\": \"Irmscher\"\n    },\n    {\n\n\n        \"id\": 143006687,\n        \"title\": \"Isdera\"\n    },\n    {\n\n\n        \"id\": 144006694,\n        \"title\": \"Isuzu\"\n    },\n    {\n\n\n        \"id\": 145022150,\n        \"title\": \"International\"\n    },\n    {\n\n\n        \"id\": 146021529,\n        \"title\": \"Iran Khodro\"\n    },\n    {\n\n\n        \"id\": 147021222,\n        \"title\": \"IVECO\"\n    },\n    {\n\n\n        \"id\": 148021897,\n        \"title\": \"IKARUS\"\n    },\n    {\n\n\n        \"id\": 149021212,\n        \"title\": \"IKARBUS\"\n    },\n    {\n\n\n        \"id\": 150021211,\n        \"title\": \"Jaguar\"\n    },\n    {\n\n\n        \"id\": 161022206,\n        \"title\": \"Jeep\"\n    },\n    {\n\n\n        \"id\": 162022136,\n        \"title\": \"Jensen\"\n    },\n    {\n\n\n        \"id\": 163007109,\n        \"title\": \"Jelcz\"\n    },\n    {\n\n\n        \"id\": 164021237,\n        \"title\": \"Kia\"\n    },\n    {\n\n\n        \"id\": 181022142,\n        \"title\": \"Kenworth\"\n    },\n    {\n\n\n        \"id\": 182021244,\n        \"title\": \"Geely\"\n    },\n    {\n\n\n        \"id\": 185022174,\n        \"title\": \"ZX\"\n    },\n    {\n\n\n        \"id\": 186020563,\n        \"title\": \"Lamborghini\"\n    },\n    {\n\n\n        \"id\": 202021980,\n        \"title\": \"Lancia\"\n    },\n    {\n\n\n        \"id\": 203020603,\n        \"title\": \"Land Rover\"\n    },\n    {\n\n\n        \"id\": 204022020,\n        \"title\": \"LDV\"\n    },\n    {\n\n\n        \"id\": 205021253,\n        \"title\": \"Lexus\"\n    },\n    {\n\n\n        \"id\": 206022004,\n        \"title\": \"Lincoln\"\n    },\n    {\n\n\n        \"id\": 207021569,\n        \"title\": \"Lotus\"\n    },\n    {\n\n\n        \"id\": 208020637,\n        \"title\": \"LTI\"\n    },\n    {\n\n\n        \"id\": 209020639,\n        \"title\": \"LIFAN\"\n    },\n    {\n\n\n        \"id\": 211021254,\n        \"title\": \"Lifan\"\n    },\n    {\n\n\n        \"id\": 211022102,\n        \"title\": \"Mahindra\"\n    },\n    {\n\n\n        \"id\": 221020640,\n        \"title\": \"Marcos\"\n    },\n    {\n\n\n        \"id\": 222020641,\n        \"title\": \"Maruti\"\n    },\n    {\n\n\n        \"id\": 223007959,\n        \"title\": \"Maserati\"\n    },\n    {\n\n\n        \"id\": 224022212,\n        \"title\": \"Maybach\"\n    },\n    {\n\n\n        \"id\": 225008042,\n        \"title\": \"Mazda\"\n    },\n    {\n\n\n        \"id\": 226021668,\n        \"title\": \"McLaren\"\n    },\n    {\n\n\n        \"id\": 228022122,\n        \"title\": \"Mega\"\n    },\n    {\n\n\n        \"id\": 229008363,\n        \"title\": \"Mercedes-Benz\"\n    },\n    {\n\n\n        \"id\": 230022216,\n        \"title\": \"Mercury\"\n    },\n    {\n\n\n        \"id\": 231022039,\n        \"title\": \"Metrocab\"\n    },\n    {\n\n\n        \"id\": 232020318,\n        \"title\": \"MG\"\n    },\n    {\n\n\n        \"id\": 233022048,\n        \"title\": \"Minelli\"\n    },\n    {\n\n\n        \"id\": 234009321,\n        \"title\": \"Mini\"\n    },\n    {\n\n\n        \"id\": 235022181,\n        \"title\": \"Mitsubishi\"\n    },\n    {\n\n\n        \"id\": 236021982,\n        \"title\": \"Morgan\"\n    },\n    {\n\n\n        \"id\": 237009902,\n        \"title\": \"Morris\"\n    },\n    {\n\n\n        \"id\": 238009908,\n        \"title\": \"Mack\"\n    },\n    {\n\n\n        \"id\": 239021261,\n        \"title\": \"MAN\"\n    },\n    {\n\n\n        \"id\": 240021263,\n        \"title\": \"Multicar\"\n    },\n    {\n\n\n        \"id\": 241020529,\n        \"title\": \"Nissan\"\n    },\n    {\n\n\n        \"id\": 261022186,\n        \"title\": \"NEOPLAN\"\n    },\n    {\n\n\n        \"id\": 262021280,\n        \"title\": \"Oldsmobile\"\n    },\n    {\n\n\n        \"id\": 271020626,\n        \"title\": \"Opel\"\n    },\n    {\n\n\n        \"id\": 272021693,\n        \"title\": \"Osca\"\n    },\n    {\n\n\n        \"id\": 273011543,\n        \"title\": \"OAF\"\n    },\n    {\n\n\n        \"id\": 274021290,\n        \"title\": \"Otosan\"\n    },\n    {\n\n\n        \"id\": 275021295,\n        \"title\": \"Pagani\"\n    },\n    {\n\n\n        \"id\": 291011579,\n        \"title\": \"Panoz\"\n    },\n    {\n\n\n        \"id\": 292011584,\n        \"title\": \"Paykan\"\n    },\n    {\n\n\n        \"id\": 293011587,\n        \"title\": \"Perodua\"\n    },\n    {\n\n\n        \"id\": 294011595,\n        \"title\": \"Peugeot\"\n    },\n    {\n\n\n        \"id\": 295021933,\n        \"title\": \"Plymouth\"\n    },\n    {\n\n\n        \"id\": 296012184,\n        \"title\": \"Pontiac\"\n    },\n    {\n\n\n        \"id\": 297020104,\n        \"title\": \"Porsche\"\n    },\n    {\n\n\n        \"id\": 298022182,\n        \"title\": \"Proton\"\n    },\n    {\n\n\n        \"id\": 299020108,\n        \"title\": \"PUCH\"\n    },\n    {\n\n\n        \"id\": 300012495,\n        \"title\": \"Puch\"\n    },\n    {\n\n\n        \"id\": 300020112,\n        \"title\": \"Peterbilt\"\n    },\n    {\n\n\n        \"id\": 301021297,\n        \"title\": \"PEGASO\"\n    },\n    {\n\n\n        \"id\": 303021296,\n        \"title\": \"Qvale\"\n    },\n    {\n\n\n        \"id\": 321012517,\n        \"title\": \"Renault\"\n    },\n    {\n\n\n        \"id\": 341022207,\n        \"title\": \"Rolls-Royce\"\n    },\n    {\n\n\n        \"id\": 342022203,\n        \"title\": \"Ronart\"\n    },\n    {\n\n\n        \"id\": 343013178,\n        \"title\": \"Rover\"\n    },\n    {\n\n\n        \"id\": 344022199,\n        \"title\": \"Saab\"\n    },\n    {\n\n\n        \"id\": 361021307,\n        \"title\": \"Saleen\"\n    },\n    {\n\n\n        \"id\": 362013531,\n        \"title\": \"Samsung\"\n    },\n    {\n\n\n        \"id\": 363022100,\n        \"title\": \"Saturn\"\n    },\n    {\n\n\n        \"id\": 364013570,\n        \"title\": \"Seat\"\n    },\n    {\n\n\n        \"id\": 365021564,\n        \"title\": \"Skoda\"\n    },\n    {\n\n\n        \"id\": 366021559,\n        \"title\": \"Smart\"\n    },\n    {\n\n\n        \"id\": 367021325,\n        \"title\": \"Spectre\"\n    },\n    {\n\n\n        \"id\": 368013944,\n        \"title\": \"Spyker\"\n    },\n    {\n\n\n        \"id\": 369013949,\n        \"title\": \"SsangYong\"\n    },\n    {\n\n\n        \"id\": 370021880,\n        \"title\": \"Subaru\"\n    },\n    {\n\n\n        \"id\": 371022049,\n        \"title\": \"Suzuki\"\n    },\n    {\n\n\n        \"id\": 372022153,\n        \"title\": \"Scania\"\n    },\n    {\n\n\n        \"id\": 373021311,\n        \"title\": \"Sisu\"\n    },\n    {\n\n\n        \"id\": 374021322,\n        \"title\": \"Star\"\n    },\n    {\n\n\n        \"id\": 375021334,\n        \"title\": \"Sterling\"\n    },\n    {\n\n\n        \"id\": 376021335,\n        \"title\": \"SETRA\"\n    },\n    {\n\n\n        \"id\": 377021316,\n        \"title\": \"SOLARIS\"\n    },\n    {\n\n\n        \"id\": 378021326,\n        \"title\": \"STEYR\"\n    },\n    {\n\n\n        \"id\": 379021337,\n        \"title\": \"Talbot\"\n    },\n    {\n\n\n        \"id\": 391020194,\n        \"title\": \"Tata\"\n    },\n    {\n\n\n        \"id\": 392021348,\n        \"title\": \"Tofas\"\n    },\n    {\n\n\n        \"id\": 393020195,\n        \"title\": \"Tonggong\"\n    },\n    {\n\n\n        \"id\": 394014691,\n        \"title\": \"Toyota\"\n    },\n    {\n\n\n        \"id\": 395022139,\n        \"title\": \"Trabant\"\n    },\n    {\n\n\n        \"id\": 396015462,\n        \"title\": \"Triumph\"\n    },\n    {\n\n\n        \"id\": 397015517,\n        \"title\": \"TVR\"\n    },\n    {\n\n\n        \"id\": 398020233,\n        \"title\": \"Tatra\"\n    },\n    {\n\n\n        \"id\": 399021350,\n        \"title\": \"Tiema\"\n    },\n    {\n\n\n        \"id\": 400021353,\n        \"title\": \"Vauxhall\"\n    },\n    {\n\n\n        \"id\": 421016110,\n        \"title\": \"Vector\"\n    },\n    {\n\n\n        \"id\": 422020232,\n        \"title\": \"Venturi\"\n    },\n    {\n\n\n        \"id\": 423016126,\n        \"title\": \"Vespa\"\n    },\n    {\n\n\n        \"id\": 424016134,\n        \"title\": \"Volkswagen\"\n    },\n    {\n\n\n        \"id\": 425021881,\n        \"title\": \"Volvo\"\n    },\n    {\n\n\n        \"id\": 426021645,\n        \"title\": \"VANHOOL\"\n    },\n    {\n\n\n        \"id\": 427021370,\n        \"title\": \"Wartburg\"\n    },\n    {\n\n\n        \"id\": 451017319,\n        \"title\": \"Westfield\"\n    },\n    {\n\n\n        \"id\": 452017324,\n        \"title\": \"Wiesman\"\n    },\n    {\n\n\n        \"id\": 453017328,\n        \"title\": \"Western Star\"\n    },\n    {\n\n\n        \"id\": 454021382,\n        \"title\": \"Zastava\"\n    },\n    {\n\n\n        \"id\": 471017358,\n        \"title\": \"Yuejin\"\n    },\n    {\n\n\n        \"id\": 491022211,\n        \"title\": \"ВАЗ/Lada\"\n    },\n    {\n\n\n        \"id\": 501022190,\n        \"title\": \"ВИС\"\n    },\n    {\n\n\n        \"id\": 502022030,\n        \"title\": \"ВЗТМ\"\n    },\n    {\n\n\n        \"id\": 503021396,\n        \"title\": \"ВМЗ\"\n    },\n    {\n\n\n        \"id\": 504021397,\n        \"title\": \"БЗКТ\"\n    },\n    {\n\n\n        \"id\": 511021392,\n        \"title\": \"ГАЗ\"\n    },\n    {\n\n\n        \"id\": 521022204,\n        \"title\": \"ГолАЗ\"\n    },\n    {\n\n\n        \"id\": 522021407,\n        \"title\": \"DONINVEST\"\n    },\n    {\n\n\n        \"id\": 541017776,\n        \"title\": \"ИЖ\"\n    },\n    {\n\n\n        \"id\": 561020856,\n        \"title\": \"ИВЕКО-УралАЗ\"\n    },\n    {\n\n\n        \"id\": 562021430,\n        \"title\": \"ЗАЗ\"\n    },\n    {\n\n\n        \"id\": 581022019,\n        \"title\": \"ЗИЛ\"\n    },\n    {\n\n\n        \"id\": 582021429,\n        \"title\": \"КамАЗ\"\n    },\n    {\n\n\n        \"id\": 601021433,\n        \"title\": \"KЗКТ\"\n    },\n    {\n\n\n        \"id\": 602021250,\n        \"title\": \"КрАЗ\"\n    },\n    {\n\n\n        \"id\": 603021434,\n        \"title\": \"КАВЗ\"\n    },\n    {\n\n\n        \"id\": 604021431,\n        \"title\": \"ЛуАЗ\"\n    },\n    {\n\n\n        \"id\": 621022176,\n        \"title\": \"Лаз\"\n    },\n    {\n\n\n        \"id\": 622021435,\n        \"title\": \"ЛиАЗ\"\n    },\n    {\n\n\n        \"id\": 623021629,\n        \"title\": \"Москвич\"\n    },\n    {\n\n\n        \"id\": 641021503,\n        \"title\": \"МАЗ\"\n    },\n    {\n\n\n        \"id\": 642021438,\n        \"title\": \"МАЗ-МАN\"\n    },\n    {\n\n\n        \"id\": 643021439,\n        \"title\": \"МЗКТ\"\n    },\n    {\n\n\n        \"id\": 644021441,\n        \"title\": \"МАРЗ\"\n    },\n    {\n\n\n        \"id\": 645021440,\n        \"title\": \"НефАЗ\"\n    },\n    {\n\n\n        \"id\": 648022200,\n        \"title\": \"ПАЗ\"\n    },\n    {\n\n\n        \"id\": 651021443,\n        \"title\": \"РАФ\"\n    },\n    {\n\n\n        \"id\": 661018072,\n        \"title\": \"СеАЗ\"\n    },\n    {\n\n\n        \"id\": 681018078,\n        \"title\": \"УАЗ\"\n    },\n    {\n\n\n        \"id\": 701022168,\n        \"title\": \"УАМЗ\"\n    },\n    {\n\n\n        \"id\": 702021446,\n        \"title\": \"Урал\"\n    },\n    {\n\n\n        \"id\": 703021498,\n        \"title\": \"Beijing\"\n    },\n    {\n\n\n        \"id\": 704021017,\n        \"title\": \"Bristol\"\n    },\n    {\n\n\n        \"id\": 705021031,\n        \"title\": \"BYD\"\n    },\n    {\n\n\n        \"id\": 706022137,\n        \"title\": \"Chery\"\n    },\n    {\n\n\n        \"id\": 707021977,\n        \"title\": \"Cizeta\"\n    },\n    {\n\n\n        \"id\": 708020699,\n        \"title\": \"Derways\"\n    },\n    {\n\n\n        \"id\": 709021100,\n        \"title\": \"Great Wall\"\n    },\n    {\n\n\n        \"id\": 711022169,\n        \"title\": \"Invicta\"\n    },\n    {\n\n\n        \"id\": 712020706,\n        \"title\": \"CCHV\"\n    },\n    {\n\n\n        \"id\": 713021039,\n        \"title\": \"Koenigsegg\"\n    },\n    {\n\n\n        \"id\": 715020714,\n        \"title\": \"Mitsuoka\"\n    },\n    {\n\n\n        \"id\": 717020721,\n        \"title\": \"MonteCarlo\"\n    },\n    {\n\n\n        \"id\": 718020722,\n        \"title\": \"Noble\"\n    },\n    {\n\n\n        \"id\": 719021288,\n        \"title\": \"Premier\"\n    },\n    {\n\n\n        \"id\": 720020724,\n        \"title\": \"Puma\"\n    },\n    {\n\n\n        \"id\": 721020726,\n        \"title\": \"Reliant\"\n    },\n    {\n\n\n        \"id\": 722020727,\n        \"title\": \"Scion\"\n    },\n    {\n\n\n        \"id\": 723021315,\n        \"title\": \"Tianma\"\n    },\n    {\n\n\n        \"id\": 725020728,\n        \"title\": \"Tianye\"\n    },\n    {\n\n\n        \"id\": 726020730,\n        \"title\": \"Xin Kai\"\n    },\n    {\n\n\n        \"id\": 729020733,\n        \"title\": \"Adler\"\n    },\n    {\n\n\n        \"id\": 744020999,\n        \"title\": \"Andare\"\n    },\n    {\n\n\n        \"id\": 745021003,\n        \"title\": \"Avia\"\n    },\n    {\n\n\n        \"id\": 746021012,\n        \"title\": \"Baltijas Dzips\"\n    },\n    {\n\n\n        \"id\": 747021013,\n        \"title\": \"BAW\"\n    },\n    {\n\n\n        \"id\": 748022178,\n        \"title\": \"Blonell\"\n    },\n    {\n\n\n        \"id\": 749021018,\n        \"title\": \"Camc\"\n    },\n    {\n\n\n        \"id\": 751021038,\n        \"title\": \"Changan\"\n    },\n    {\n\n\n        \"id\": 752021999,\n        \"title\": \"Changfeng\"\n    },\n    {\n\n\n        \"id\": 753021053,\n        \"title\": \"Cord\"\n    },\n    {\n\n\n        \"id\": 754021075,\n        \"title\": \"Dadi\"\n    },\n    {\n\n\n        \"id\": 755021083,\n        \"title\": \"Daewoo-Avia\"\n    },\n    {\n\n\n        \"id\": 756021087,\n        \"title\": \"De soto\"\n    },\n    {\n\n\n        \"id\": 757021093,\n        \"title\": \"Donkervoot\"\n    },\n    {\n\n\n        \"id\": 758021111,\n        \"title\": \"Fuqi\"\n    },\n    {\n\n\n        \"id\": 759021157,\n        \"title\": \"Haima\"\n    },\n    {\n\n\n        \"id\": 760022025,\n        \"title\": \"Hania\"\n    },\n    {\n\n\n        \"id\": 761021186,\n        \"title\": \"Howo\"\n    },\n    {\n\n\n        \"id\": 762021191,\n        \"title\": \"Huanghai\"\n    },\n    {\n\n\n        \"id\": 763021196,\n        \"title\": \"Huanghe\"\n    },\n    {\n\n\n        \"id\": 764021197,\n        \"title\": \"Hurtan\"\n    },\n    {\n\n\n        \"id\": 765021201,\n        \"title\": \"Hymer\"\n    },\n    {\n\n\n        \"id\": 766021205,\n        \"title\": \"JAC\"\n    },\n    {\n\n\n        \"id\": 769022210,\n        \"title\": \"JinBei\"\n    },\n    {\n\n\n        \"id\": 770021537,\n        \"title\": \"JMC\"\n    },\n    {\n\n\n        \"id\": 771021962,\n        \"title\": \"Lublin\"\n    },\n    {\n\n\n        \"id\": 773021260,\n        \"title\": \"Mudan\"\n    },\n    {\n\n\n        \"id\": 774021279,\n        \"title\": \"North Benz\"\n    },\n    {\n\n\n        \"id\": 775021289,\n        \"title\": \"Shaanxi\"\n    },\n    {\n\n\n        \"id\": 776021317,\n        \"title\": \"Shen Long\"\n    },\n    {\n\n\n        \"id\": 777021318,\n        \"title\": \"Shuanghuan\"\n    },\n    {\n\n\n        \"id\": 778021319,\n        \"title\": \"Shuchi\"\n    },\n    {\n\n\n        \"id\": 779021320,\n        \"title\": \"Sinotruck\"\n    },\n    {\n\n\n        \"id\": 780021321,\n        \"title\": \"Skoda-Liaz\"\n    },\n    {\n\n\n        \"id\": 781021323,\n        \"title\": \"Soueast\"\n    },\n    {\n\n\n        \"id\": 782021330,\n        \"title\": \"TAM\"\n    },\n    {\n\n\n        \"id\": 783021346,\n        \"title\": \"Tata-Daewoo\"\n    },\n    {\n\n\n        \"id\": 784021349,\n        \"title\": \"Temsa\"\n    },\n    {\n\n\n        \"id\": 785021351,\n        \"title\": \"Terberg\"\n    },\n    {\n\n\n        \"id\": 786021352,\n        \"title\": \"Yutong\"\n    },\n    {\n\n\n        \"id\": 787021388,\n        \"title\": \"Zhong Tong\"\n    },\n    {\n\n\n        \"id\": 788021390,\n        \"title\": \"Zonda\"\n    },\n    {\n\n\n        \"id\": 789021391,\n        \"title\": \"ГРАЗ\"\n    },\n    {\n\n\n        \"id\": 790021408,\n        \"title\": \"Другая марка (иностранные мотоциклы и мотороллеры)\"\n    },\n    {\n\n\n        \"id\": 791021409,\n        \"title\": \"Другая марка (отечественные мотоциклы и мотороллеры)\"\n    },\n    {\n\n\n        \"id\": 792021410,\n        \"title\": \"Другая марка (иностранный прицеп к грузовому автомобилю)\"\n    },\n    {\n\n\n        \"id\": 793021411,\n        \"title\": \"Другая марка (иностранный прицеп к легковому автомобилю)\"\n    },\n    {\n\n\n        \"id\": 794021412,\n        \"title\": \"Другая марка (иностранный прицеп к спецтехнике)\"\n    },\n    {\n\n\n        \"id\": 795021413,\n        \"title\": \"Другая марка (отечественный прицеп к грузовому автомобилю)\"\n    },\n    {\n\n\n        \"id\": 796021414,\n        \"title\": \"Другая марка (отечественный прицеп к легковому автомобилю)\"\n    },\n    {\n\n\n        \"id\": 797021415,\n        \"title\": \"Другая марка (отечественный прицеп к спецтехнике)\"\n    },\n    {\n\n\n        \"id\": 798021416,\n        \"title\": \"Другая марка (иностранная спецтехника)\"\n    },\n    {\n\n\n        \"id\": 799021417,\n        \"title\": \"Другая марка (отечественная спецтехника)\"\n    },\n    {\n\n\n        \"id\": 800021418,\n        \"title\": \"Другая марка (иностранный трамвай)\"\n    },\n    {\n\n\n        \"id\": 801021419,\n        \"title\": \"Другая марка (отечественный трамвай)\"\n    },\n    {\n\n\n        \"id\": 802021420,\n        \"title\": \"Другая марка (иностранный троллейбус)\"\n    },\n    {\n\n\n        \"id\": 803021421,\n        \"title\": \"Другая марка (отечественный троллейбус)\"\n    },\n    {\n\n\n        \"id\": 804021422,\n        \"title\": \"Семар\"\n    },\n    {\n\n\n        \"id\": 805021445,\n        \"title\": \"Gonow\"\n    },\n    {\n\n\n        \"id\": 806021175,\n        \"title\": \"Golden Dragon\"\n    },\n    {\n\n\n        \"id\": 807021173,\n        \"title\": \"GEO\"\n    },\n    {\n\n\n        \"id\": 808021453,\n        \"title\": \"HAFEI\"\n    },\n    {\n\n\n        \"id\": 809021458,\n        \"title\": \"Богдан\"\n    },\n    {\n\n\n        \"id\": 810021972,\n        \"title\": \"Тагаз\"\n    },\n    {\n\n\n        \"id\": 811021719,\n        \"title\": \"Vortex\"\n    },\n    {\n\n\n        \"id\": 812021602,\n        \"title\": \"Maxus\"\n    },\n    {\n\n\n        \"id\": 813021520,\n        \"title\": \"Higer\"\n    },\n    {\n\n\n        \"id\": 814021518,\n        \"title\": \"Волжанин\"\n    },\n    {\n\n\n        \"id\": 815021525,\n        \"title\": \"IFA\"\n    },\n    {\n\n\n        \"id\": 816021688,\n        \"title\": \"Land Mark\"\n    },\n    {\n\n\n        \"id\": 817021551,\n        \"title\": \"Другая марка (иностранный легковой)\"\n    },\n    {\n\n\n        \"id\": 819000003,\n        \"title\": \"Другая марка (отечественный легковой)\"\n    },\n    {\n\n\n        \"id\": 820000004,\n        \"title\": \"Другая марка (иностранный автобус)\"\n    },\n    {\n\n\n        \"id\": 821000006,\n        \"title\": \"Другая марка (иностранный грузовой)\"\n    },\n    {\n\n\n        \"id\": 822000007,\n        \"title\": \"Другая марка (отечественный грузовой)\"\n    },\n    {\n\n\n        \"id\": 823000008,\n        \"title\": \"Другая марка (отечественный автобус)\"\n    },\n    {\n\n\n        \"id\": 824000009,\n        \"title\": \"Karosa\"\n    },\n    {\n\n\n        \"id\": 825021574,\n        \"title\": \"TADANO FAUN\"\n    },\n    {\n\n\n        \"id\": 826021625,\n        \"title\": \"САЗ\"\n    },\n    {\n\n\n        \"id\": 827021627,\n        \"title\": \"ЕрАз\"\n    },\n    {\n\n\n        \"id\": 828021639,\n        \"title\": \"KING LONG\"\n    },\n    {\n\n\n        \"id\": 829021646,\n        \"title\": \"Mitsubishi FUSO\"\n    },\n    {\n\n\n        \"id\": 830022172,\n        \"title\": \"Гуран\"\n    },\n    {\n\n\n        \"id\": 831021865,\n        \"title\": \"XCMG\"\n    },\n    {\n\n\n        \"id\": 832021708,\n        \"title\": \"Zoomlion\"\n    },\n    {\n\n\n        \"id\": 833021713,\n        \"title\": \"Shacman\"\n    },\n    {\n\n\n        \"id\": 834021716,\n        \"title\": \"Luxgen\"\n    },\n    {\n\n\n        \"id\": 837022033,\n        \"title\": \"Бронто\"\n    },\n    {\n\n\n        \"id\": 838021942,\n        \"title\": \"Willis\"\n    },\n    {\n\n\n        \"id\": 839021945,\n        \"title\": \"Autocaravans Rimor\"\n    },\n    {\n\n\n        \"id\": 840021955,\n        \"title\": \"Datsun\"\n    },\n    {\n\n\n        \"id\": 841022040,\n        \"title\": \"Adria\"\n    },\n    {\n\n\n        \"id\": 842021966,\n        \"title\": \"Liebherr\"\n    },\n    {\n\n\n        \"id\": 843021985,\n        \"title\": \"Тонар\"\n    },\n    {\n\n\n        \"id\": 844021997,\n        \"title\": \"Hawtai\"\n    },\n    {\n\n\n        \"id\": 845022005,\n        \"title\": \"Yulon\"\n    },\n    {\n\n\n        \"id\": 846022035,\n        \"title\": \"Buerstner\"\n    },\n    {\n\n\n        \"id\": 847022133,\n        \"title\": \"Daimler-Benz\"\n    },\n    {\n\n\n        \"id\": 848022194,\n        \"title\": \"JBC\"\n    },\n    {\n\n\n        \"id\": 849022166,\n        \"title\": \"Haval\"\n    },\n    {\n\n        \"id\": 851022171,\n        \"title\": \"Knaus\"\n    },\n    {\n\n\n        \"id\": 852022143,\n        \"title\": \"Xgo\"\n    },\n    {\n        \"id\": 853022144,\n        \"title\": \"Volgabus\"\n    },\n    {\n\n\n        \"id\": 854022152,\n        \"title\": \"SMA\"\n    },\n    {\n\n\n        \"id\": 855022154,\n        \"title\": \"Ravon\"\n    },\n    {\n\n\n        \"id\": 856022213,\n        \"title\": \"Magirus-Deutz\"\n    },\n    {\n\n\n        \"id\": 857022185,\n        \"title\": \"Sany\"\n    },\n    {\n\n\n        \"id\": 859022193,\n        \"title\": \"Zotye\"\n    },\n    {\n\n\n        \"id\": 860022196,\n        \"title\": \"GAC\"\n    }\n]\n"}],"_postman_id":"032322a7-bb59-4169-9167-a85af1e0781d"},{"name":"v1 Одна марка по id","event":[{"listen":"test","script":{"id":"613ab5c3-5527-4d83-9303-ed0fe39f85a6","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Response time is less than 500ms\"] = responseTime < 500;","","try {","   var resp_data = JSON.parse(responseBody),","       car_mark_id = resp_data[0].id;","       postman.setEnvironmentVariable(\"car_mark_id\", car_mark_id);","} catch(e) {","   console.log(e);","   console.log(resp_data);","   ","}"],"type":"text/javascript"}}],"id":"3a6871c0-5371-425b-8199-60c7d698447d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"}],"url":"{{http_schema}}://{{host}}/v1/dicts/car_marks/{{car_mark_id}}","urlObject":{"protocol":"{{http_schema}}","path":["v1","dicts","car_marks","{{car_mark_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"a523b315-9414-4819-9a57-924472bc2d5f","name":"Марка Авто","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"}],"url":"{{http_schema}}://{{host}}/v1/dicts/car_marks/{{car_mark_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true","name":"Access-Control-Allow-Credentials","description":"Indicates whether or not the response to the request can be exposed when the credentials flag is true. When used as part of a response to a preflight request, this indicates whether or not the actual request can be made using credentials."},{"key":"Access-Control-Allow-Headers","value":"*","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, DELETE","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Access-Control-Max-Age","value":"86400","name":"Access-Control-Max-Age","description":"Indicates how long the results of a preflight request can be cached in seconds."},{"key":"Allow","value":"get","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Language","value":"ru","name":"Content-Language","description":"The language the content is in"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 24 Jul 2018 13:29:25 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx/1.10.2","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Authenticate, Accept, Accept-Language, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Tue Aug 07 2018 13:01:15 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"eosago-aggregator.2018-1.test.b2bpolis.ru","path":"/","secure":false,"value":"wg18fhkhk5fsbqcqy9btkvc191073cie","key":"sessionid"}],"responseTime":null,"body":"\n    {\n        \"id\": 4542532,\n        \"title\": \"AC\"\n    }"}],"_postman_id":"3a6871c0-5371-425b-8199-60c7d698447d"},{"name":"v1 Модель Авто","event":[{"listen":"test","script":{"id":"d35cf41c-7a98-4dba-942f-6126661a745f","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Response time is less than 500ms\"] = responseTime < 500;","","try {","   var resp_data = JSON.parse(responseBody),","       car_model_id = resp_data[0].id;","       postman.setEnvironmentVariable(\"car_model_id\", car_model_id);","} catch(e) {","   console.log(e);","   console.log(resp_data);","   ","}"],"type":"text/javascript"}}],"id":"b2023da7-edcd-4dcc-8e7a-e1f8d8527fed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"}],"url":"{{http_schema}}://{{host}}/v1/dicts/car_models?car_mark=104","urlObject":{"protocol":"{{http_schema}}","path":["v1","dicts","car_models"],"host":["{{host}}"],"query":[{"key":"car_mark","value":"104"}],"variable":[]}},"response":[{"id":"8c95ef2b-ecc9-4428-b00c-8ddf73239077","name":"Модель Авто","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","disabled":false},{"key":"Accept","value":"application/json, text/plain, */*","disabled":false}],"url":"{{http_schema}}://{{host}}/v1/dicts/car_marks/{{car_mark_id}}/car_models"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true","name":"Access-Control-Allow-Credentials","description":"Indicates whether or not the response to the request can be exposed when the credentials flag is true. When used as part of a response to a preflight request, this indicates whether or not the actual request can be made using credentials."},{"key":"Access-Control-Allow-Headers","value":"*","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, DELETE","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Access-Control-Max-Age","value":"86400","name":"Access-Control-Max-Age","description":"Indicates how long the results of a preflight request can be cached in seconds."},{"key":"Allow","value":"get","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Language","value":"ru","name":"Content-Language","description":"The language the content is in"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 24 Jul 2018 13:29:33 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx/1.10.2","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Authenticate, Accept, Accept-Language, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Tue Aug 07 2018 13:01:15 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"eosago-aggregator.2018-1.test.b2bpolis.ru","path":"/","secure":false,"value":"wg18fhkhk5fsbqcqy9btkvc191073cie","key":"sessionid"}],"responseTime":null,"body":"[\n    {\n        \"id\": 1000004,\n        \"title\": \"ACE\"\n    },\n    {\n        \"id\": 1000010,\n        \"title\": \"ACECA\"\n    },\n    {\n        \"id\": 1000013,\n        \"title\": \"COBRA\"\n    }\n]"}],"_postman_id":"b2023da7-edcd-4dcc-8e7a-e1f8d8527fed"},{"name":"v1 Одна модель по id","event":[{"listen":"test","script":{"id":"d35cf41c-7a98-4dba-942f-6126661a745f","type":"text/javascript","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Response time is less than 500ms\"] = responseTime < 500;","","try {","   var resp_data = JSON.parse(responseBody),","       car_model_id = resp_data[0].id;","       postman.setEnvironmentVariable(\"car_model_id\", car_model_id);","} catch(e) {","   console.log(e);","   console.log(resp_data);","   ","}"]}}],"id":"5fca81bd-14ae-44a1-a9c6-3dd436e27495","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"}],"url":"{{http_schema}}://{{host}}/{{api_version}}/dicts/car_models/{{car_model_id}}","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","dicts","car_models","{{car_model_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b562ac4b-7a15-485b-a878-ef5d9b55e6b0","name":"Модель Авто","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"}],"url":"{{http_schema}}://{{host}}/v1/dicts/car_models/{{car_model_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true","name":"Access-Control-Allow-Credentials","description":"Indicates whether or not the response to the request can be exposed when the credentials flag is true. When used as part of a response to a preflight request, this indicates whether or not the actual request can be made using credentials."},{"key":"Access-Control-Allow-Headers","value":"*","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, DELETE","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Access-Control-Max-Age","value":"86400","name":"Access-Control-Max-Age","description":"Indicates how long the results of a preflight request can be cached in seconds."},{"key":"Allow","value":"get","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Language","value":"ru","name":"Content-Language","description":"The language the content is in"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 24 Jul 2018 13:29:33 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx/1.10.2","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Authenticate, Accept, Accept-Language, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Tue Aug 07 2018 13:01:15 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"eosago-aggregator.2018-1.test.b2bpolis.ru","path":"/","secure":false,"value":"wg18fhkhk5fsbqcqy9btkvc191073cie","key":"sessionid"}],"responseTime":null,"body":"    {\n        \"id\": 1000004,\n        \"title\": \"ACE\",\n        \"car_mark\": {\n        \t\"id\": 123,\n        \t\"title\": \"Subaru\"\n        }\n    }"}],"_postman_id":"5fca81bd-14ae-44a1-a9c6-3dd436e27495"},{"name":"v2 Марки автомобилей","id":"9eb39484-ecf9-4f9b-a4cd-0f948afac622","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{http_schema}}://{{host}}/v2/dicts/car_marks?year=2019&page=1","description":"<p>По сравнению с v1 это более расширенный справочник, включающий список модификаций (кузов, объём двигателя, мощность). Добавлена пагинаци и фильтр по году выпуска</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["v2","dicts","car_marks"],"host":["{{host}}"],"query":[{"key":"year","value":"2019"},{"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"fde34800-d337-4996-8d03-7721f3093ef9","name":"v2 Марки автомобилей","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token {{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"{{http_schema}}://{{host}}/v2/dicts/car_marks?year=2019&page=1","protocol":"{{http_schema}}","host":["{{host}}"],"path":["v2","dicts","car_marks"],"query":[{"key":"year","value":"2019"},{"key":"page","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 30 Sep 2019 17:36:56 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Vary","value":"Cookie"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 159,\n    \"next\": \"http://dictionaries-app:8000/v2/car_marks?page=2&year=2019\",\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": 541,\n            \"title\": \"AC\",\n            \"rsa_mark_name\": \"AC\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 542,\n            \"title\": \"Acura\",\n            \"rsa_mark_name\": \"Acura\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 514,\n            \"title\": \"Alfa Romeo\",\n            \"rsa_mark_name\": \"Alfa Romeo\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 528,\n            \"title\": \"Alpina\",\n            \"rsa_mark_name\": \"Alpina\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 481,\n            \"title\": \"Aston Martin\",\n            \"rsa_mark_name\": \"Aston Martin\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 471,\n            \"title\": \"Audi\",\n            \"rsa_mark_name\": \"Audi\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 566,\n            \"title\": \"BAW\",\n            \"rsa_mark_name\": \"BAW\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 535,\n            \"title\": \"Beijing\",\n            \"rsa_mark_name\": \"Beijing\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 591,\n            \"title\": \"Belava\",\n            \"rsa_mark_name\": \"\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 551,\n            \"title\": \"Bentley\",\n            \"rsa_mark_name\": \"Bentley\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 476,\n            \"title\": \"BMW\",\n            \"rsa_mark_name\": \"BMW\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 595,\n            \"title\": \"Bogdan\",\n            \"rsa_mark_name\": \"Богдан\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 596,\n            \"title\": \"Brilliance\",\n            \"rsa_mark_name\": \"Brilliance\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 575,\n            \"title\": \"Bristol\",\n            \"rsa_mark_name\": \"Bristol\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 552,\n            \"title\": \"Bugatti\",\n            \"rsa_mark_name\": \"Bugatti\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 495,\n            \"title\": \"Buick\",\n            \"rsa_mark_name\": \"Buick\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 587,\n            \"title\": \"BYD\",\n            \"rsa_mark_name\": \"BYD\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 482,\n            \"title\": \"Cadillac\",\n            \"rsa_mark_name\": \"Cadillac\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 599,\n            \"title\": \"Changan\",\n            \"rsa_mark_name\": \"Changan\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 598,\n            \"title\": \"Chang Feng\",\n            \"rsa_mark_name\": \"Changfeng\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 600,\n            \"title\": \"Changhe\",\n            \"rsa_mark_name\": \"Changhe\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 601,\n            \"title\": \"Chery\",\n            \"rsa_mark_name\": \"Chery\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 446,\n            \"title\": \"Chevrolet\",\n            \"rsa_mark_name\": \"Chevrolet\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 496,\n            \"title\": \"Chrysler\",\n            \"rsa_mark_name\": \"Chrysler\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 450,\n            \"title\": \"Citroen\",\n            \"rsa_mark_name\": \"Citroen\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 500,\n            \"title\": \"Dacia\",\n            \"rsa_mark_name\": \"Dacia\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 608,\n            \"title\": \"Dadi\",\n            \"rsa_mark_name\": \"Daewoo\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 607,\n            \"title\": \"Dadi\",\n            \"rsa_mark_name\": \"Dadi\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 524,\n            \"title\": \"Daewoo\",\n            \"rsa_mark_name\": \"Daewoo\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 504,\n            \"title\": \"Daihatsu\",\n            \"rsa_mark_name\": \"Daihatsu\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 529,\n            \"title\": \"Daimler\",\n            \"rsa_mark_name\": \"Daimler\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 516,\n            \"title\": \"Daimler-Benz\",\n            \"rsa_mark_name\": \"Daimler-Benz\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 609,\n            \"title\": \"Daimler Chrysler\",\n            \"rsa_mark_name\": \"Другая марка (иностранный легковой)\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 564,\n            \"title\": \"Dallas\",\n            \"rsa_mark_name\": \"Dallas\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 492,\n            \"title\": \"Datsun\",\n            \"rsa_mark_name\": \"Datsun\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 612,\n            \"title\": \"Derways\",\n            \"rsa_mark_name\": \"Derways\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 606,\n            \"title\": \"DFM\",\n            \"rsa_mark_name\": \"DFM (Dongfeng)\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 458,\n            \"title\": \"Dodge\",\n            \"rsa_mark_name\": \"Dodge\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 716,\n            \"title\": \"DongFeng\",\n            \"rsa_mark_name\": \"DFM (Dongfeng)\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 577,\n            \"title\": \"Doninvest\",\n            \"rsa_mark_name\": \"DONINVEST\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 530,\n            \"title\": \"FAW\",\n            \"rsa_mark_name\": \"FAW\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 505,\n            \"title\": \"Ferrari\",\n            \"rsa_mark_name\": \"Ferrari\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 477,\n            \"title\": \"Fiat\",\n            \"rsa_mark_name\": \"Fiat\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 453,\n            \"title\": \"Ford\",\n            \"rsa_mark_name\": \"Ford\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 729,\n            \"title\": \"Foton\",\n            \"rsa_mark_name\": \"Foton\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 614,\n            \"title\": \"Foton\",\n            \"rsa_mark_name\": \"FOTON\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 717,\n            \"title\": \"Fuqi\",\n            \"rsa_mark_name\": \"Fuqi\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 617,\n            \"title\": \"Geely\",\n            \"rsa_mark_name\": \"Geely\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 730,\n            \"title\": \"Genesis\",\n            \"rsa_mark_name\": \"Genesis\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 618,\n            \"title\": \"Genesis\",\n            \"rsa_mark_name\": \"Geely\",\n            \"is_deprecated\": false\n        }\n    ]\n}"}],"_postman_id":"9eb39484-ecf9-4f9b-a4cd-0f948afac622"},{"name":"v2 Модели","id":"1f5258f1-cf7e-4f79-98bd-b97b0baa2cf4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Token {{token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{http_schema}}://{{host}}/v2/dicts/car_models?year=2019&car_mark=471","urlObject":{"protocol":"{{http_schema}}","path":["v2","dicts","car_models"],"host":["{{host}}"],"query":[{"key":"year","value":"2019"},{"key":"car_mark","value":"471"}],"variable":[]}},"response":[{"id":"febae415-24b0-49ad-aa9b-5a226c22e0a7","name":"V2 модели","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"{{http_schema}}://{{host}}/v2/dicts/car_models?year=2019&car_mark=471","protocol":"{{http_schema}}","host":["{{host}}"],"path":["v2","dicts","car_models"],"query":[{"key":"year","value":"2019"},{"key":"car_mark","value":"471"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 30 Sep 2019 16:27:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Vary","value":"Cookie"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 33,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": 864023128,\n            \"title\": \"100\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"100\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9000570\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864023170,\n            \"title\": \"80\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"80\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9000695\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864026419,\n            \"title\": \"A1\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"A1\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9021589\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864023601,\n            \"title\": \"A3\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"A3\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9000794\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864023846,\n            \"title\": \"A4\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"A4\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9000812\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864024169,\n            \"title\": \"A4 allroad quattro\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"A4 Allroad\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9021885\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864026180,\n            \"title\": \"A5\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"A5\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9020018\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864023847,\n            \"title\": \"A6\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"A6\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9000907\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864026082,\n            \"title\": \"A6 allroad quattro\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"A6 Allroad\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9021547\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864026420,\n            \"title\": \"A7\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"A7\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9021587\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864023848,\n            \"title\": \"A8\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"A8\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9001023\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864026477,\n            \"title\": \"Q3\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"Q3\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9021627\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864026275,\n            \"title\": \"Q5\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"Q5\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9020017\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864025989,\n            \"title\": \"Q7\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"Q7\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9020016\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864024171,\n            \"title\": \"Q8\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"Другая модель (легковой)\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9001146\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864026181,\n            \"title\": \"R8\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"R8\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9020019\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864026421,\n            \"title\": \"RS 3\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"RS3\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9021683\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864025816,\n            \"title\": \"RS 4\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"RS4\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9020014\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864026182,\n            \"title\": \"RS 5\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"RS5\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9021639\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864025894,\n            \"title\": \"RS 6\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"RS6\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9001114\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864026548,\n            \"title\": \"RS7\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"RS7\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9021895\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864026547,\n            \"title\": \"RS 7\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"RS7\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9021895\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864026478,\n            \"title\": \"RS Q3\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"RS Q3\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9022157\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864024175,\n            \"title\": \"S3\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"S3\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9001118\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864026183,\n            \"title\": \"S5\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"S5\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9021480\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864023849,\n            \"title\": \"S6\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"S6\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9001127\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864026549,\n            \"title\": \"S7\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"S7\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9021697\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864024176,\n            \"title\": \"S8\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"S8\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9001132\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864026550,\n            \"title\": \"S8 Plus\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"S8\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9001132\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864026276,\n            \"title\": \"SQ5\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"SQ5\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9021991\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864024177,\n            \"title\": \"TT\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"TT\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9001135\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864026083,\n            \"title\": \"TT RS\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"TT\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9001135\",\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 864026084,\n            \"title\": \"TTS\",\n            \"car_type\": \"B\",\n            \"car_mark\": \"Audi\",\n            \"car_mark_id\": \"471\",\n            \"rsa_mark_name\": \"Audi\",\n            \"rsa_model_name\": \"Другая модель (легковой)\",\n            \"is_foreign\": true,\n            \"rsa_code\": \"9001146\",\n            \"is_deprecated\": false\n        }\n    ]\n}"}],"_postman_id":"1f5258f1-cf7e-4f79-98bd-b97b0baa2cf4"},{"name":"v2 Модификации","id":"3129ffeb-0cdb-4807-a3ff-dd50a1c7f57b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{http_schema}}://{{host}}/v2/dicts/car_modifications?year=2019&car_model=864024169","urlObject":{"protocol":"{{http_schema}}","path":["v2","dicts","car_modifications"],"host":["{{host}}"],"query":[{"key":"year","value":"2019"},{"key":"car_model","value":"864024169"}],"variable":[]}},"response":[{"id":"8e36a044-e1d0-4442-989a-ac2844f079fd","name":"V2 модификации","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"{{http_schema}}://{{host}}/v2/dicts/car_modifications?year=2019&car_model=864024169","protocol":"{{http_schema}}","host":["{{host}}"],"path":["v2","dicts","car_modifications"],"query":[{"key":"year","value":"2019"},{"key":"car_model","value":"864024169"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 30 Sep 2019 16:28:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Vary","value":"Cookie"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 4,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": 202224,\n            \"title\": \"193.0 л.с. - 2.8 - Седан (4 дв.)\",\n            \"car_model_id\": \"864024169\",\n            \"case\": \"Седан (4 дв.)\",\n            \"year\": \"2019\",\n            \"engine_power\": 193,\n            \"engine_displacement\": 2.8,\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 202221,\n            \"title\": \"211.0 л.с. - 2.0 - Универсал (5 дв.)\",\n            \"car_model_id\": \"864024169\",\n            \"case\": \"Универсал (5 дв.)\",\n            \"year\": \"2019\",\n            \"engine_power\": 211,\n            \"engine_displacement\": 2,\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 202222,\n            \"title\": \"225.0 л.с. - 2.0 - Универсал (5 дв.)\",\n            \"car_model_id\": \"864024169\",\n            \"case\": \"Универсал (5 дв.)\",\n            \"year\": \"2019\",\n            \"engine_power\": 225,\n            \"engine_displacement\": 2,\n            \"is_deprecated\": false\n        },\n        {\n            \"id\": 202223,\n            \"title\": \"249.0 л.с. - 2.0 - Универсал (5 дв.)\",\n            \"car_model_id\": \"864024169\",\n            \"case\": \"Универсал (5 дв.)\",\n            \"year\": \"2019\",\n            \"engine_power\": 249,\n            \"engine_displacement\": 2,\n            \"is_deprecated\": false\n        }\n    ]\n}"}],"_postman_id":"3129ffeb-0cdb-4807-a3ff-dd50a1c7f57b"},{"name":"v2 Год выпуска","id":"801fc191-e5d3-44c1-bdc6-6ee3e80d489f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{http_schema}}://{{host}}/v2/dicts/car_years","urlObject":{"protocol":"{{http_schema}}","path":["v2","dicts","car_years"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"a16b7649-41fa-42c1-99dd-47c48dc16d03","name":"V2 год выпуска","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{http_schema}}://{{host}}/v2/dicts/car_years"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 30 Sep 2019 17:08:16 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Vary","value":"Cookie"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 84,\n    \"next\": \"http://dictionaries-app:8000/v2/car_years?page=2\",\n    \"previous\": null,\n    \"results\": [\n        {\n            \"year\": 2019\n        },\n        {\n            \"year\": 2018\n        },\n        {\n            \"year\": 2017\n        },\n        {\n            \"year\": 2016\n        },\n        {\n            \"year\": 2015\n        },\n        {\n            \"year\": 2014\n        },\n        {\n            \"year\": 2013\n        },\n        {\n            \"year\": 2012\n        },\n        {\n            \"year\": 2011\n        },\n        {\n            \"year\": 2010\n        },\n        {\n            \"year\": 2009\n        },\n        {\n            \"year\": 2008\n        },\n        {\n            \"year\": 2007\n        },\n        {\n            \"year\": 2006\n        },\n        {\n            \"year\": 2005\n        },\n        {\n            \"year\": 2004\n        },\n        {\n            \"year\": 2003\n        },\n        {\n            \"year\": 2002\n        },\n        {\n            \"year\": 2001\n        },\n        {\n            \"year\": 2000\n        },\n        {\n            \"year\": 1999\n        },\n        {\n            \"year\": 1998\n        },\n        {\n            \"year\": 1997\n        },\n        {\n            \"year\": 1996\n        },\n        {\n            \"year\": 1995\n        },\n        {\n            \"year\": 1994\n        },\n        {\n            \"year\": 1993\n        },\n        {\n            \"year\": 1992\n        },\n        {\n            \"year\": 1991\n        },\n        {\n            \"year\": 1990\n        },\n        {\n            \"year\": 1989\n        },\n        {\n            \"year\": 1988\n        },\n        {\n            \"year\": 1987\n        },\n        {\n            \"year\": 1986\n        },\n        {\n            \"year\": 1985\n        },\n        {\n            \"year\": 1984\n        },\n        {\n            \"year\": 1983\n        },\n        {\n            \"year\": 1982\n        },\n        {\n            \"year\": 1981\n        },\n        {\n            \"year\": 1980\n        },\n        {\n            \"year\": 1979\n        },\n        {\n            \"year\": 1978\n        },\n        {\n            \"year\": 1977\n        },\n        {\n            \"year\": 1976\n        },\n        {\n            \"year\": 1975\n        },\n        {\n            \"year\": 1974\n        },\n        {\n            \"year\": 1973\n        },\n        {\n            \"year\": 1972\n        },\n        {\n            \"year\": 1971\n        },\n        {\n            \"year\": 1970\n        }\n    ]\n}"}],"_postman_id":"801fc191-e5d3-44c1-bdc6-6ee3e80d489f"},{"name":"Период страхования","id":"f49d0240-2f0b-41e2-b492-27cb188f1f3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"}],"body":{"mode":"formdata","formdata":[]},"url":"{{http_schema}}://{{host}}/{{api_version}}/dicts/insurance_periods","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","dicts","insurance_periods"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"812e453a-26ac-4904-a86a-c1ffccb3ca6f","name":"Период страхования","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"}],"body":{"mode":"formdata","formdata":[]},"url":"{{http_schema}}://{{host}}/{{api_version}}/dicts/insurance_periods"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 17 Jun 2019 10:22:16 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Vary","value":"Cookie"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"title\": \"3 месяца\",\n        \"code\": null,\n        \"Kterm\": \"0.50\",\n        \"month_count\": 3,\n        \"term\": 1\n    },\n    {\n        \"id\": 2,\n        \"title\": \"4 месяца\",\n        \"code\": null,\n        \"Kterm\": \"0.60\",\n        \"month_count\": 4,\n        \"term\": 1\n    },\n    {\n        \"id\": 3,\n        \"title\": \"5 месяцев\",\n        \"code\": null,\n        \"Kterm\": \"0.65\",\n        \"month_count\": 5,\n        \"term\": 1\n    },\n    {\n        \"id\": 4,\n        \"title\": \"6 месяцев\",\n        \"code\": null,\n        \"Kterm\": \"0.70\",\n        \"month_count\": 6,\n        \"term\": 1\n    },\n    {\n        \"id\": 5,\n        \"title\": \"7 месяцев\",\n        \"code\": null,\n        \"Kterm\": \"0.80\",\n        \"month_count\": 7,\n        \"term\": 1\n    },\n    {\n        \"id\": 6,\n        \"title\": \"8 месяцев\",\n        \"code\": null,\n        \"Kterm\": \"0.90\",\n        \"month_count\": 8,\n        \"term\": 1\n    },\n    {\n        \"id\": 7,\n        \"title\": \"9 месяцев\",\n        \"code\": null,\n        \"Kterm\": \"0.95\",\n        \"month_count\": 9,\n        \"term\": 1\n    },\n    {\n        \"id\": 8,\n        \"title\": \"1 год\",\n        \"code\": null,\n        \"Kterm\": \"1.00\",\n        \"month_count\": 12,\n        \"term\": 1\n    }\n]"}],"_postman_id":"f49d0240-2f0b-41e2-b492-27cb188f1f3c"},{"name":"Цели использования","event":[{"listen":"test","script":{"id":"0350bfa2-3fd4-48e0-8091-a113657e79c5","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Response time is less than 500ms\"] = responseTime < 500;",""],"type":"text/javascript"}}],"id":"60549a80-b736-4de4-841b-f8f006693527","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"}],"url":"{{http_schema}}://{{host}}/{{api_version}}/dicts/targets_of_using","description":"<p>Получение списка Целей использования. В данный момент используется только \"Личная\". Передачи всех остальных в СК нет</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","dicts","targets_of_using"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"de5fb15e-2e25-467c-bb4d-91e8bd90cb43","name":"Цели использования","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","disabled":false},{"key":"Accept","value":"application/json, text/plain, */*","disabled":false}],"url":"{{http_schema}}://{{host}}/{{api_version}}/dicts/targets_of_using"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true","name":"Access-Control-Allow-Credentials","description":"Indicates whether or not the response to the request can be exposed when the credentials flag is true. When used as part of a response to a preflight request, this indicates whether or not the actual request can be made using credentials."},{"key":"Access-Control-Allow-Headers","value":"*","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, DELETE","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Access-Control-Max-Age","value":"86400","name":"Access-Control-Max-Age","description":"Indicates how long the results of a preflight request can be cached in seconds."},{"key":"Allow","value":"get","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Language","value":"ru","name":"Content-Language","description":"The language the content is in"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 23 Jul 2018 12:45:45 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx/1.10.2","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Authenticate, Accept, Accept-Language, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Mon Aug 06 2018 12:44:24 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"eosago-aggregator.2018-1.test.b2bpolis.ru","path":"/","secure":false,"value":"wg18fhkhk5fsbqcqy9btkvc191073cie","key":"sessionid"}],"responseTime":null,"body":"[{\"id\": 861022202, \"title\": \"\\u042d\\u043a\\u0441\\u0442\\u0440\\u0435\\u043d\\u043d\\u044b\\u0435 \\u0438 \\u043a\\u043e\\u043c\\u043c\\u0443\\u043d\\u0430\\u043b\\u044c\\u043d\\u044b\\u0435 \\u0441\\u043b\\u0443\\u0436\\u0431\\u044b\"}, {\"id\": 861022203, \"title\": \"\\u041f\\u0440\\u043e\\u043a\\u0430\\u0442/\\u043a\\u0440\\u0430\\u0442\\u043a\\u043e\\u0441\\u0440\\u043e\\u0447\\u043d\\u0430\\u044f \\u0430\\u0440\\u0435\\u043d\\u0434\\u0430\"}, {\"id\": 861022204, \"title\": \"\\u041f\\u0435\\u0440\\u0435\\u0432\\u043e\\u0437\\u043a\\u0430 \\u043e\\u043f\\u0430\\u0441\\u043d\\u044b\\u0445 \\u0433\\u0440\\u0443\\u0437\\u043e\\u0432\"}, {\"id\": 861022205, \"title\": \"\\u0414\\u043e\\u0440\\u043e\\u0436\\u043d\\u044b\\u0435 \\u0438 \\u0441\\u043f\\u0435\\u0446\\u0438\\u0430\\u043b\\u044c\\u043d\\u044b\\u0435 \\u0422\\u0421\"}, {\"id\": 861022206, \"title\": \"\\u0420\\u0435\\u0433\\u0443\\u043b\\u044f\\u0440\\u043d\\u044b\\u0435 \\u043f\\u0430\\u0441\\u0441\\u0430\\u0436\\u0438\\u0440\\u0441\\u043a\\u0438\\u0435 \\u043f\\u0435\\u0440\\u0435\\u0432\\u043e\\u0437\\u043a\\u0438\"}, {\"id\": 861022207, \"title\": \"\\u0423\\u0447\\u0435\\u0431\\u043d\\u0430\\u044f \\u0435\\u0437\\u0434\\u0430\"}, {\"id\": 861022208, \"title\": \"\\u041f\\u0440\\u043e\\u0447\\u0435\\u0435\"}, {\"id\": 46596, \"title\": \"\\u0412 \\u043b\\u0438\\u0447\\u043d\\u044b\\u0445 \\u0446\\u0435\\u043b\\u044f\\u0445\"}, {\"id\": 46597, \"title\": \"\\u0422\\u0430\\u043a\\u0441\\u0438, \\u043f\\u0440\\u043e\\u043a\\u0430\\u0442/\\u0430\\u0440\\u0435\\u043d\\u0434\\u0430\"}]"}],"_postman_id":"60549a80-b736-4de4-841b-f8f006693527"},{"name":"Типы идентификаторов ТС","event":[{"listen":"test","script":{"id":"be78f4b4-e3e1-4330-9286-3616201b3ad4","exec":[""],"type":"text/javascript"}}],"id":"ed74cec8-8f22-4e47-a713-b23d52d7194c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json, text/plain, */*"}],"url":"{{http_schema}}://{{host}}/{{api_version}}/dicts/car_ident_types","urlObject":{"protocol":"{{http_schema}}","path":["{{api_version}}","dicts","car_ident_types"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"192de593-b13e-43c2-8021-2120d35733a2","name":"Модель Авто","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","disabled":false},{"key":"Accept","value":"application/json, text/plain, */*","disabled":false}],"url":"{{http_schema}}://{{host}}/{{api_version}}/dicts/car_marks/{{car_mark_id}}/car_models"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true","name":"Access-Control-Allow-Credentials","description":"Indicates whether or not the response to the request can be exposed when the credentials flag is true. When used as part of a response to a preflight request, this indicates whether or not the actual request can be made using credentials."},{"key":"Access-Control-Allow-Headers","value":"*","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, DELETE","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Access-Control-Max-Age","value":"86400","name":"Access-Control-Max-Age","description":"Indicates how long the results of a preflight request can be cached in seconds."},{"key":"Allow","value":"get","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Language","value":"ru","name":"Content-Language","description":"The language the content is in"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 24 Jul 2018 13:29:33 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx/1.10.2","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Authenticate, Accept, Accept-Language, Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Tue Aug 07 2018 13:01:15 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"eosago-aggregator.2018-1.test.b2bpolis.ru","path":"/","secure":false,"value":"wg18fhkhk5fsbqcqy9btkvc191073cie","key":"sessionid"}],"responseTime":null,"body":"[\n    {\n        \"id\": 1000004,\n        \"title\": \"ACE\"\n    },\n    {\n        \"id\": 1000010,\n        \"title\": \"ACECA\"\n    },\n    {\n        \"id\": 1000013,\n        \"title\": \"COBRA\"\n    }\n]"}],"_postman_id":"ed74cec8-8f22-4e47-a713-b23d52d7194c"}],"id":"28e7c3d0-ca11-4368-af47-8399825c158a","_postman_id":"28e7c3d0-ca11-4368-af47-8399825c158a","description":""},{"name":"Верификация данных ","item":[{"name":"Текущий пользователь","event":[{"listen":"test","script":{"id":"337f2b19-aa9f-4401-b881-a9940e94f563","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","tests[\"Response time is less than 500ms\"] = responseTime < 500;","","try {","   var resp_data = JSON.parse(responseBody),","       my_department_id = resp_data.department.id;","   postman.setEnvironmentVariable(\"my_department_id\", my_department_id);","} catch(e) {","   console.log(e);","   console.log(resp_data);","   ","}"],"type":"text/javascript"}}],"id":"a9f59ae2-7004-4091-8c83-b96815fdabba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Token {{token}}"}],"url":"{{http_schema}}://{{host}}/v1/users/current_user","description":"<p>Если в блоке \"verifiers\" получен \"CITY_VERIFICATION\" с признаком \"is_verified\": false, то верификация города не пройдена и расчёт по компании Ингосстрах заблокирован. Для разблокировки нужно воспользоваться запросом v1/users/verify</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["v1","users","current_user"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b100cfec-fb7f-4805-90d6-e50742e0c274","name":"Текущий пользователь","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Token {{token}}"}],"url":"{{http_schema}}://{{host}}/v1/users/current_user"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"2c07b91c-5f3c-46b3-82ae-3fb0c4bd2c71\",\n  \"username\": \"\",\n  \"first_name\": \"\",\n  \"last_name\": \"\",\n  \"patronymic\": \"\",\n  \"phone_number\": null,\n  \"verifiers\": {\n    \"CITY_VERIFICATION\": {\n      \"is_verified\": true,\n      \"is_system_locked\": false\n    }\n  },\n  \"permissions\": [],\n  \"groups\": [\n    {\n      \"name\": \"Куратор партнерстора\",\n      \"code\": \"PARTNER_STORE_CURATOR\"\n    }\n  ]\n}"}],"_postman_id":"a9f59ae2-7004-4091-8c83-b96815fdabba"},{"name":"Верификация города","event":[{"listen":"test","script":{"id":"337f2b19-aa9f-4401-b881-a9940e94f563","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","tests[\"Response time is less than 500ms\"] = responseTime < 500;","","try {","   var resp_data = JSON.parse(responseBody),","       my_department_id = resp_data.department.id;","   postman.setEnvironmentVariable(\"my_department_id\", my_department_id);","} catch(e) {","   console.log(e);","   console.log(resp_data);","   ","}"],"type":"text/javascript"}}],"id":"2b8e7909-2dd7-46cd-ad71-2c3447d62068","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Token {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"city_kladr\": \"8900000100000\",\n    \"verification_type\": \"CITY_VERIFICATION\"\n}"},"url":"{{http_schema}}://{{host}}/v1/users/verify","description":"<p>В параметр \"city_kladr\" необходимо передать код КЛАДР города (13 цифр) преимущественного оформления полисов по компании Ингосстрах</p>\n","urlObject":{"protocol":"{{http_schema}}","path":["v1","users","verify"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d8d883c4-edea-4f4c-a019-3be42c7fa9a4","name":"Текущий пользователь","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Token {{token}}"}],"url":"{{http_schema}}://{{host}}/v1/users/current_user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.2"},{"key":"Date","value":"Mon, 29 Oct 2018 14:44:17 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2307"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"1660dd0c-574b-4057-8457-2e9acde874f8\",\n    \"username\": \"test@test.ru\",\n    \"department\": {\n        \"id\": \"e8962ff0-febf-4f09-8135-eb3c6d21ee13\",\n        \"title\": \"PARTNER\",\n        \"parent\": null,\n        \"users\": [\n            {\n                \"id\": \"a8685381-c951-4366-b8e9-e58dd0430add\",\n                \"username\": \"helpkbm@bk.ru\",\n                \"department\": \"e8962ff0-febf-4f09-8135-eb3c6d21ee13\",\n                \"first_name\": \"Вася\",\n                \"last_name\": \"Коля\",\n                \"patronymic\": \"\",\n                \"groups\": [\n                    {\n                        \"name\": \"Администратор партнерстора\",\n                        \"code\": \"PARTNER_STORE_ADMIN\"\n                    },\n                    {\n                        \"name\": \"Администратор подразделения\",\n                        \"code\": \"DEPARTMENT_ADMIN\"\n                    }\n                ],\n                \"is_active\": true\n            },\n            {\n                \"id\": \"df1269a0-fcc9-450c-9410-e1010cd90fbe\",\n                \"username\": \"vas@ya.ru\",\n                \"department\": \"e8962ff0-febf-4f09-8135-eb3c6d21ee13\",\n                \"first_name\": \"Коля\",\n                \"last_name\": \"Вася\",\n                \"patronymic\": \"Петя\",\n                \"groups\": [],\n                \"is_active\": true\n            }\n        ]\n    },\n    \"first_name\": \"Тест\",\n    \"last_name\": \"Тест\",\n    \"patronymic\": \"Тест\",\n    \"permissions\": []\n}"}],"_postman_id":"2b8e7909-2dd7-46cd-ad71-2c3447d62068"}],"id":"3a86a07a-9d81-4d06-a5a1-a16f876042c0","_postman_id":"3a86a07a-9d81-4d06-a5a1-a16f876042c0","description":""}],"event":[{"listen":"prerequest","script":{"id":"c33c31ff-4a68-4698-936d-37937ca0765e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"cb057897-68cb-4fe6-a150-01781c99f140","type":"text/javascript","exec":[""]}}]}