{"info":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","description":"<html><head></head><body><img src=\"https://dev.autointouch.online/assets/logos/ait-online-largest.png\" alt=\"AITOL Logo\">\n\n<h1 id=\"overview\">Overview</h1>\n<p>The amount of teal on front end is disturbing</p>\n<p>USE THE FORCE</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>Authentication is handled through AWS Cognito JWT Token.</p>\n<p>Postman's MTT DEV workspace has an environment variable which you can change by taking the token that is saved to local storage on the angular front end</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<p>Invalid token</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"status\": \"fail\",\n    \"message\": \"No valid token provided\",\n    \"statusCode\": 401\n}\n\n</code></pre><p>Validation Error</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"status\": \"fail\",\n    \"message\": \"Validation error \\\"\\\\\\\"document_date\\\\\\\" is required\\\"\",\n    \"statusCode\": 400\n}\n\n</code></pre></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"}],"owner":"6495082","collectionId":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","publishedId":"S1LyUnWs","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-05-13T14:46:06.000Z"},"item":[{"name":"Assembly","item":[{"name":"Assembly List","id":"60baf864-9bf5-4a37-ba29-04742c424db1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/assemblies","description":"<p>Get suumarised list of assemblies</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["assemblies"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"f18eb913-ef61-4b29-8be2-dcdc9dd85667","name":"Assembly List","originalRequest":{"method":"GET","header":[],"url":"{{url}}/assemblies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1006"},{"key":"ETag","value":"W/\"3ee-Gy48CRm4YY7pAjKvJ03KpmWQJn4\""},{"key":"Date","value":"Wed, 26 Jun 2019 08:16:49 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"assembly_list\": [\n            {\n                \"id\": \"3\",\n                \"item_id\": 29,\n                \"company_id\": \"1\",\n                \"use_parent_price\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"0\",\n                \"last_updated\": \"2019-05-13T11:14:18.469Z\",\n                \"item_code\": \"FS\",\n                \"description\": \"Full Seriice\",\n                \"cost\": \"100\",\n                \"price\": \"150\",\n                \"hierarchy_id\": 3\n            },\n            {\n                \"id\": \"4\",\n                \"item_id\": 30,\n                \"company_id\": \"1\",\n                \"use_parent_price\": false,\n                \"is_active\": true,\n                \"last_updated_by\": \"0\",\n                \"last_updated\": \"2019-05-13T11:14:18.469Z\",\n                \"item_code\": \"IS\",\n                \"description\": \"Interim Service\",\n                \"cost\": \"75\",\n                \"price\": \"100\",\n                \"hierarchy_id\": 2\n            },\n            {\n                \"id\": \"14\",\n                \"item_id\": 30,\n                \"company_id\": \"1\",\n                \"use_parent_price\": false,\n                \"is_active\": true,\n                \"last_updated_by\": \"119\",\n                \"last_updated\": \"2019-05-15T12:43:12.623Z\",\n                \"item_code\": \"IS\",\n                \"description\": \"Interim Service\",\n                \"cost\": \"75\",\n                \"price\": \"100\",\n                \"hierarchy_id\": 2\n            },\n            {\n                \"id\": \"15\",\n                \"item_id\": 30,\n                \"company_id\": \"1\",\n                \"use_parent_price\": false,\n                \"is_active\": true,\n                \"last_updated_by\": \"119\",\n                \"last_updated\": \"2019-05-15T13:25:27.985Z\",\n                \"item_code\": \"IS\",\n                \"description\": \"Interim Service\",\n                \"cost\": \"75\",\n                \"price\": \"100\",\n                \"hierarchy_id\": 2\n            }\n        ]\n    }\n}"}],"_postman_id":"60baf864-9bf5-4a37-ba29-04742c424db1"},{"name":"Assembly by ID","id":"9f84bd47-c753-43f8-86e3-cc296e24051a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/assemblies/4","description":"<p>Read an assembly by ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["assemblies","4"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"45388990-df3a-42be-899b-c3ad3804f26e","name":"Assembly by ID","originalRequest":{"method":"GET","header":[],"url":"{{url}}/assemblies/{{assemblyid}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1969"},{"key":"ETag","value":"W/\"7b1-giUwcRyv+auSJGcAwgQelIhdWj4\""},{"key":"Date","value":"Wed, 26 Jun 2019 08:15:22 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"assembly\": {\n            \"id\": \"3\",\n            \"company_id\": \"1\",\n            \"item_id\": 29,\n            \"use_parent_price\": true,\n            \"is_active\": true,\n            \"last_updated_by\": \"0\",\n            \"last_updated\": \"2019-05-13T11:14:18.469Z\",\n            \"parent_item_code\": \"FS\",\n            \"parent_item\": {\n                \"id\": \"29\",\n                \"company_id\": \"1\",\n                \"supplier_id\": \"1\",\n                \"item_code\": \"FS\",\n                \"description\": \"Full Seriice\",\n                \"cost\": \"100\",\n                \"price\": \"150\",\n                \"hierarchy_id\": 3,\n                \"is_active\": true,\n                \"last_updated_by\": \"0\",\n                \"last_updated\": \"2019-05-13T10:13:02.300Z\",\n                \"vat_id\": \"2\",\n                \"item_type\": \"stock_item\",\n                \"reminder_item_id\": null\n            },\n            \"child_items\": [\n                {\n                    \"id\": \"8\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 3,\n                    \"item_id\": 9,\n                    \"quantity\": \"5.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"0\",\n                    \"last_updated\": \"2019-05-13T11:14:18.469Z\",\n                    \"item_code\": \"Oil\",\n                    \"description\": \"Engine Oil\",\n                    \"cost\": \"4\",\n                    \"price\": \"5\",\n                    \"vat_id\": \"2\"\n                },\n                {\n                    \"id\": \"11\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 3,\n                    \"item_id\": 28,\n                    \"quantity\": \"3.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"0\",\n                    \"last_updated\": \"2019-05-13T11:14:18.469Z\",\n                    \"item_code\": \"LAB\",\n                    \"description\": \"labour\",\n                    \"cost\": \"25\",\n                    \"price\": \"30\",\n                    \"vat_id\": \"2\"\n                },\n                {\n                    \"id\": \"9\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 3,\n                    \"item_id\": 26,\n                    \"quantity\": \"1.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"0\",\n                    \"last_updated\": \"2019-05-13T11:14:18.469Z\",\n                    \"item_code\": \"OF\",\n                    \"description\": \"oil Filter\",\n                    \"cost\": \"5\",\n                    \"price\": \"7\",\n                    \"vat_id\": \"2\"\n                },\n                {\n                    \"id\": \"22\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 3,\n                    \"item_id\": 31,\n                    \"quantity\": \"1.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"119\",\n                    \"last_updated\": \"2019-05-15T14:04:24.473Z\",\n                    \"item_code\": \"PF\",\n                    \"description\": \"Pollen Filter\",\n                    \"cost\": \"9\",\n                    \"price\": \"12\",\n                    \"vat_id\": \"2\"\n                },\n                {\n                    \"id\": \"20\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 3,\n                    \"item_id\": 31,\n                    \"quantity\": \"1.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"119\",\n                    \"last_updated\": \"2019-05-15T12:43:13.150Z\",\n                    \"item_code\": \"PF\",\n                    \"description\": \"Pollen Filter\",\n                    \"cost\": \"9\",\n                    \"price\": \"12\",\n                    \"vat_id\": \"2\"\n                },\n                {\n                    \"id\": \"15\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 3,\n                    \"item_id\": 31,\n                    \"quantity\": \"1.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"119\",\n                    \"last_updated\": \"2019-05-14T09:05:10.204Z\",\n                    \"item_code\": \"PF\",\n                    \"description\": \"Pollen Filter\",\n                    \"cost\": \"9\",\n                    \"price\": \"12\",\n                    \"vat_id\": \"2\"\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"9f84bd47-c753-43f8-86e3-cc296e24051a"},{"name":"Delee Assembly by ID","id":"768e989b-45c1-4bba-97c5-8ce7d885d364","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/assemblies/4","description":"<p>Delete an assembly by ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["assemblies","4"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"e50fc6d6-7526-4862-89d9-9e82a6f497a4","name":"Assembly by ID","originalRequest":{"method":"GET","header":[],"url":"{{url}}/assemblies/{{assemblyid}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1969"},{"key":"ETag","value":"W/\"7b1-giUwcRyv+auSJGcAwgQelIhdWj4\""},{"key":"Date","value":"Wed, 26 Jun 2019 08:15:22 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"assembly\": {\n            \"id\": \"3\",\n            \"company_id\": \"1\",\n            \"item_id\": 29,\n            \"use_parent_price\": true,\n            \"is_active\": true,\n            \"last_updated_by\": \"0\",\n            \"last_updated\": \"2019-05-13T11:14:18.469Z\",\n            \"parent_item_code\": \"FS\",\n            \"parent_item\": {\n                \"id\": \"29\",\n                \"company_id\": \"1\",\n                \"supplier_id\": \"1\",\n                \"item_code\": \"FS\",\n                \"description\": \"Full Seriice\",\n                \"cost\": \"100\",\n                \"price\": \"150\",\n                \"hierarchy_id\": 3,\n                \"is_active\": true,\n                \"last_updated_by\": \"0\",\n                \"last_updated\": \"2019-05-13T10:13:02.300Z\",\n                \"vat_id\": \"2\",\n                \"item_type\": \"stock_item\",\n                \"reminder_item_id\": null\n            },\n            \"child_items\": [\n                {\n                    \"id\": \"8\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 3,\n                    \"item_id\": 9,\n                    \"quantity\": \"5.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"0\",\n                    \"last_updated\": \"2019-05-13T11:14:18.469Z\",\n                    \"item_code\": \"Oil\",\n                    \"description\": \"Engine Oil\",\n                    \"cost\": \"4\",\n                    \"price\": \"5\",\n                    \"vat_id\": \"2\"\n                },\n                {\n                    \"id\": \"11\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 3,\n                    \"item_id\": 28,\n                    \"quantity\": \"3.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"0\",\n                    \"last_updated\": \"2019-05-13T11:14:18.469Z\",\n                    \"item_code\": \"LAB\",\n                    \"description\": \"labour\",\n                    \"cost\": \"25\",\n                    \"price\": \"30\",\n                    \"vat_id\": \"2\"\n                },\n                {\n                    \"id\": \"9\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 3,\n                    \"item_id\": 26,\n                    \"quantity\": \"1.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"0\",\n                    \"last_updated\": \"2019-05-13T11:14:18.469Z\",\n                    \"item_code\": \"OF\",\n                    \"description\": \"oil Filter\",\n                    \"cost\": \"5\",\n                    \"price\": \"7\",\n                    \"vat_id\": \"2\"\n                },\n                {\n                    \"id\": \"22\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 3,\n                    \"item_id\": 31,\n                    \"quantity\": \"1.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"119\",\n                    \"last_updated\": \"2019-05-15T14:04:24.473Z\",\n                    \"item_code\": \"PF\",\n                    \"description\": \"Pollen Filter\",\n                    \"cost\": \"9\",\n                    \"price\": \"12\",\n                    \"vat_id\": \"2\"\n                },\n                {\n                    \"id\": \"20\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 3,\n                    \"item_id\": 31,\n                    \"quantity\": \"1.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"119\",\n                    \"last_updated\": \"2019-05-15T12:43:13.150Z\",\n                    \"item_code\": \"PF\",\n                    \"description\": \"Pollen Filter\",\n                    \"cost\": \"9\",\n                    \"price\": \"12\",\n                    \"vat_id\": \"2\"\n                },\n                {\n                    \"id\": \"15\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 3,\n                    \"item_id\": 31,\n                    \"quantity\": \"1.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"119\",\n                    \"last_updated\": \"2019-05-14T09:05:10.204Z\",\n                    \"item_code\": \"PF\",\n                    \"description\": \"Pollen Filter\",\n                    \"cost\": \"9\",\n                    \"price\": \"12\",\n                    \"vat_id\": \"2\"\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"768e989b-45c1-4bba-97c5-8ce7d885d364"},{"name":"Delee Assembly item","id":"99d5a121-144b-4aee-9997-301254bc5834","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/assemblies/4/item/46","description":"<p>Delete an assembly item</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["assemblies","4","item","46"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"5ef61284-9a61-41a0-8876-3c984eddbd52","name":"Assembly by ID","originalRequest":{"method":"GET","header":[],"url":"{{url}}/assemblies/{{assemblyid}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1969"},{"key":"ETag","value":"W/\"7b1-giUwcRyv+auSJGcAwgQelIhdWj4\""},{"key":"Date","value":"Wed, 26 Jun 2019 08:15:22 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"assembly\": {\n            \"id\": \"3\",\n            \"company_id\": \"1\",\n            \"item_id\": 29,\n            \"use_parent_price\": true,\n            \"is_active\": true,\n            \"last_updated_by\": \"0\",\n            \"last_updated\": \"2019-05-13T11:14:18.469Z\",\n            \"parent_item_code\": \"FS\",\n            \"parent_item\": {\n                \"id\": \"29\",\n                \"company_id\": \"1\",\n                \"supplier_id\": \"1\",\n                \"item_code\": \"FS\",\n                \"description\": \"Full Seriice\",\n                \"cost\": \"100\",\n                \"price\": \"150\",\n                \"hierarchy_id\": 3,\n                \"is_active\": true,\n                \"last_updated_by\": \"0\",\n                \"last_updated\": \"2019-05-13T10:13:02.300Z\",\n                \"vat_id\": \"2\",\n                \"item_type\": \"stock_item\",\n                \"reminder_item_id\": null\n            },\n            \"child_items\": [\n                {\n                    \"id\": \"8\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 3,\n                    \"item_id\": 9,\n                    \"quantity\": \"5.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"0\",\n                    \"last_updated\": \"2019-05-13T11:14:18.469Z\",\n                    \"item_code\": \"Oil\",\n                    \"description\": \"Engine Oil\",\n                    \"cost\": \"4\",\n                    \"price\": \"5\",\n                    \"vat_id\": \"2\"\n                },\n                {\n                    \"id\": \"11\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 3,\n                    \"item_id\": 28,\n                    \"quantity\": \"3.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"0\",\n                    \"last_updated\": \"2019-05-13T11:14:18.469Z\",\n                    \"item_code\": \"LAB\",\n                    \"description\": \"labour\",\n                    \"cost\": \"25\",\n                    \"price\": \"30\",\n                    \"vat_id\": \"2\"\n                },\n                {\n                    \"id\": \"9\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 3,\n                    \"item_id\": 26,\n                    \"quantity\": \"1.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"0\",\n                    \"last_updated\": \"2019-05-13T11:14:18.469Z\",\n                    \"item_code\": \"OF\",\n                    \"description\": \"oil Filter\",\n                    \"cost\": \"5\",\n                    \"price\": \"7\",\n                    \"vat_id\": \"2\"\n                },\n                {\n                    \"id\": \"22\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 3,\n                    \"item_id\": 31,\n                    \"quantity\": \"1.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"119\",\n                    \"last_updated\": \"2019-05-15T14:04:24.473Z\",\n                    \"item_code\": \"PF\",\n                    \"description\": \"Pollen Filter\",\n                    \"cost\": \"9\",\n                    \"price\": \"12\",\n                    \"vat_id\": \"2\"\n                },\n                {\n                    \"id\": \"20\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 3,\n                    \"item_id\": 31,\n                    \"quantity\": \"1.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"119\",\n                    \"last_updated\": \"2019-05-15T12:43:13.150Z\",\n                    \"item_code\": \"PF\",\n                    \"description\": \"Pollen Filter\",\n                    \"cost\": \"9\",\n                    \"price\": \"12\",\n                    \"vat_id\": \"2\"\n                },\n                {\n                    \"id\": \"15\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 3,\n                    \"item_id\": 31,\n                    \"quantity\": \"1.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"119\",\n                    \"last_updated\": \"2019-05-14T09:05:10.204Z\",\n                    \"item_code\": \"PF\",\n                    \"description\": \"Pollen Filter\",\n                    \"cost\": \"9\",\n                    \"price\": \"12\",\n                    \"vat_id\": \"2\"\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"99d5a121-144b-4aee-9997-301254bc5834"},{"name":"Assembly by item ID","id":"35d47642-a7ce-410d-b420-0080568dce0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/assemblies/find?item_id={{itemId}}","description":"<p>Read an assembly using the ID of the item</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["assemblies","find"],"host":["{{url}}"],"query":[{"description":{"content":"<p>Parent item ID of assembly</p>\n","type":"text/plain"},"key":"item_id","value":"{{itemId}}"}],"variable":[]}},"response":[{"id":"995f308e-5af3-4276-b617-4b87fe5e9c74","name":"Assembly by item ID","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/assemblies/find?item_id={{assemblyparentid}}","host":["{{url}}"],"path":["assemblies","find"],"query":[{"key":"item_id","value":"{{assemblyparentid}}","description":"Parent item ID of assembly"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1239"},{"key":"ETag","value":"W/\"4d7-xrwjAQ//lBvh5Qh4ElpkVgGaS0o\""},{"key":"Date","value":"Wed, 26 Jun 2019 08:20:51 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"assembly\": {\n            \"id\": \"4\",\n            \"company_id\": \"1\",\n            \"item_id\": 30,\n            \"use_parent_price\": false,\n            \"is_active\": true,\n            \"last_updated_by\": \"0\",\n            \"last_updated\": \"2019-05-13T11:14:18.469Z\",\n            \"parent_item_code\": \"IS\",\n            \"parent_item\": {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"supplier_id\": \"1\",\n                \"item_code\": \"IS\",\n                \"description\": \"Interim Service\",\n                \"cost\": \"75\",\n                \"price\": \"100\",\n                \"hierarchy_id\": 2,\n                \"is_active\": true,\n                \"last_updated_by\": \"0\",\n                \"last_updated\": \"2019-05-13T10:13:41.699Z\",\n                \"vat_id\": \"2\",\n                \"item_type\": \"stock_item\",\n                \"reminder_item_id\": null\n            },\n            \"child_items\": [\n                {\n                    \"id\": \"12\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 4,\n                    \"item_id\": 9,\n                    \"quantity\": \"5.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"0\",\n                    \"last_updated\": \"2019-05-13T11:14:18.469Z\",\n                    \"item_code\": \"Oil\",\n                    \"description\": \"Engine Oil\",\n                    \"cost\": \"4\",\n                    \"price\": \"5\",\n                    \"vat_id\": \"2\"\n                },\n                {\n                    \"id\": \"14\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 4,\n                    \"item_id\": 28,\n                    \"quantity\": \"3.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"0\",\n                    \"last_updated\": \"2019-05-13T11:14:18.469Z\",\n                    \"item_code\": \"LAB\",\n                    \"description\": \"labour\",\n                    \"cost\": \"25\",\n                    \"price\": \"30\",\n                    \"vat_id\": \"2\"\n                },\n                {\n                    \"id\": \"13\",\n                    \"company_id\": \"1\",\n                    \"assembly_id\": 4,\n                    \"item_id\": 26,\n                    \"quantity\": \"1.0000\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"0\",\n                    \"last_updated\": \"2019-05-13T11:14:18.469Z\",\n                    \"item_code\": \"OF\",\n                    \"description\": \"oil Filter\",\n                    \"cost\": \"5\",\n                    \"price\": \"7\",\n                    \"vat_id\": \"2\"\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"35d47642-a7ce-410d-b420-0080568dce0c"},{"name":"Create Assembly","id":"1d21094d-7a2d-4362-9ddf-3f57cbeda2ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"item_id\": 29,\n    \"use_parent_price\": true,\n    \"is_active\": true\n}"},"url":"{{url}}/assemblies","description":"<p>Create new assembly</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["assemblies"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"3b7fd717-0ee5-4adc-a162-20675bd77722","name":"Create Assembly","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"item_id\": 29,\n    \"use_parent_price\": true,\n    \"is_active\": true\n}"},"url":"{{url}}/assemblies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"213"},{"key":"ETag","value":"W/\"d5-gOzoJuMcY3JojcBfR1spECOwgq4\""},{"key":"Date","value":"Wed, 26 Jun 2019 08:22:14 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"assembly\": {\n            \"id\": \"16\",\n            \"company_id\": \"1\",\n            \"item_id\": 29,\n            \"use_parent_price\": true,\n            \"is_active\": true,\n            \"last_updated_by\": \"119\",\n            \"last_updated\": \"2019-06-26T08:22:14.474Z\",\n            \"parent_item_code\": null\n        }\n    }\n}"}],"_postman_id":"1d21094d-7a2d-4362-9ddf-3f57cbeda2ca"},{"name":"Update Assembly","id":"5fce7fb3-3f1b-4482-8361-652d5e4697f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"item_id\": 30,\n    \"use_parent_price\": false,\n    \"is_active\": true\n}"},"url":"{{url}}/assemblies/{{assemblyid}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["assemblies","{{assemblyid}}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"bc8c8d5d-58da-4d65-8635-b94b8cfb130b","name":"Update Assembly","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"item_id\": 30,\n    \"use_parent_price\": false,\n    \"is_active\": true\n}"},"url":"{{url}}/assemblies/{{assemblyid}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"213"},{"key":"ETag","value":"W/\"d5-OOt3CXMwE3RBbSyUf/3NDRIee2U\""},{"key":"Date","value":"Wed, 26 Jun 2019 08:37:32 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"assembly\": {\n            \"id\": \"3\",\n            \"company_id\": \"1\",\n            \"item_id\": 30,\n            \"use_parent_price\": false,\n            \"is_active\": true,\n            \"last_updated_by\": \"119\",\n            \"last_updated\": \"2019-06-26T08:37:32.033Z\",\n            \"parent_item_code\": \"FS\"\n        }\n    }\n}"}],"_postman_id":"5fce7fb3-3f1b-4482-8361-652d5e4697f9"},{"name":"Create Assembly Item","id":"a2ed9d5f-6c1d-4359-b043-e0637a33453c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"item_id\": 1,\n    \"quantity\": 1,\n    \"description\":\"Hello world\",\n    \"position\":12,\n    \"is_active\": true\n}"},"url":"{{url}}/assemblies/1/item","description":"<p>Create assembly item on an existing assembly</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["assemblies","1","item"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"d6878a38-e624-4eea-9031-49c805cb191b","name":"Create Assembly Item","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"assembly_id\": 3,\n    \"item_id\": 31,\n    \"quantity\": 1,\n    \"is_active\": true\n}"},"url":"{{url}}/assemblies/{{assemblyid}}/item"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"206"},{"key":"ETag","value":"W/\"ce-mDdKagn+d3qe2nsoiB40kKE6k3o\""},{"key":"Date","value":"Wed, 26 Jun 2019 08:38:23 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"assembly_item\": {\n            \"id\": \"23\",\n            \"company_id\": \"1\",\n            \"assembly_id\": 3,\n            \"item_id\": 31,\n            \"quantity\": \"1.0000\",\n            \"is_active\": true,\n            \"last_updated_by\": \"119\",\n            \"last_updated\": \"2019-06-26T08:38:23.859Z\"\n        }\n    }\n}"}],"_postman_id":"a2ed9d5f-6c1d-4359-b043-e0637a33453c"},{"name":"Update Assembly Item","id":"9a01cfd9-2fb3-4bed-86fe-6e9a39f7703a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n     \"item_id\": 1,\n    \"quantity\": 3,\n    \"description\":\"Hello world!\",\n    \"position\":12,\n    \"is_active\": true\n}"},"url":"{{url}}/assemblies/{{assemblyId}}/item/{{assemblyItemId}}","description":"<p>Update assembly item on an assembly</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["assemblies","{{assemblyId}}","item","{{assemblyItemId}}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"4927ec2c-80a0-4b99-b638-46f8257066d1","name":"Update Assembly Item","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"assembly_id\": 15,\n    \"item_id\": 31,\n    \"quantity\": 1,\n    \"is_active\": true\n}"},"url":"{{url}}/assemblies/{{assemblyid}}/item/{{assemblyitemid}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"207"},{"key":"ETag","value":"W/\"cf-OyNniBPFWSe7bN34r+yVcONI2Cg\""},{"key":"Date","value":"Wed, 26 Jun 2019 08:42:56 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"assembly_item\": {\n            \"id\": \"10\",\n            \"company_id\": \"1\",\n            \"assembly_id\": 15,\n            \"item_id\": 31,\n            \"quantity\": \"1.0000\",\n            \"is_active\": true,\n            \"last_updated_by\": \"119\",\n            \"last_updated\": \"2019-06-26T08:42:56.811Z\"\n        }\n    }\n}"}],"_postman_id":"9a01cfd9-2fb3-4bed-86fe-6e9a39f7703a"}],"id":"1afc1a03-648d-453e-9257-7ea451ae4bab","description":"<p>Assembly routes</p>\n","event":[{"listen":"prerequest","script":{"id":"6dd3dd0d-69a5-4dbe-bafb-acc4a38f71fb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a2ec18de-c1cf-436a-b9b9-6af392a7cc06","type":"text/javascript","exec":[""]}}],"_postman_id":"1afc1a03-648d-453e-9257-7ea451ae4bab","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Attachments","item":[{"name":"Customer Attachment List","id":"71812c2e-ee5c-4146-8a5f-6f4d213baed3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/attachments/customers/25","description":"<p>Get sumarised list of customer attachments</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","customers","25"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"7d49269d-8bee-4fd2-a451-1a69013b1afb","name":"Customer Attachment List","originalRequest":{"method":"GET","header":[],"url":"{{url}}/attachments/customers/25"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"368"},{"key":"ETag","value":"W/\"170-v9zk70hI/l3I5snEp87AOJJCnp4\""},{"key":"Date","value":"Thu, 18 Jul 2019 16:19:09 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"files\": [\n            {\n                \"file_name\": \"hello234.txt\",\n                \"size\": 599,\n                \"last_modified\": \"2019-07-18T15:21:30.000Z\"\n            },\n            {\n                \"file_name\": \"hello252.txt\",\n                \"size\": 60,\n                \"last_modified\": \"2019-07-18T10:31:51.000Z\"\n            },\n            {\n                \"file_name\": \"item321.txt\",\n                \"size\": 599,\n                \"last_modified\": \"2019-07-18T14:43:54.000Z\"\n            },\n            {\n                \"file_name\": \"item322.txt\",\n                \"size\": 337,\n                \"last_modified\": \"2019-07-18T14:43:54.000Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"71812c2e-ee5c-4146-8a5f-6f4d213baed3"},{"name":"Document Attachment List","id":"87c0b9e4-f038-49d5-9e62-5323a31ff92d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/attachments/items/42","description":"<p>Get sumarised list of item attachments</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","items","42"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"7355b2b6-4b1e-47f0-b573-af1bd59efd75","name":"Document Attachment List","originalRequest":{"method":"GET","header":[],"url":"{{url}}/attachments/items/42"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"203"},{"key":"ETag","value":"W/\"cb-EE+dixH0EDLur3wv719Ck2dJVSA\""},{"key":"Date","value":"Thu, 18 Jul 2019 16:22:12 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"files\": [\n            {\n                \"file_name\": \"item321.txt\",\n                \"size\": 599,\n                \"last_modified\": \"2019-07-18T11:12:33.000Z\"\n            },\n            {\n                \"file_name\": \"item323.txt\",\n                \"size\": 521,\n                \"last_modified\": \"2019-07-18T15:44:26.000Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"87c0b9e4-f038-49d5-9e62-5323a31ff92d"},{"name":"Item Attachment List","id":"023e31d6-9a70-46bc-9e0f-c32a3c7763df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/attachments/items/42","description":"<p>Get sumarised list of item attachments</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","items","42"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"2b8383fa-a385-4196-94d8-4f73a0e4ec6d","name":"Item Attachment List","originalRequest":{"method":"GET","header":[],"url":"{{url}}/attachments/items/42"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"203"},{"key":"ETag","value":"W/\"cb-EE+dixH0EDLur3wv719Ck2dJVSA\""},{"key":"Date","value":"Thu, 18 Jul 2019 16:22:45 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"files\": [\n            {\n                \"file_name\": \"item321.txt\",\n                \"size\": 599,\n                \"last_modified\": \"2019-07-18T11:12:33.000Z\"\n            },\n            {\n                \"file_name\": \"item323.txt\",\n                \"size\": 521,\n                \"last_modified\": \"2019-07-18T15:44:26.000Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"023e31d6-9a70-46bc-9e0f-c32a3c7763df"},{"name":"Supplier Attachment List","id":"964593ed-cd28-45e9-991e-32ff78d707a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/attachments/suppliers/42","description":"<p>Get sumarised list of supplier attachments</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","suppliers","42"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"249421f5-78ad-4112-b7a9-bca1826c2eb3","name":"Supplier Attachment List","originalRequest":{"method":"GET","header":[],"url":"{{url}}/attachments/suppliers/42"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"203"},{"key":"ETag","value":"W/\"cb-m2v5ehW3RYu9UJGZUKBhWWf2zwY\""},{"key":"Date","value":"Thu, 18 Jul 2019 16:23:30 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"files\": [\n            {\n                \"file_name\": \"item321.txt\",\n                \"size\": 599,\n                \"last_modified\": \"2019-07-18T15:45:29.000Z\"\n            },\n            {\n                \"file_name\": \"item323.txt\",\n                \"size\": 521,\n                \"last_modified\": \"2019-07-18T15:45:29.000Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"964593ed-cd28-45e9-991e-32ff78d707a7"},{"name":"Vehicle Attachment List","id":"47dd02ba-9d9d-43e5-bf3e-881a386d0e41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/attachments/vehicles/33","description":"<p>Get sumarised list of vehicle attachments</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","vehicles","33"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"ea48eb25-da67-47ca-86dd-6ef5fd1ec5a2","name":"Vehicle Attachment List","originalRequest":{"method":"GET","header":[],"url":"{{url}}/attachments/vehicles/33"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"203"},{"key":"ETag","value":"W/\"cb-uEYosxcczHswCyuqy85ez18HKv8\""},{"key":"Date","value":"Thu, 18 Jul 2019 16:23:41 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"files\": [\n            {\n                \"file_name\": \"item321.txt\",\n                \"size\": 599,\n                \"last_modified\": \"2019-07-18T15:00:49.000Z\"\n            },\n            {\n                \"file_name\": \"item323.txt\",\n                \"size\": 521,\n                \"last_modified\": \"2019-07-18T15:00:49.000Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"47dd02ba-9d9d-43e5-bf3e-881a386d0e41"},{"name":"Get Customer Attachment URL","id":"ca16ebc7-9a47-40a8-a1cd-e477b83a4249","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/attachments/customers/25/hello252.txt","description":"<p>Get customer attachments URL</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","customers","25","hello252.txt"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"198466d0-a350-4e88-a978-e13d11ac25b2","name":"Get Customer Attachment URL","originalRequest":{"method":"GET","header":[],"url":"{{url}}/attachments/customers/25/hello252.txt"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"413"},{"key":"ETag","value":"W/\"19d-nMsUWMDZiUQtS8+YTiCxJCIp9fA\""},{"key":"Date","value":"Thu, 18 Jul 2019 16:24:35 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"upload_url\": \"https://s3.eu-west-2.amazonaws.com/devdata.autointouch.online/14/attachments/customers/25/hello252.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAI3DUKKEDTG3UL74A%2F20190718%2Feu-west-2%2Fs3%2Faws4_request&X-Amz-Date=20190718T162435Z&X-Amz-Expires=600&X-Amz-Signature=7c547e1b1b3be391dc9876f6ea3223d91686781f86d8f7a8d9b884a26025ccdd&X-Amz-SignedHeaders=host\"\n    }\n}"}],"_postman_id":"ca16ebc7-9a47-40a8-a1cd-e477b83a4249"},{"name":"Get Document Attachment URL","id":"8780ee22-1820-4f2a-8ead-7619fb7a661a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/attachments/documents/55/hello.txt","description":"<p>Get document attachments URL</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","documents","55","hello.txt"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"7f1d8fb3-7871-4190-83d6-d7c6cdb868af","name":"Get Document Attachment URL","originalRequest":{"method":"GET","header":[],"url":"{{url}}/attachments/documents/55/hello.txt"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"410"},{"key":"ETag","value":"W/\"19a-/zg0DlI1Bjxmyhluvz/DmjHsis4\""},{"key":"Date","value":"Thu, 18 Jul 2019 16:24:52 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"upload_url\": \"https://s3.eu-west-2.amazonaws.com/devdata.autointouch.online/14/attachments/documents/55/hello.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAI3DUKKEDTG3UL74A%2F20190718%2Feu-west-2%2Fs3%2Faws4_request&X-Amz-Date=20190718T162452Z&X-Amz-Expires=600&X-Amz-Signature=b1e6858a80169c7ac21204a1af48889856162377416af08b973f660a2418fc4d&X-Amz-SignedHeaders=host\"\n    }\n}"}],"_postman_id":"8780ee22-1820-4f2a-8ead-7619fb7a661a"},{"name":"Get Item Attachment URL","id":"ce3c2947-0004-4f51-9d31-ced88945f08e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/attachments/items/42/item322.txt","description":"<p>Get customer attachments URL</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","items","42","item322.txt"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"1e681bd1-4fb9-402c-95ac-567ca0522db2","name":"Get Item Attachment URL","originalRequest":{"method":"GET","header":[],"url":"{{url}}/attachments/items/42/item322.txt"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"68"},{"key":"ETag","value":"W/\"44-MgKA3VkPSv39kTsZhXSRh3KL4Oc\""},{"key":"Date","value":"Thu, 18 Jul 2019 16:26:20 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"item322.txt Not Fornd\",\n    \"statusCode\": 404\n}"}],"_postman_id":"ce3c2947-0004-4f51-9d31-ced88945f08e"},{"name":"Get Supplier Attachment URL","id":"32343af6-5e48-4258-ae3a-53c6c5532bec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/attachments/suppliers/42/item322.txt","description":"<p>Get customer attachments URL</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","suppliers","42","item322.txt"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"2bab082c-f41e-4eca-93ec-a9babbfdedbc","name":"Get Supplier Attachment URL","originalRequest":{"method":"GET","header":[],"url":"{{url}}/attachments/suppliers/42/item322.txt"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"412"},{"key":"ETag","value":"W/\"19c-g4KqYiGo3gfm0RpGgSM1ZmUULrk\""},{"key":"Date","value":"Thu, 18 Jul 2019 16:28:16 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"upload_url\": \"https://s3.eu-west-2.amazonaws.com/devdata.autointouch.online/14/attachments/suppliers/42/item322.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAI3DUKKEDTG3UL74A%2F20190718%2Feu-west-2%2Fs3%2Faws4_request&X-Amz-Date=20190718T162816Z&X-Amz-Expires=600&X-Amz-Signature=553e4dd59043fea645071fbea3ad28a1ed4768f2eb39e7945349d2933f3f6d9e&X-Amz-SignedHeaders=host\"\n    }\n}"}],"_postman_id":"32343af6-5e48-4258-ae3a-53c6c5532bec"},{"name":"Get Vehicle Attachment URL","id":"5858ac92-31b3-4e7f-ad81-7ee7d1e45445","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/attachments/vehicles/33/item322.txt","description":"<p>Get customer attachments URL</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","vehicles","33","item322.txt"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"d8749277-6648-470b-bbe9-77a1a32b560d","name":"Get Vehicle Attachment URL","originalRequest":{"method":"GET","header":[],"url":"{{url}}/attachments/vehicles/33/item322.txt"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"411"},{"key":"ETag","value":"W/\"19b-kz4sXwjqqb4huyWcjTBNd0yqrdY\""},{"key":"Date","value":"Thu, 18 Jul 2019 16:28:52 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"upload_url\": \"https://s3.eu-west-2.amazonaws.com/devdata.autointouch.online/14/attachments/vehicles/33/item322.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAI3DUKKEDTG3UL74A%2F20190718%2Feu-west-2%2Fs3%2Faws4_request&X-Amz-Date=20190718T162852Z&X-Amz-Expires=600&X-Amz-Signature=369a42d4d268ed715cef7f457460642fe06ffdc3a0474550c60494fa44fe085f&X-Amz-SignedHeaders=host\"\n    }\n}"}],"_postman_id":"5858ac92-31b3-4e7f-ad81-7ee7d1e45445"},{"name":"Create Customer Attachment","id":"ca8ab799-d896-41e8-ba9a-2916fc52757e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\n    \"file_name\": \"hello234.txt\"\n   \n  }"},"url":"{{url}}/attachments/customers/25","description":"<p>GET url for new file attachment</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","customers","25"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"a0c79094-5f3d-456a-a3a0-c7657f8cd52b","name":"Create Customer Attachment","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\n    \"file_name\": \"hello234.txt\"\n   \n  }"},"url":"{{url}}/attachments/customers/25"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"413"},{"key":"ETag","value":"W/\"19d-xgxv5dziSFbPZuscpoPtyW2RPZE\""},{"key":"Date","value":"Thu, 18 Jul 2019 15:19:38 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"upload_url\": \"https://s3.eu-west-2.amazonaws.com/devdata.autointouch.online/14/attachments/customers/25/hello234.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAI3DUKKEDTG3UL74A%2F20190718%2Feu-west-2%2Fs3%2Faws4_request&X-Amz-Date=20190718T151938Z&X-Amz-Expires=600&X-Amz-Signature=4bf6c1fd820dfdba902bdcfda0a8c6b822ae75db609ecb246a39565605b116f3&X-Amz-SignedHeaders=host\"\n    }\n}"}],"_postman_id":"ca8ab799-d896-41e8-ba9a-2916fc52757e"},{"name":"Create Document Attachment","id":"42cf1818-2e12-493a-ae84-9e98a7b5db17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"file_name\": \"hello.txt\",\n    \"overwrite\":true\n  }"},"url":"{{url}}/attachments/documents/55","description":"<p>GET url for new file attachment</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","documents","55"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"6004774a-0993-4cf7-aa50-455a16c89a4d","name":"Create Document Attachment","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"file_name\": \"hello.txt\",\n    \"overwrite\":true\n  }"},"url":"{{url}}/attachments/documents/55"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"42cf1818-2e12-493a-ae84-9e98a7b5db17"},{"name":"Create Item Attachment","id":"679564fb-88ef-4121-8441-a6c7412c6d6b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"file_name\": \"item322.txt\",\n    \"overwrite\":true\n  }"},"url":"{{url}}/attachments/items/42","description":"<p>GET url for new file attachment</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","items","42"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"ea51fd40-21f1-4531-ab23-65665ed8f057","name":"Create Item Attachment","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"file_name\": \"item322.txt\",\n    \"overwrite\":true\n  }"},"url":"{{url}}/attachments/items/42"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"679564fb-88ef-4121-8441-a6c7412c6d6b"},{"name":"Create Supplier Attachment","id":"c90284fd-73d6-4a22-8e2f-0a2ddb6284bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"file_name\": \"item322.txt\",\n    \"overwrite\":true\n  }"},"url":"{{url}}/attachments/suppliers/42","description":"<p>GET url for new file attachment</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","suppliers","42"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"5cb97662-482a-484a-9c29-09987e261491","name":"Create Supplier Attachment","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"file_name\": \"item322.txt\",\n    \"overwrite\":true\n  }"},"url":"{{url}}/attachments/suppliers/42"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"c90284fd-73d6-4a22-8e2f-0a2ddb6284bc"},{"name":"Create Vehicle Attachment","id":"73bb2a43-8d17-4d8a-9ed4-6f1c7718dd4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"file_name\": \"item322.txt\",\n    \"overwrite\":true\n  }"},"url":"{{url}}/attachments/vehicles/33","description":"<p>GET url for new file attachment</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","vehicles","33"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"d60aab52-945c-4a70-8638-dcb02abd7ab3","name":"Create Vehicle Attachment","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"file_name\": \"item322.txt\",\n    \"overwrite\":true\n  }"},"url":"{{url}}/attachments/vehicles/33"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"73bb2a43-8d17-4d8a-9ed4-6f1c7718dd4f"},{"name":"Delete Customer Attachment","id":"1960e4fb-518e-46e4-95d4-a9e566e7e2fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/attachments/customers/25/item322.txt","description":"<p>Delete customer attachments</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","customers","25","item322.txt"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"f1eea0f1-848c-4100-ae93-f16cec96c725","name":"Delete Customer Attachment","originalRequest":{"method":"DELETE","header":[],"url":"{{url}}/attachments/customers/25/item322.txt"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"1960e4fb-518e-46e4-95d4-a9e566e7e2fc"},{"name":"Delete Document Attachment","id":"97a5bee6-3390-439b-a09f-ef43d166c900","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/attachments/documents/55/item322.txt","description":"<p>Delete document attachments</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","documents","55","item322.txt"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"b6630f86-6113-4ad5-95ff-6a8d566e127e","name":"Delete Document Attachment","originalRequest":{"method":"DELETE","header":[],"url":"{{url}}/attachments/documents/55/item322.txt"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"97a5bee6-3390-439b-a09f-ef43d166c900"},{"name":"Delete Item Attachment","id":"813f06b7-6257-4c7e-a455-2b26e33cf884","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/attachments/items/42/item322.txt","description":"<p>Delete item attachment</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","items","42","item322.txt"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"65a02010-18a3-4bb5-aeef-1b8769a7d3f4","name":"Delete Item Attachment","originalRequest":{"method":"DELETE","header":[],"url":"{{url}}/attachments/items/42/item322.txt"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"813f06b7-6257-4c7e-a455-2b26e33cf884"},{"name":"Delete Supplier Attachment","id":"d4d49c80-3fb1-462f-bebb-75050f95c8ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/attachments/suppliers/42/item322.txt","description":"<p>Delete supplier attachment</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","suppliers","42","item322.txt"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"1dd13919-9837-4fa2-a33a-bdb86df85f6c","name":"Delete Supplier Attachment","originalRequest":{"method":"DELETE","header":[],"url":"{{url}}/attachments/suppliers/42/item322.txt"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"d4d49c80-3fb1-462f-bebb-75050f95c8ab"},{"name":"Delete Vehicle Attachment","id":"bf47c27e-1a2c-4986-99bb-3ac3c810a8a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/attachments/vehicles/33/item322.txt","description":"<p>Delete vehicle attachments</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["attachments","vehicles","33","item322.txt"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"f9d09559-f792-4553-bd22-1cda743b264d","name":"Delete Vehicle Attachment","originalRequest":{"method":"DELETE","header":[],"url":"{{url}}/attachments/vehicles/33/item322.txt"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"bf47c27e-1a2c-4986-99bb-3ac3c810a8a8"}],"id":"10e378a1-28c4-4063-a74f-5888c08b6dec","description":"<p>Customer routes</p>\n","event":[{"listen":"prerequest","script":{"id":"6dd3dd0d-69a5-4dbe-bafb-acc4a38f71fb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a2ec18de-c1cf-436a-b9b9-6af392a7cc06","type":"text/javascript","exec":[""]}}],"_postman_id":"10e378a1-28c4-4063-a74f-5888c08b6dec","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Booking","item":[{"name":"Import booking","id":"2fce2ab1-d189-47a6-806c-d0231b4fc5be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"booking\": [\n    {\n      \"id\": \"585\",\n      \"is_active\": true,\n      \"company_id\": \"24\",\n      \"last_updated\": \"2021-09-07T10:29:23.278Z\",\n      \"last_updated_by\": \"32\",\n      \"vrm_lookup_id\": null,\n      \"branch_id\": \"37\",\n      \"booking_mode\": \"appointment\",\n      \"booking_period\": \"[\\\"2021-09-22 11:00:00+01\\\",\\\"2021-09-22 12:00:00+01\\\")\",\n      \"bay_id\": \"28\",\n      \"item_id\": \"58\",\n      \"customer_id\": \"482\",\n      \"vehicle_id\": \"482\",\n      \"ait_job_id\": null,\n      \"created_at\": \"2021-09-07T10:29:23.278Z\",\n      \"branch_item_id\": \"58\",\n      \"package_group_ref\": \"537\",\n      \"package_code\": \"MOTWEBC4\",\n      \"notes\": \"\",\n      \"booking_source\": \"web\",\n      \"ait_ref\": \"0\",\n      \"item\": {\n        \"id\": \"58\",\n        \"is_active\": true,\n        \"company_id\": \"24\",\n        \"last_updated\": \"2021-06-21T15:26:43.564Z\",\n        \"last_updated_by\": \"33\",\n        \"item_code\": \"MOTWEBC4\",\n        \"description\": \"Class 4 MOT\",\n        \"vat_rate\": \"0.0000\",\n        \"sell_price\": \"48.0000\",\n        \"extended_desc\": \"\",\n        \"confirm_template_id\": null,\n        \"cancel_template_id\": null,\n        \"item_type\": \"mot\"\n      },\n      \"ait_code\": \"MOT/TEST\",\n      \"booking_date\": \"2021-09-22T10:00:00.000Z\",\n      \"time_required_mins\": 60\n    }\n  ],\n  \"email\": {\n    \"Content\": {\n      \"Simple\": {\n        \"Body\": {\n          \"Html\": {\n            \"Data\": \"<html><head> <meta name=\\\"viewport\\\" content=\\\"width=device-width\\\"> <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=UTF-8\\\"> <title>Invoice</title> <link href=\\\"https://fonts.googleapis.com/css?family=Open+Sans\\\" rel=\\\"stylesheet\\\" type=\\\"text/css\\\" /> <style> body { font-family: Arial, sans-serif, 'Open Sans'; max-width: 800px; margin: 40px auto 100px; } </style></head><body> Dear  Mr Cade  <br><br> Thank you for booking your Class 4 MOT for your Ford Focus RS, registration CE53OTF with 44 Test company 2109822 44 Test company 2109822. <br><br> We can confirm it is for Wed Sep 22 2021 at 11:00. Please ensure your vehicle is with us at least 5 minutes before your appointment. <br><br> If you have any queries, please contact us on 01234444444 or lfittall@mttltd.com <br><br> We look forward to seeing you, <br><br> 44 Test company 2109822 44 Test company 2109822<br> 4231<br>   1234<br>  2134<br> <br> To cancel your booking <a href=\\\"https://booking-test.autointouch.online/cancellation?ref=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJib29raW5nX3JlZiI6IjUzNyIsInRpdGxlIjoiTXIiLCJmaXJzdF9uYW1lIjoiVG9ueSIsInN1cm5hbWUiOiJDYWRlIiwicmVnaXN0cmF0aW9uIjoiQ0U1M09URiIsIml0ZW1fZGVzY3JpcHRpb24iOiJDbGFzcyA0IE1PVCIsIm1ha2UiOiJGb3JkIiwibW9kZWwiOiJGb2N1cyBSUyIsImJvb2tpbmdfZGF0ZV9pc28iOiIyMDIxLTA5LTIyIiwiYm9va2luZ19kYXRlIjoiV2VkIFNlcCAyMiAyMDIxIiwiYm9va2luZ190aW1lIjoiMTE6MDAiLCJjb21wYW55X2lkIjoiMjQiLCJicmFuY2hfbmFtZSI6IjQ0IFRlc3QgY29tcGFueSAyMTA5ODIyIiwicGhvbmVfbnVtYmVyIjoiMDEyMzQ0NDQ0NDQiLCJpYXQiOjE2MzEwMTA1NjMsImV4cCI6MTY2MjU0NjU2M30.ZQxBiH8R3k-vC9z8cPHxkdGBd229AQqewLg1exQYf-M\\\">click here</a> <br><br></body></html>\",\n            \"Charset\": \"UTF-8\"\n          }\n        },\n        \"Subject\": {\n          \"Data\": \"Booking Confirmation\"\n        }\n      }\n    },\n    \"Destination\": {\n      \"ToAddresses\": [\"tony@acade.xyz\"],\n      \"CcAddresses\": [],\n      \"BccAddresses\": [\"lfittall@mttltd.com\"]\n    },\n    \"FromEmailAddress\": \"no-reply@autointouch.online\",\n    \"ReplyToAddresses\": [\"lfittall@mttltd.com\"],\n    \"ConfigurationSetName\": \"booking-dev\"\n  },\n  \"customer\": {\n    \"id\": \"482\",\n    \"is_active\": true,\n    \"company_id\": \"24\",\n    \"last_updated\": \"2021-09-07T10:29:23.278Z\",\n    \"last_updated_by\": \"32\",\n    \"ait_id\": null,\n    \"ait_address_id\": null,\n    \"title\": \"Mr\",\n    \"first_name\": \"John\",\n    \"surname\": \"Smith\",\n    \"email_address\": \"tony@acade.xyzzz\",\n    \"phone_number\": \"01234569878\",\n    \"customer_code\": null,\n    \"address1\": \"\",\n    \"address2\": \"\",\n    \"address3\": \"\",\n    \"city\": \"\",\n    \"county\": \"\",\n    \"postcode\": \"\"\n  },\n  \"vehicle\": {\n    \"id\": \"482\",\n    \"is_active\": true,\n    \"company_id\": \"24\",\n    \"last_updated\": \"2021-09-07T10:29:23.278Z\",\n    \"last_updated_by\": \"32\",\n    \"ait_id\": null,\n    \"customer_id\": \"482\",\n    \"seq\": \"01\",\n    \"dateoftransaction\": \"20121026\",\n    \"vrm\": \"CE53OTF\",\n    \"vinconfirmationflag\": \"0\",\n    \"enginecapacity\": \"01999\",\n    \"doorplan\": \"14\",\n    \"datefirstregistered\": \"20120930\",\n    \"yearofmanufacture\": \"2012\",\n    \"scrapped\": \"0\",\n    \"exported\": \"0\",\n    \"imported\": \"0\",\n    \"make\": \"Ford\",\n    \"model\": \"Focus RS\",\n    \"colour\": \"BLUE\",\n    \"transmission\": \"MANUAL 6 GEARS\",\n    \"enginenumber\": \"CD78129\",\n    \"vinserialnumber\": \"WF0KXXGCBKCD78129\",\n    \"doorplanliteral\": \"3 DOOR HATCHBACK\",\n    \"mvrismakecode\": \"M1\",\n    \"mvrismodelcode\": \"KES\",\n    \"dtpmakecode\": \"MN\",\n    \"dtpmodelcode\": \"393\",\n    \"transmissioncode\": \"M\",\n    \"gears\": \"6\",\n    \"fuel\": \"PETROL\",\n    \"co2emissions\": \"169\",\n    \"usedbefore1streg\": \"0\",\n    \"importnoneu\": \"0\",\n    \"ukdatefirstregistered\": \"20120930\",\n    \"maxpermissiblemass\": \"02025\",\n    \"maxnetpower\": \"184\",\n    \"soundlvlstationary\": \"084\",\n    \"soundlvldriveby\": \"75\",\n    \"soundlevelenginespeed\": \"03750\",\n    \"seatingcapacity\": \"005\",\n    \"massinservice\": \"000001497\",\n    \"makemodel\": \"Ford Focus RS\"\n  },\n  \"mtt_account_id\": \"400001\"\n}\n","options":{"raw":{"language":"json"}}},"url":"{{url}}/booking/new_booking","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["booking","new_booking"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2fce2ab1-d189-47a6-806c-d0231b4fc5be"},{"name":"Import booking - new vehicle owner","id":"3453cf08-26ae-4cb5-8971-76aa20a01310","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"booking\": [\n    {\n      \"id\": \"594\",\n      \"is_active\": true,\n      \"company_id\": \"35\",\n      \"last_updated\": \"2021-09-13T13:09:19.485Z\",\n      \"last_updated_by\": \"56\",\n      \"branch_id\": \"56\",\n      \"booking_mode\": \"appointment\",\n      \"booking_period\": \"[\\\"2021-09-13 16:00:00+01\\\",\\\"2021-09-13 17:00:00+01\\\")\",\n      \"bay_id\": \"48\",\n      \"item_id\": \"105\",\n      \"customer_id\": \"491\",\n      \"vehicle_id\": \"491\",\n      \"created_at\": \"2021-09-13T13:09:19.485Z\",\n      \"branch_item_id\": \"101\",\n      \"package_group_ref\": \"546\",\n      \"package_code\": \"MOT\",\n      \"notes\": \"\",\n      \"booking_source\": \"web\",\n      \"ait_ref\": \"0\",\n      \"item\": {\n        \"id\": \"105\",\n        \"is_active\": true,\n        \"company_id\": \"35\",\n        \"last_updated\": \"2021-09-13T10:20:35.492Z\",\n        \"last_updated_by\": \"57\",\n        \"item_code\": \"MOT\",\n        \"description\": \"MOT\",\n        \"vat_rate\": \"20.0000\",\n        \"sell_price\": \"10.0000\",\n        \"extended_desc\": \"MOT\",\n        \"item_type\": \"mot\"\n      },\n      \"ait_code\": \"MOT/TEST\",\n      \"booking_date\": \"2021-09-13T15:00:00.000Z\",\n      \"time_required_mins\": 60\n    }\n  ],\n  \"email\": {\n    \"Content\": {\n      \"Simple\": {\n        \"Body\": {\n          \"Html\": {\n            \"Data\": \"<html><head> <meta name=\\\"viewport\\\" content=\\\"width=device-width\\\"> <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=UTF-8\\\"> <title>Invoice</title> <link href=\\\"https://fonts.googleapis.com/css?family=Open+Sans\\\" rel=\\\"stylesheet\\\" type=\\\"text/css\\\" /> <style> body { font-family: Arial, sans-serif, ''Open Sans''; max-width: 800px; margin: 40px auto 100px; } </style></head><body> Dear  Mr Christie  <br><br> Thank you for booking your MOT for your PEUGEOT BOXER HDI 335 L3 F/C, registration YJ16GTV  with Noo Noo. <br><br> We can confirm it is for Mon Sep 13 2021 at 16:00. Please ensure your vehicle is with us at least 5 minutes before your appointment. <br><br> If you have any queries, please contact us on 01278782149 or nchristie@mttltd.com <br><br> We look forward to seeing you, <br><br> Noo Noo<br> 16 West Avenue<br>   Highbridge<br>  Somerset<br> TA9 3HB<br> <br> To cancel your booking <a href=\\\"https://booking-test.autointouch.online/cancellation?ref=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJib29raW5nX3JlZiI6IjU0NiIsInRpdGxlIjoiTXIiLCJmaXJzdF9uYW1lIjoiUmljaGFyZCIsInN1cm5hbWUiOiJDaHJpc3RpZSIsInJlZ2lzdHJhdGlvbiI6IllKMTZHVFYgIiwiaXRlbV9kZXNjcmlwdGlvbiI6Ik1PVCIsIm1ha2UiOiJQRVVHRU9UIiwibW9kZWwiOiJCT1hFUiBIREkgMzM1IEwzIEYvQyIsImJvb2tpbmdfZGF0ZV9pc28iOiIyMDIxLTA5LTEzIiwiYm9va2luZ19kYXRlIjoiTW9uIFNlcCAxMyAyMDIxIiwiYm9va2luZ190aW1lIjoiMTY6MDAiLCJjb21wYW55X2lkIjoiMzUiLCJicmFuY2hfbmFtZSI6Ik5vbyIsInBob25lX251bWJlciI6IjAxMjc4NzgyMTQ5IiwiaWF0IjoxNjMxNTM4NTU5LCJleHAiOjE2NjMwNzQ1NTl9.I04V-U51AYmp_X-g7J8l3_3B5fAvI8xONJAJlOIxvHI\\\">click here</a> <br><br></body></html>\",\n            \"Charset\": \"UTF-8\"\n          }\n        },\n        \"Subject\": {\n          \"Data\": \"Booking Confirmation\"\n        }\n      }\n    },\n    \"Destination\": {\n      \"ToAddresses\": [\"rchristie@mttltd.com\"],\n      \"CcAddresses\": [],\n      \"BccAddresses\": [\"nchristie@mttltd.com\"]\n    },\n    \"FromEmailAddress\": \"no-reply@autointouch.online\",\n    \"ReplyToAddresses\": [\"nchristie@mttltd.com\"],\n    \"ConfigurationSetName\": \"booking-dev\"\n  },\n  \"sms\": {\n    \"to\": \"07484868681\",\n    \"message\": \"Thank you for booking an MOT for your PEUGEOT YJ16GTV  at Noo Noo on Mon Sep 13 2021 @ 16:00.Contact # 01278782149\",\n    \"mttid\": \"N00002\"\n  },\n  \"customer\": {\n    \"id\": \"491\",\n    \"is_active\": true,\n    \"company_id\": \"35\",\n    \"last_updated\": \"2021-09-13T13:09:19.485Z\",\n    \"last_updated_by\": \"56\",\n    \"title\": \"Mr\",\n    \"first_name\": \"Richard\",\n    \"surname\": \"Christie\",\n    \"email_address\": \"rchristie@mttltd.com\",\n    \"phone_number\": \"07484868681\",\n    \"address1\": \"\",\n    \"address2\": \"\",\n    \"address3\": \"\",\n    \"city\": \"\",\n    \"county\": \"\",\n    \"postcode\": \"\"\n  },\n    \"vehicle\": {\n    \"id\": \"494\",\n    \"is_active\": true,\n    \"company_id\": \"35\",\n    \"last_updated\": \"2021-09-13T15:25:59.699Z\",\n    \"last_updated_by\": \"56\",\n    \"ait_id\": null,\n    \"customer_id\": \"494\",\n    \"seq\": \"01\",\n    \"dateoftransaction\": \"\",\n    \"vrm\": \"PAT1    \",\n    \"vinconfirmationflag\": \"0\",\n    \"enginecapacity\": \"\",\n    \"doorplan\": \"72\",\n    \"datefirstregistered\": \"zxzxzxzzxzxzzxz\",\n    \"yearofmanufacture\": \"\",\n    \"scrapped\": \"\",\n    \"exported\": \"\",\n    \"imported\": \"0\",\n    \"make\": \"EASY RIDER\",\n    \"model\": \"M 50 JC 50 Q-7\",\n    \"colour\": \"UNKNOWN\",\n    \"transmission\": \"UNKNOWN\",\n    \"enginenumber\": \"DD42002510\",\n    \"vinserialnumber\": \"LJCPCBLA641001467\",\n    \"doorplanliteral\": \"zzzzzz\",\n    \"mvrismakecode\": \"*\",\n    \"mvrismodelcode\": \"*\",\n    \"dtpmakecode\": \"RK\",\n    \"dtpmodelcode\": \"014\",\n    \"transmissioncode\": \"zxzxz\",\n    \"gears\": \"\",\n    \"fuel\": \"zzzzzzzz\",\n    \"co2emissions\": \"zxzxz\",\n    \"usedbefore1streg\": \"\",\n    \"importnoneu\": \"\",\n    \"ukdatefirstregistered\": \"UNKNOWN\",\n    \"maxpermissiblemass\": \"\",\n    \"maxnetpower\": \"\",\n    \"soundlvlstationary\": \"\",\n    \"soundlvldriveby\": \"\",\n    \"soundlevelenginespeed\": \"\",\n    \"seatingcapacity\": \"\",\n    \"massinservice\": \"\",\n    \"makemodel\": \"EASY RIDER M 50 JC 50 Q-7\"\n  },\n\n  \"booking_source\": \"web\",\n  \"mtt_account_id\": \"400001\"\n}\n","options":{"raw":{"language":"json"}}},"url":"{{url}}/booking/new_booking","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["booking","new_booking"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3453cf08-26ae-4cb5-8971-76aa20a01310"},{"name":"Cancel booking","id":"5e9c3517-833b-4c3e-8dea-d6ebc8125bb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"booking\": [\n    {\n      \"id\": \"586\",\n      \"is_active\": false,\n      \"company_id\": \"24\",\n      \"last_updated\": \"2021-09-07T10:29:23.278Z\",\n      \"last_updated_by\": \"32\",\n      \"vrm_lookup_id\": null,\n      \"branch_id\": \"37\",\n      \"booking_mode\": \"appointment\",\n      \"booking_period\": \"[\\\"2021-09-22 11:00:00+01\\\",\\\"2021-09-22 12:00:00+01\\\")\",\n      \"bay_id\": \"28\",\n      \"item_id\": \"58\",\n      \"customer_id\": \"482\",\n      \"vehicle_id\": \"482\",\n      \"ait_job_id\": null,\n      \"created_at\": \"2021-09-07T10:29:23.278Z\",\n      \"branch_item_id\": \"58\",\n      \"package_group_ref\": \"537\",\n      \"package_code\": \"MOTWEBC4\",\n      \"notes\": \"\",\n      \"booking_source\": \"web\",\n      \"ait_ref\": \"0\",\n      \"item\": {\n        \"id\": \"58\",\n        \"is_active\": true,\n        \"company_id\": \"24\",\n        \"last_updated\": \"2021-06-21T15:26:43.564Z\",\n        \"last_updated_by\": \"33\",\n        \"item_code\": \"MOTWEBC4\",\n        \"description\": \"Class 4 MOT\",\n        \"vat_rate\": \"0.0000\",\n        \"sell_price\": \"48.0000\",\n        \"extended_desc\": \"\",\n        \"confirm_template_id\": null,\n        \"cancel_template_id\": null,\n        \"item_type\": \"mot\"\n      },\n      \"ait_code\": \"MOT/TEST\",\n      \"booking_date\": \"2021-09-22T10:00:00.000Z\",\n      \"time_required_mins\": 60\n    }\n  ],\n  \"email\": {\n    \"Content\": {\n      \"Simple\": {\n        \"Body\": {\n          \"Html\": {\n            \"Data\": \"<html><head> <meta name=\\\"viewport\\\" content=\\\"width=device-width\\\"> <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=UTF-8\\\"> <title>Invoice</title> <link href=\\\"https://fonts.googleapis.com/css?family=Open+Sans\\\" rel=\\\"stylesheet\\\" type=\\\"text/css\\\" /> <style> body { font-family: Arial, sans-serif, 'Open Sans'; max-width: 800px; margin: 40px auto 100px; } </style></head><body> Dear  Mr Cade  <br><br> Thank you for booking your Class 4 MOT for your Ford Focus RS, registration CE53OTF with 44 Test company 2109822 44 Test company 2109822. <br><br> We can confirm it is for Wed Sep 22 2021 at 11:00. Please ensure your vehicle is with us at least 5 minutes before your appointment. <br><br> If you have any queries, please contact us on 01234444444 or lfittall@mttltd.com <br><br> We look forward to seeing you, <br><br> 44 Test company 2109822 44 Test company 2109822<br> 4231<br>   1234<br>  2134<br> <br> To cancel your booking <a href=\\\"https://booking-test.autointouch.online/cancellation?ref=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJib29raW5nX3JlZiI6IjUzNyIsInRpdGxlIjoiTXIiLCJmaXJzdF9uYW1lIjoiVG9ueSIsInN1cm5hbWUiOiJDYWRlIiwicmVnaXN0cmF0aW9uIjoiQ0U1M09URiIsIml0ZW1fZGVzY3JpcHRpb24iOiJDbGFzcyA0IE1PVCIsIm1ha2UiOiJGb3JkIiwibW9kZWwiOiJGb2N1cyBSUyIsImJvb2tpbmdfZGF0ZV9pc28iOiIyMDIxLTA5LTIyIiwiYm9va2luZ19kYXRlIjoiV2VkIFNlcCAyMiAyMDIxIiwiYm9va2luZ190aW1lIjoiMTE6MDAiLCJjb21wYW55X2lkIjoiMjQiLCJicmFuY2hfbmFtZSI6IjQ0IFRlc3QgY29tcGFueSAyMTA5ODIyIiwicGhvbmVfbnVtYmVyIjoiMDEyMzQ0NDQ0NDQiLCJpYXQiOjE2MzEwMTA1NjMsImV4cCI6MTY2MjU0NjU2M30.ZQxBiH8R3k-vC9z8cPHxkdGBd229AQqewLg1exQYf-M\\\">click here</a> <br><br></body></html>\",\n            \"Charset\": \"UTF-8\"\n          }\n        },\n        \"Subject\": {\n          \"Data\": \"Booking Confirmation\"\n        }\n      }\n    },\n    \"Destination\": {\n      \"ToAddresses\": [\"tony@acade.xyz\"],\n      \"CcAddresses\": [],\n      \"BccAddresses\": [\"lfittall@mttltd.com\"]\n    },\n    \"FromEmailAddress\": \"no-reply@autointouch.online\",\n    \"ReplyToAddresses\": [\"lfittall@mttltd.com\"],\n    \"ConfigurationSetName\": \"booking-dev\"\n  },\n  \"customer\": {\n    \"id\": \"482\",\n    \"is_active\": true,\n    \"company_id\": \"24\",\n    \"last_updated\": \"2021-09-07T10:29:23.278Z\",\n    \"last_updated_by\": \"32\",\n    \"ait_id\": null,\n    \"ait_address_id\": null,\n    \"title\": \"Mr\",\n    \"first_name\": \"John\",\n    \"surname\": \"Smith\",\n    \"email_address\": \"tony@acade.xyzzz\",\n    \"phone_number\": \"01234569878\",\n    \"customer_code\": null,\n    \"address1\": \"\",\n    \"address2\": \"\",\n    \"address3\": \"\",\n    \"city\": \"\",\n    \"county\": \"\",\n    \"postcode\": \"\"\n  },\n  \"vehicle\": {\n    \"id\": \"482\",\n    \"is_active\": true,\n    \"company_id\": \"24\",\n    \"last_updated\": \"2021-09-07T10:29:23.278Z\",\n    \"last_updated_by\": \"32\",\n    \"ait_id\": null,\n    \"customer_id\": \"482\",\n    \"seq\": \"01\",\n    \"dateoftransaction\": \"20121026\",\n    \"vrm\": \"CE53OTF\",\n    \"vinconfirmationflag\": \"0\",\n    \"enginecapacity\": \"01999\",\n    \"doorplan\": \"14\",\n    \"datefirstregistered\": \"20120930\",\n    \"yearofmanufacture\": \"2012\",\n    \"scrapped\": \"0\",\n    \"exported\": \"0\",\n    \"imported\": \"0\",\n    \"make\": \"Ford\",\n    \"model\": \"Focus RS\",\n    \"colour\": \"BLUE\",\n    \"transmission\": \"MANUAL 6 GEARS\",\n    \"enginenumber\": \"CD78129\",\n    \"vinserialnumber\": \"WF0KXXGCBKCD78129\",\n    \"doorplanliteral\": \"3 DOOR HATCHBACK\",\n    \"mvrismakecode\": \"M1\",\n    \"mvrismodelcode\": \"KES\",\n    \"dtpmakecode\": \"MN\",\n    \"dtpmodelcode\": \"393\",\n    \"transmissioncode\": \"M\",\n    \"gears\": \"6\",\n    \"fuel\": \"PETROL\",\n    \"co2emissions\": \"169\",\n    \"usedbefore1streg\": \"0\",\n    \"importnoneu\": \"0\",\n    \"ukdatefirstregistered\": \"20120930\",\n    \"maxpermissiblemass\": \"02025\",\n    \"maxnetpower\": \"184\",\n    \"soundlvlstationary\": \"084\",\n    \"soundlvldriveby\": \"75\",\n    \"soundlevelenginespeed\": \"03750\",\n    \"seatingcapacity\": \"005\",\n    \"massinservice\": \"000001497\",\n    \"makemodel\": \"Ford Focus RS\"\n  },\n  \"mtt_account_id\": \"400001\"\n}\n","options":{"raw":{"language":"json"}}},"url":"{{url}}/booking/cancel_booking","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["booking","cancel_booking"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5e9c3517-833b-4c3e-8dea-d6ebc8125bb9"}],"id":"7f572bbd-2764-4874-9920-90d7d8bb4f96","_postman_id":"7f572bbd-2764-4874-9920-90d7d8bb4f96","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Company","item":[{"name":"Company List","id":"2500faac-1ff6-4a4b-b32e-833b30e665c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/Companies/276","description":"<p>Get sumarised list of customers</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["Companies","276"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"b35b879e-55bb-4e45-b3d8-b52d49fb995e","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"2500faac-1ff6-4a4b-b32e-833b30e665c3"},{"name":"Company by ID","id":"b1d811bb-06ee-4df7-b041-b5756fa9a8c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/Companies/276","description":"<p>Get sumarised list of customers</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["Companies","276"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"11286bac-57e0-4a2c-8c7b-3da7d06117ce","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"276\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"b1d811bb-06ee-4df7-b041-b5756fa9a8c4"},{"name":"Company List Licences","id":"546c658b-7dd2-47d5-94e5-068f68281b2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/dataservice/mot/526\n","description":"<p>Get sumarised list of customers</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["dataservice","mot","526\n"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"942b3373-c896-4bd6-9e27-05440817af5c","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"546c658b-7dd2-47d5-94e5-068f68281b2d"},{"name":"Company Get  Licence","id":"19a8a213-f7c0-4850-92f3-a728ff6559b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/Companies/181/licences/7","description":"<p>Get sumarised list of customers</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["Companies","181","licences","7"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"6a655526-cbf4-48c6-85b7-6f04b26dd217","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"19a8a213-f7c0-4850-92f3-a728ff6559b0"},{"name":"Company Create Licence","id":"a2a046ad-9860-4128-aa2d-9c8533c44c06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"company_id\": \"181\",\n  \"licence_id\": \"2\",\n  \"duration\": \"['2019-05-21 00:00:00+01','2019-06-20 00:00:00+01')\",\n  \"is_active\": \"true\"\n}\n"},"url":"{{url}}/Companies/181/licences","description":"<p>Get sumarised list of customers</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["Companies","181","licences"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"0876434a-dba3-478e-b123-b92ecc722b0a","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"a2a046ad-9860-4128-aa2d-9c8533c44c06"},{"name":"Create Company","id":"b75e2837-e563-4b4d-9abc-f37d56aeaad2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"company_name\": \"AC Motors \",\n  \"address1\": \"Unit 8\",\n  \"address2\": \"Morston Court\",\n  \"address3\": \"\",\n  \"city\": \"Weston-super-Mare\",\n  \"county\": \"\",\n  \"postcode\": \"BS22 8NG\",\n  \"is_active\": true,\n  \"company_number\": \"1234675\",\n  \"preferences\": {},\n  \"phone_number\": \"01934 421320\",\n  \"vat_number\": \"11223344\",\n  \"email_address\": \"acade@mttltd.com\",\n  \"accounts_type\": \"ALLinONE\"\n}"},"url":"{{url}}/Companies","description":"<p>Create new company for current user.Used only to initialise a company for a newly created user.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["Companies"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"f2b7af1f-bfec-46c9-ad1d-b38631aee9c6","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"b75e2837-e563-4b4d-9abc-f37d56aeaad2"},{"name":"Company Update Licence","id":"015f0dda-9280-415d-9c67-1f2cd582ddbd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"\n{\n  \"duration\": \"[\\\"2025-06-01 00:00:00+00\\\",\\\"2025-07-10 00:00:00+00\\\")\",\n  \"is_active\": false\n}\n"},"url":"{{url}}/Companies/276/licences/326","description":"<p>Get sumarised list of customers</p>\n","urlObject":{"path":["Companies","276","licences","326"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"f4c2b24d-34f0-4e95-8afa-d6516d89699e","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"015f0dda-9280-415d-9c67-1f2cd582ddbd"},{"name":"Update  Company","id":"c31feedd-0e42-4c6b-bee4-47264ed3cbf0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"company_name\": \"MTT feb 12\",\n  \"address1\": \"Unit 8\",\n  \"address2\": \"Morston Court\",\n  \"address3\": \"\",\n  \"city\": \"Weston-super-Mare\",\n  \"county\": \"\",\n  \"postcode\": \"BS22 8NG\",\n  \"is_active\": true,\n  \"company_number\": \"1234675\",\n  \"preferences\": {},\n  \"phone_number\": \"01934 421320\",\n  \"vat_number\": \"11223344\",\n  \"email_address\": \"support@mttltd.com\",\n  \"accounts_type\": \"Xero\"\n}"},"url":"{{url}}/Companies/61","description":"<p>Get sumarised list of customers</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["Companies","61"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"0112b413-ef1c-4cde-a5f4-f0511f78fec9","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"c31feedd-0e42-4c6b-bee4-47264ed3cbf0"},{"name":"company postcode","id":"bc880ab7-1073-404a-938f-15da53d07de2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"{{url}}/Companies","description":"<p>Company postcode lookup for use when registering a new company</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["Companies"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bc880ab7-1073-404a-938f-15da53d07de2"}],"id":"f6e04d0a-93a6-48b0-984c-6d47a87dca23","description":"<p>Customer routes</p>\n","event":[{"listen":"prerequest","script":{"id":"6dd3dd0d-69a5-4dbe-bafb-acc4a38f71fb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a2ec18de-c1cf-436a-b9b9-6af392a7cc06","type":"text/javascript","exec":[""]}}],"_postman_id":"f6e04d0a-93a6-48b0-984c-6d47a87dca23","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Branch","item":[{"name":"Branch List","id":"3e30e92e-b654-46dd-bb49-59d083fe41ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/branches","description":"<p>Get sumarised list of customers</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["branches"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"013e523c-25a1-4c30-8dbe-254434149ba9","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"3e30e92e-b654-46dd-bb49-59d083fe41ef"},{"name":"Branch by ID","id":"eb13eae7-6d70-4dd1-a082-c1c24b60e261","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/Companies/181","description":"<p>Get sumarised list of customers</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["Companies","181"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"ef53aef0-901e-4c6e-b8d0-36a051cc0b06","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"eb13eae7-6d70-4dd1-a082-c1c24b60e261"},{"name":"Create Branch","id":"675c23dc-3bde-42e5-86e8-52927408e29c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"company_id\": 1,\n  \"branch_name\": \"MTT feb 12\",\n  \"address1\": \"Unit 8\",\n  \"address2\": \"Morston Court\",\n  \"address3\": \"\",\n  \"city\": \"Weston-super-Mare\",\n  \"county\": \"\",\n  \"postcode\": \"BS22 8NG\",\n  \"phone_number\": \"01934 421320\",\n  \"email_address\": \"support@mttltd.com\",\n  \"is_active\": true\n}\n"},"url":"{{url}}/branches","description":"<p>Create new company for current user.Used only to initialise a company for a newly created user.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["branches"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"eb8ab502-e58c-43a2-a028-2b7023663d10","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"675c23dc-3bde-42e5-86e8-52927408e29c"},{"name":"Update  Branch","id":"fc217927-5277-464b-a3f3-1b7dba4c9a2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"id\": 32,\n  \"company_id\": 14,\n  \"branch_name\": \"MTT July 02\",\n  \"address1\": \"Unit 8\",\n  \"address2\": \"Morston Court\",\n  \"address3\": \"\",\n  \"city\": \"Weston-super-Mare\",\n  \"county\": \"\",\n  \"postcode\": \"BS22 8NG\",\n  \"phone_number\": \"01934 421320\",\n  \"email_address\": \"support@mttltd.com\",\n  \"is_active\": true\n}\n"},"url":"{{url}}/branches","description":"<p>Get sumarised list of customers</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["branches"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"ff551bd0-31b4-4a48-b492-9473c9a0e77f","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"fc217927-5277-464b-a3f3-1b7dba4c9a2f"}],"id":"99ab3ddf-15eb-4dc7-bcff-b36ee72c3697","description":"<p>Customer routes</p>\n","event":[{"listen":"prerequest","script":{"id":"6dd3dd0d-69a5-4dbe-bafb-acc4a38f71fb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a2ec18de-c1cf-436a-b9b9-6af392a7cc06","type":"text/javascript","exec":[""]}}],"_postman_id":"99ab3ddf-15eb-4dc7-bcff-b36ee72c3697","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Customer","item":[{"name":"Customer List","id":"7bb7327d-eed3-420d-88e6-f7fbf8741aba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/search?search=white","description":"<p>Get sumarised list of customers</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["search"],"host":["{{url}}"],"query":[{"key":"search","value":"white"}],"variable":[]}},"response":[{"id":"216ebcb0-4a79-4ce8-b258-8d5c11be69a7","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"7bb7327d-eed3-420d-88e6-f7fbf8741aba"},{"name":"Get customer by id","id":"74457f68-ece5-4ab2-90cf-b7ecb182d88f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/customer/17","description":"<p>Get sumarised list of customers</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["customer","17"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"f7f3beba-4115-450a-8750-8e80079428b5","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"74457f68-ece5-4ab2-90cf-b7ecb182d88f"},{"name":"Customer History","id":"6eff1c55-e43d-4b1e-9af1-8b369b38edc3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/customer/25/history?days=55","description":"<p>Get sumarised list of customers</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["customer","25","history"],"host":["{{url}}"],"query":[{"key":"days","value":"55"}],"variable":[]}},"response":[{"id":"323fa6c5-b494-47a2-9709-b070f1e39655","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"6eff1c55-e43d-4b1e-9af1-8b369b38edc3"},{"name":"Parent Account Check","id":"81a5d90f-5ac3-4f2e-8737-7f1ac12eac07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/customer/1519/check-parent","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["customer","1519","check-parent"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"81a5d90f-5ac3-4f2e-8737-7f1ac12eac07"},{"name":"Delete customer","id":"66ea119e-4324-4754-943a-e1471a5795af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/customer/17","description":"<p>Delete customer record.\nChecks for open documents</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["customer","17"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"ac8cedf9-7217-4bd6-ad84-a53f17aa58da","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"66ea119e-4324-4754-943a-e1471a5795af"},{"name":"Delete customer address","id":"ead1a11c-9c59-450f-b262-3aca8cf97e2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/customer/17/address/97","description":"<p>Delete customer address</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["customer","17","address","97"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"19883f6f-ceb6-4d16-ad31-de768707ea19","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"ead1a11c-9c59-450f-b262-3aca8cf97e2a"},{"name":"Delete customer contact","id":"9ba9f8df-8f6f-42fc-af3c-adff34b5b3d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/customer/17/contact/48","description":"<p>Delete customer contact</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["customer","17","contact","48"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"8a3afb7f-d277-48e1-b6fe-15a5315fd411","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"9ba9f8df-8f6f-42fc-af3c-adff34b5b3d5"},{"name":"Delete customer note","id":"ed994191-9634-46ef-bf8a-5412688a7060","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/customer/17/note/63","description":"<p>Delete customer note</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["customer","17","note","63"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"2c8652d4-c5cf-40c5-b436-076e626fa554","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"ed994191-9634-46ef-bf8a-5412688a7060"},{"name":"Delete customer custom field value","id":"77f90b1f-47e8-4726-901c-522ca6bfa925","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/customer/17/customfield/135","description":"<p>Delete customer custom field value</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["customer","17","customfield","135"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"8be7ccb2-a421-451c-84dd-e2dff3d7742c","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"77f90b1f-47e8-4726-901c-522ca6bfa925"},{"name":"Delete customer contact address","id":"486bcb9e-19fc-4e45-805a-614653eaf706","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/customer/17/contact/48/address/376","description":"<p>Delete customer contact address</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["customer","17","contact","48","address","376"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"f0be8c8d-cb85-4096-9fe5-a4028ea58f24","name":"Customer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/customer?limit=3&offset=1&customer_type_id=167&customer_code=SMI002","host":["{{url}}"],"path":["customer"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"1"},{"key":"customer_type_id","value":"167"},{"key":"customer_code","value":"SMI002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-07BY+KRPLWFGNEaAP+rrjYcu1MA\""},{"key":"Date","value":"Tue, 21 May 2019 08:37:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"61\",\n                \"customer_code\": \"SMI002\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"\",\n                \"customer_type_id\": 167\n            }\n        ]\n    }\n}"}],"_postman_id":"486bcb9e-19fc-4e45-805a-614653eaf706"}],"id":"d2b61411-d0f4-4b95-b4a8-0f21fe387f82","description":"<p>Customer routes</p>\n","event":[{"listen":"prerequest","script":{"id":"6dd3dd0d-69a5-4dbe-bafb-acc4a38f71fb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a2ec18de-c1cf-436a-b9b9-6af392a7cc06","type":"text/javascript","exec":[""]}}],"_postman_id":"d2b61411-d0f4-4b95-b4a8-0f21fe387f82","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Dataservice","item":[{"name":"VRM lookup","id":"96103625-2ebd-4613-a8b3-c715c6781bfb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/dataservice/vrm/WU10LCE","description":"<p>Perform VRM lookup</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["dataservice","vrm","WU10LCE"],"host":["{{url}}"],"query":[{"disabled":true,"key":"search","value":"123"},{"disabled":true,"key":"offset","value":"1"},{"disabled":true,"key":"useVrm","value":"true"}],"variable":[]}},"response":[{"id":"7cb0b0ea-765a-4be9-bb66-6eff166fc981","name":"Search All","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/search?search=147&search=parts&limit=10","host":["{{url}}"],"path":["search"],"query":[{"key":"search","value":"147"},{"key":"search","value":"parts"},{"key":"limit","value":"10"},{"key":"offset","value":"1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"403"},{"key":"ETag","value":"W/\"193-UP1dFfkH+/hPA5GSd9LZYeY5uOk\""},{"key":"Date","value":"Thu, 23 May 2019 14:07:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"65\",\n                \"customer_code\": \"PART0001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"0123456147\",\n                \"contact_name\": \"Jim White\",\n                \"email_address\": \"jwhite@example.com\",\n                \"customer_type_id\": 100\n            }\n        ],\n        \"documents\": {\n            \"document\": 1\n        },\n        \"itens\": {\n            \"item\": 1\n        },\n        \"suppliers\": {},\n        \"vehicles\": {\n            \"vehicle\": 1\n        }\n    }\n}"}],"_postman_id":"96103625-2ebd-4613-a8b3-c715c6781bfb"},{"name":"Postcode looukp","id":"872e5304-b27d-4d2d-acfd-1fd07d854a23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/dataservice/address/OX73AN","description":"<p>Perform Postcode lookup</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["dataservice","address","OX73AN"],"host":["{{url}}"],"query":[{"disabled":true,"key":"search","value":"123"},{"disabled":true,"key":"offset","value":"1"}],"variable":[]}},"response":[{"id":"3e898f9a-9e76-44c1-9ea1-2cccb01cb76e","name":"Search All","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/search?search=147&search=parts&limit=10","host":["{{url}}"],"path":["search"],"query":[{"key":"search","value":"147"},{"key":"search","value":"parts"},{"key":"limit","value":"10"},{"key":"offset","value":"1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"403"},{"key":"ETag","value":"W/\"193-UP1dFfkH+/hPA5GSd9LZYeY5uOk\""},{"key":"Date","value":"Thu, 23 May 2019 14:07:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"65\",\n                \"customer_code\": \"PART0001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"0123456147\",\n                \"contact_name\": \"Jim White\",\n                \"email_address\": \"jwhite@example.com\",\n                \"customer_type_id\": 100\n            }\n        ],\n        \"documents\": {\n            \"document\": 1\n        },\n        \"itens\": {\n            \"item\": 1\n        },\n        \"suppliers\": {},\n        \"vehicles\": {\n            \"vehicle\": 1\n        }\n    }\n}"}],"_postman_id":"872e5304-b27d-4d2d-acfd-1fd07d854a23"},{"name":"MOT History","id":"a20ee6a1-a90e-4d5c-be52-2aef879a6da4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/dataservice/mot/65","description":"<p>MOT history lookup</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["dataservice","mot","65"],"host":["{{url}}"],"query":[{"disabled":true,"key":"search","value":"123"},{"disabled":true,"key":"offset","value":"1"}],"variable":[]}},"response":[{"id":"6ce4a458-853b-443e-9047-c71f0eb6fecb","name":"Search All","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/search?search=147&search=parts&limit=10","host":["{{url}}"],"path":["search"],"query":[{"key":"search","value":"147"},{"key":"search","value":"parts"},{"key":"limit","value":"10"},{"key":"offset","value":"1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"403"},{"key":"ETag","value":"W/\"193-UP1dFfkH+/hPA5GSd9LZYeY5uOk\""},{"key":"Date","value":"Thu, 23 May 2019 14:07:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"65\",\n                \"customer_code\": \"PART0001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"0123456147\",\n                \"contact_name\": \"Jim White\",\n                \"email_address\": \"jwhite@example.com\",\n                \"customer_type_id\": 100\n            }\n        ],\n        \"documents\": {\n            \"document\": 1\n        },\n        \"itens\": {\n            \"item\": 1\n        },\n        \"suppliers\": {},\n        \"vehicles\": {\n            \"vehicle\": 1\n        }\n    }\n}"}],"_postman_id":"a20ee6a1-a90e-4d5c-be52-2aef879a6da4"},{"name":"Last MOT","id":"c59b31cd-a13c-415b-97cc-0c423a659528","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/dataservice/lastmot/65","description":"<p>MOT history get last MOT data</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["dataservice","lastmot","65"],"host":["{{url}}"],"query":[{"disabled":true,"key":"search","value":"123"},{"disabled":true,"key":"offset","value":"1"}],"variable":[]}},"response":[{"id":"aa81457f-b5b5-4c8b-bec7-6c9745a8ca91","name":"Search All","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/search?search=147&search=parts&limit=10","host":["{{url}}"],"path":["search"],"query":[{"key":"search","value":"147"},{"key":"search","value":"parts"},{"key":"limit","value":"10"},{"key":"offset","value":"1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"403"},{"key":"ETag","value":"W/\"193-UP1dFfkH+/hPA5GSd9LZYeY5uOk\""},{"key":"Date","value":"Thu, 23 May 2019 14:07:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"65\",\n                \"customer_code\": \"PART0001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"0123456147\",\n                \"contact_name\": \"Jim White\",\n                \"email_address\": \"jwhite@example.com\",\n                \"customer_type_id\": 100\n            }\n        ],\n        \"documents\": {\n            \"document\": 1\n        },\n        \"itens\": {\n            \"item\": 1\n        },\n        \"suppliers\": {},\n        \"vehicles\": {\n            \"vehicle\": 1\n        }\n    }\n}"}],"_postman_id":"c59b31cd-a13c-415b-97cc-0c423a659528"},{"name":"Get credits","id":"7c376e89-9877-4598-beff-d60494b399d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/dataservice/credit/sms","description":"<p>Get VRM credits</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["dataservice","credit","sms"],"host":["{{url}}"],"query":[{"disabled":true,"key":"search","value":"123"},{"disabled":true,"key":"offset","value":"1"}],"variable":[]}},"response":[{"id":"e0f35650-a9a1-45d3-a5d9-6be01d2b1397","name":"Search All","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/search?search=147&search=parts&limit=10","host":["{{url}}"],"path":["search"],"query":[{"key":"search","value":"147"},{"key":"search","value":"parts"},{"key":"limit","value":"10"},{"key":"offset","value":"1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"403"},{"key":"ETag","value":"W/\"193-UP1dFfkH+/hPA5GSd9LZYeY5uOk\""},{"key":"Date","value":"Thu, 23 May 2019 14:07:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"65\",\n                \"customer_code\": \"PART0001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"0123456147\",\n                \"contact_name\": \"Jim White\",\n                \"email_address\": \"jwhite@example.com\",\n                \"customer_type_id\": 100\n            }\n        ],\n        \"documents\": {\n            \"document\": 1\n        },\n        \"itens\": {\n            \"item\": 1\n        },\n        \"suppliers\": {},\n        \"vehicles\": {\n            \"vehicle\": 1\n        }\n    }\n}"}],"_postman_id":"7c376e89-9877-4598-beff-d60494b399d7"},{"name":"Post SMS","id":"32bef145-45dd-48c3-b0b6-bdaf010a2dd6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{to: '07484868681', message: 'Hi Mr Richard Christie, ' }"},"url":"{{url}}/dataservice/sms","description":"<p>Get VRM credits</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["dataservice","sms"],"host":["{{url}}"],"query":[{"disabled":true,"key":"search","value":"123"},{"disabled":true,"key":"offset","value":"1"}],"variable":[]}},"response":[{"id":"50e74cec-7afa-4aa3-a955-b43486e00241","name":"Search All","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/search?search=147&search=parts&limit=10","host":["{{url}}"],"path":["search"],"query":[{"key":"search","value":"147"},{"key":"search","value":"parts"},{"key":"limit","value":"10"},{"key":"offset","value":"1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"403"},{"key":"ETag","value":"W/\"193-UP1dFfkH+/hPA5GSd9LZYeY5uOk\""},{"key":"Date","value":"Thu, 23 May 2019 14:07:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"65\",\n                \"customer_code\": \"PART0001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"0123456147\",\n                \"contact_name\": \"Jim White\",\n                \"email_address\": \"jwhite@example.com\",\n                \"customer_type_id\": 100\n            }\n        ],\n        \"documents\": {\n            \"document\": 1\n        },\n        \"itens\": {\n            \"item\": 1\n        },\n        \"suppliers\": {},\n        \"vehicles\": {\n            \"vehicle\": 1\n        }\n    }\n}"}],"_postman_id":"32bef145-45dd-48c3-b0b6-bdaf010a2dd6"},{"name":"Get Usage","id":"b9a5356a-0054-4cfb-a7a0-c93d5122f4ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/dataservice/lookup/vrm/2019/8","description":"<p>Get usage details</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["dataservice","lookup","vrm","2019","8"],"host":["{{url}}"],"query":[{"disabled":true,"key":"search","value":"123"},{"disabled":true,"key":"offset","value":"1"}],"variable":[]}},"response":[{"id":"f8f3562e-e60e-41b8-ace5-3b6fa82921ae","name":"Search All","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/search?search=147&search=parts&limit=10","host":["{{url}}"],"path":["search"],"query":[{"key":"search","value":"147"},{"key":"search","value":"parts"},{"key":"limit","value":"10"},{"key":"offset","value":"1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"403"},{"key":"ETag","value":"W/\"193-UP1dFfkH+/hPA5GSd9LZYeY5uOk\""},{"key":"Date","value":"Thu, 23 May 2019 14:07:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"65\",\n                \"customer_code\": \"PART0001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"0123456147\",\n                \"contact_name\": \"Jim White\",\n                \"email_address\": \"jwhite@example.com\",\n                \"customer_type_id\": 100\n            }\n        ],\n        \"documents\": {\n            \"document\": 1\n        },\n        \"itens\": {\n            \"item\": 1\n        },\n        \"suppliers\": {},\n        \"vehicles\": {\n            \"vehicle\": 1\n        }\n    }\n}"}],"_postman_id":"b9a5356a-0054-4cfb-a7a0-c93d5122f4ba"},{"name":"Dataservice subscription","id":"1a41ddc0-9b44-45d4-a25b-c4b15c47bf2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/dataservice/subscription/vrm","description":"<p>Makes a call to the dataservice to get the subscription attached to the mtt account id on the company</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["dataservice","subscription","vrm"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1a41ddc0-9b44-45d4-a25b-c4b15c47bf2d"},{"name":"update subscription","id":"aa544efd-5294-4736-a282-5106e92e5f6b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"mttaccount\": \"11131\",\n\t\"qty\": 44,\n\t\"subscriptionid\": 1286,\n\t\"validfromto\": \"[\\\"2020-02-01 00:00:00+00\\\",infinity)\",\n\t\"createdby\": \"AITOL SUB UPDATE\",\n\t\"credittype\": \"vrm\",\n\t\"frequency\": \"1 mon\"\n\t\n}"},"url":"{{url}}/dataservice/subscription","description":"<p>Calls the dataservice, sending through the body information to run the plv8 method addsubscription on dataservice</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["dataservice","subscription"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa544efd-5294-4736-a282-5106e92e5f6b"},{"name":"Topup credit","id":"323e0e7c-8ab6-4bac-b2c8-0f5e76bcb56f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"topupqty\": 1,\n\"frequency\": \"1 mon\",\n\"topupuser\": \"AITOLADMIN\",\n\"creditType\": \"vrm\"\n}\n"},"url":"{{url}}/dataservice/topup","description":"<p>Topup the vrm or sms dataservice credits</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["dataservice","topup"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"323e0e7c-8ab6-4bac-b2c8-0f5e76bcb56f"}],"id":"061d38de-d18a-4658-ad68-b802ab2a40a6","description":"<p>Item routes</p>\n","event":[{"listen":"prerequest","script":{"id":"6dd3dd0d-69a5-4dbe-bafb-acc4a38f71fb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a2ec18de-c1cf-436a-b9b9-6af392a7cc06","type":"text/javascript","exec":[""]}}],"_postman_id":"061d38de-d18a-4658-ad68-b802ab2a40a6","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Diary","item":[{"name":"Create New Diary Entry with new document","id":"154cdd4b-28a7-4294-85b3-c5be6e61dac0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"branch_id\": 12,\n  \"vehicle_id\": 59,\n  \"customer_id\": 17,\n  \"diary_entry\": \n    {\n      \"diary_type\": \"mot\",\n      \"booking_datetime\": \"2019-09-05 11:00:00\",\n      \"estimated_minutes\": 60,\n      \"all_day\": false,\n      \"diary_text\": \"Carry out MOT test\",\n      \"technician_id\": 111\n    }\n    \n}\n"},"url":"{{url}}/diary/document","description":"<p>Creatre new diary entry with multiple appointments</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["diary","document"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"b9dde63b-e035-4889-86af-cca1f9c1e37c","name":"Create New Diary Entry with new document","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"branch_id\": 12,\n  \"vehicle_id\": 59,\n  \"customer_id\": 17,\n  \"diary_entry\": \n    {\n      \"diary_type\": \"mot\",\n      \"booking_datetime\": \"2019-09-05 11:00:00\",\n      \"estimated_minutes\": 60,\n      \"all_day\": false,\n      \"diary_text\": \"Carry out MOT test\",\n      \"technician_id\": 111\n    }\n    \n}\n"},"url":"{{url}}/diary/document"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1793"},{"key":"ETag","value":"W/\"701-GqdmnYB3EBMXNBpUwXRxMStw/2U\""},{"key":"Date","value":"Wed, 11 Sep 2019 11:23:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"document\": {\n            \"id\": \"227\",\n            \"company_id\": \"14\",\n            \"branch_id\": \"12\",\n            \"document_status\": 1,\n            \"is_active\": true,\n            \"last_updated_by\": \"24\",\n            \"last_updated\": \"2019-09-11T11:23:44.275Z\",\n            \"document_date\": \"2019-09-04T23:00:00.000Z\",\n            \"customer_id\": \"17\",\n            \"total_goods\": null,\n            \"total_amount\": null,\n            \"total_vat\": null,\n            \"vehicle_id\": \"59\",\n            \"document_reference\": \"30000108\",\n            \"document_type\": \"job_card\",\n            \"total_cost\": null,\n            \"address\": {\n                \"id\": \"220\",\n                \"address1\": \"15 Test Road\",\n                \"address2\": \"\",\n                \"address3\": \"\",\n                \"city\": \"Weston Super Mare\",\n                \"county\": \"Somerset\",\n                \"postcode\": \"bs131df\",\n                \"company_id\": \"14\",\n                \"reference_type\": \"document\",\n                \"reference_id\": \"227\",\n                \"last_updated_by\": 24,\n                \"last_updated\": \"2019-09-11T11:23:44.275Z\"\n            },\n            \"customer\": {\n                \"id\": \"17\",\n                \"company_id\": \"14\",\n                \"customer_type_id\": 171,\n                \"name\": \"Bradley Cooper\",\n                \"vat_no\": \"22222\",\n                \"account_on_hold\": false,\n                \"is_active\": true,\n                \"last_updated_by\": \"17\",\n                \"last_updated\": \"2019-05-31T10:18:05.455Z\",\n                \"contact_id\": null,\n                \"customer_code\": \"COO001\"\n            },\n            \"vehicle\": {\n                \"id\": \"59\",\n                \"company_id\": \"14\",\n                \"customer_id\": \"17\",\n                \"vehicle_type_id\": 116,\n                \"fuel_type_id\": 134,\n                \"transmission_type_id\": 167,\n                \"colour\": \"blue\",\n                \"engine_code\": \"\",\n                \"engine_number\": \"\",\n                \"vin\": \"\",\n                \"co2_emissions\": 0,\n                \"date_first_registered\": \"2003-03-05T00:00:00.000Z\",\n                \"year_of_manufacture\": 3,\n                \"number_of_doors\": 5,\n                \"is_active\": true,\n                \"last_updated_by\": \"17\",\n                \"last_updated\": \"2019-06-14T13:05:30.011Z\",\n                \"engine_capacity\": \"2.0 litres\",\n                \"make\": \"SUBARU\",\n                \"model\": \"Impreza\",\n                \"model_trim\": \"\",\n                \"registration\": \"AA59AAA\"\n            }\n        },\n        \"diary_entries\": [\n            {\n                \"id\": \"87\",\n                \"is_active\": true,\n                \"last_updated_by\": \"24\",\n                \"last_updated\": \"2019-09-11T11:23:44.275Z\",\n                \"document_id\": \"227\",\n                \"document_line_id\": \"539\",\n                \"company_id\": \"14\",\n                \"branch_id\": \"12\",\n                \"booking_datetime\": \"2019-09-05T10:00:00.000Z\",\n                \"estimated_minutes\": 60,\n                \"all_day\": false,\n                \"technician_id\": \"111\",\n                \"diary_type\": \"mot\",\n                \"diary_text\": \"Carry out MOT test\",\n                \"user_name\": \"user1\"\n            }\n        ]\n    }\n}"}],"_postman_id":"154cdd4b-28a7-4294-85b3-c5be6e61dac0"},{"name":"Create New Diary Entry for existing document.","id":"61fbcaeb-6f5e-4c04-8111-bfc11e704655","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"branch_id\": 12,\n  \"vehicle_id\": 59,\n  \"customer_id\": 17,\n  \"diary_entry\":     {\n      \"diary_type\": \"service\",\n      \"booking_datetime\": \"2019-09-05 13:00:00\",\n      \"estimated_minutes\": 240,\n      \"all_day\": false,\n      \"diary_text\": \"Full service inc cam belt\",\n      \"technician_id\": 112\n    }\n  \n}\n"},"url":"{{url}}/diary/document/227","description":"<p>Creatre new diary entry with multiple appointments</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["diary","document","227"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"5d3bccba-549a-436c-8301-691f74b1a5a2","name":"Create New Diary Entry for existing document.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"branch_id\": 12,\n  \"vehicle_id\": 59,\n  \"customer_id\": 17,\n  \"diary_entry\":     {\n      \"diary_type\": \"service\",\n      \"booking_datetime\": \"2019-09-05 13:00:00\",\n      \"estimated_minutes\": 240,\n      \"all_day\": false,\n      \"diary_text\": \"Full service inc cam belt\",\n      \"technician_id\": 112\n    }\n  \n}\n"},"url":"{{url}}/diary/document/227"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2799"},{"key":"ETag","value":"W/\"aef-tPzb0X+esTgcnQRtkMm+BaflcyM\""},{"key":"Date","value":"Wed, 11 Sep 2019 11:24:24 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"document\": {\n            \"id\": \"227\",\n            \"company_id\": \"14\",\n            \"branch_id\": \"12\",\n            \"document_status\": 1,\n            \"is_active\": true,\n            \"last_updated_by\": \"24\",\n            \"last_updated\": \"2019-09-11T11:23:44.275Z\",\n            \"document_date\": \"2019-09-04T23:00:00.000Z\",\n            \"customer_id\": \"17\",\n            \"total_goods\": \"0.00\",\n            \"total_amount\": \"0.00\",\n            \"total_vat\": \"0.00\",\n            \"vehicle_id\": \"59\",\n            \"document_reference\": \"30000108\",\n            \"document_type\": \"job_card\",\n            \"total_cost\": \"0.00\",\n            \"customer\": {\n                \"id\": \"17\",\n                \"company_id\": \"14\",\n                \"customer_type_id\": 171,\n                \"name\": \"Bradley Cooper\",\n                \"vat_no\": \"22222\",\n                \"account_on_hold\": false,\n                \"is_active\": true,\n                \"last_updated_by\": \"17\",\n                \"last_updated\": \"2019-05-31T10:18:05.455Z\",\n                \"contact_id\": null,\n                \"customer_code\": \"COO001\"\n            },\n            \"vehicle\": {\n                \"id\": \"59\",\n                \"company_id\": \"14\",\n                \"customer_id\": \"17\",\n                \"vehicle_type_id\": 116,\n                \"fuel_type_id\": 134,\n                \"transmission_type_id\": 167,\n                \"colour\": \"blue\",\n                \"engine_code\": \"\",\n                \"engine_number\": \"\",\n                \"vin\": \"\",\n                \"co2_emissions\": 0,\n                \"date_first_registered\": \"2003-03-05T00:00:00.000Z\",\n                \"year_of_manufacture\": 3,\n                \"number_of_doors\": 5,\n                \"is_active\": true,\n                \"last_updated_by\": \"17\",\n                \"last_updated\": \"2019-06-14T13:05:30.011Z\",\n                \"engine_capacity\": \"2.0 litres\",\n                \"make\": \"SUBARU\",\n                \"model\": \"Impreza\",\n                \"model_trim\": \"\",\n                \"registration\": \"AA59AAA\"\n            },\n            \"mileage\": null,\n            \"docLines\": [\n                {\n                    \"id\": \"539\",\n                    \"document_id\": \"227\",\n                    \"company_id\": \"14\",\n                    \"is_active\": true,\n                    \"last_updated_by\": \"24\",\n                    \"last_updated\": \"2019-09-11T11:23:44.275Z\",\n                    \"quantity\": \"0.00\",\n                    \"line_position\": 1,\n                    \"unit_price\": \"0.00\",\n                    \"total_net\": \"0.00\",\n                    \"total_amount\": \"0.00\",\n                    \"discount_percent\": \"0.00\",\n                    \"discount_amount\": \"0.00\",\n                    \"vat_id\": \"4\",\n                    \"vat_rate\": \"0.00\",\n                    \"description\": \"Carry out MOT test\",\n                    \"revenuecode\": null,\n                    \"item_id\": null,\n                    \"cost_price\": \"0.0000\",\n                    \"net_price\": \"NaN\",\n                    \"vat_amount\": \"0.00\",\n                    \"total_cost\": \"0.00\",\n                    \"section\": \"work_required\",\n                    \"item_code\": null,\n                    \"line_type\": \"text\",\n                    \"parent_line\": null,\n                    \"technician_id\": \"111\",\n                    \"config\": null\n                }\n            ],\n            \"address\": {\n                \"id\": \"220\",\n                \"address1\": \"15 Test Road\",\n                \"address2\": \"\",\n                \"address3\": \"\",\n                \"city\": \"Weston Super Mare\",\n                \"county\": \"Somerset\",\n                \"postcode\": \"bs131df\",\n                \"company_id\": \"14\",\n                \"reference_type\": \"document\",\n                \"reference_id\": \"227\",\n                \"last_updated_by\": 24,\n                \"last_updated\": \"2019-09-11T11:23:44.275Z\"\n            },\n            \"notes\": [],\n            \"reminders\": []\n        },\n        \"diary_entries\": [\n            {\n                \"id\": \"87\",\n                \"is_active\": true,\n                \"last_updated_by\": \"24\",\n                \"last_updated\": \"2019-09-11T11:23:44.275Z\",\n                \"document_id\": \"227\",\n                \"document_line_id\": \"539\",\n                \"company_id\": \"14\",\n                \"branch_id\": \"12\",\n                \"booking_datetime\": \"2019-09-05T10:00:00.000Z\",\n                \"estimated_minutes\": 60,\n                \"all_day\": false,\n                \"technician_id\": \"111\",\n                \"diary_type\": \"mot\",\n                \"diary_text\": \"Carry out MOT test\",\n                \"user_name\": \"user1\"\n            },\n            {\n                \"id\": \"88\",\n                \"is_active\": true,\n                \"last_updated_by\": \"24\",\n                \"last_updated\": \"2019-09-11T11:24:24.814Z\",\n                \"document_id\": \"227\",\n                \"document_line_id\": \"540\",\n                \"company_id\": \"14\",\n                \"branch_id\": \"12\",\n                \"booking_datetime\": \"2019-09-05T12:00:00.000Z\",\n                \"estimated_minutes\": 240,\n                \"all_day\": false,\n                \"technician_id\": \"112\",\n                \"diary_type\": \"service\",\n                \"diary_text\": \"Full service inc cam belt\",\n                \"user_name\": \"user2\"\n            }\n        ]\n    }\n}"}],"_postman_id":"61fbcaeb-6f5e-4c04-8111-bfc11e704655"},{"name":"Get details of a booking from diary","id":"4f27841a-f5fe-4b4a-a724-23255acf4f5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"branch_id\": 12,\n  \"vehicle_id\": 59,\n  \"customer_id\": 17,\n  \"diary_entry\":     {\n      \"diary_type\": \"service\",\n      \"booking_datetime\": \"2019-09-05 13:00:00\",\n      \"estimated_minutes\": 240,\n      \"all_day\": false,\n      \"diary_text\": \"Full service inc cam belt\",\n      \"technician_id\": 112\n    }\n  \n}\n"},"url":"{{url}}/diary/document/227","description":"<p>Creatre new diary entry with multiple appointments</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["diary","document","227"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"c58941c7-0545-47c3-9fac-14948a5f9819","name":"Get details of a booking from diary","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"branch_id\": 12,\n  \"vehicle_id\": 59,\n  \"customer_id\": 17,\n  \"diary_entry\":     {\n      \"diary_type\": \"service\",\n      \"booking_datetime\": \"2019-09-05 13:00:00\",\n      \"estimated_minutes\": 240,\n      \"all_day\": false,\n      \"diary_text\": \"Full service inc cam belt\",\n      \"technician_id\": 112\n    }\n  \n}\n"},"url":"{{url}}/diary/document/227"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2208"},{"key":"ETag","value":"W/\"8a0-Vg1LL9D0dphxmM+F/CfYX49VY/4\""},{"key":"Date","value":"Wed, 11 Sep 2019 12:32:40 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"document\": {\n            \"id\": \"227\",\n            \"company_id\": \"14\",\n            \"branch_id\": \"12\",\n            \"document_status\": 1,\n            \"is_active\": true,\n            \"last_updated_by\": \"24\",\n            \"last_updated\": \"2019-09-11T11:23:44.275Z\",\n            \"document_date\": \"2019-09-04T23:00:00.000Z\",\n            \"customer_id\": \"17\",\n            \"total_goods\": \"0.00\",\n            \"total_amount\": \"0.00\",\n            \"total_vat\": \"0.00\",\n            \"vehicle_id\": \"59\",\n            \"document_reference\": \"30000108\",\n            \"document_type\": \"job_card\",\n            \"total_cost\": \"0.00\",\n            \"customer\": {\n                \"id\": \"17\",\n                \"company_id\": \"14\",\n                \"customer_type_id\": 171,\n                \"name\": \"Bradley Cooper\",\n                \"vat_no\": \"22222\",\n                \"account_on_hold\": false,\n                \"is_active\": true,\n                \"last_updated_by\": \"17\",\n                \"last_updated\": \"2019-05-31T10:18:05.455Z\",\n                \"contact_id\": null,\n                \"customer_code\": \"COO001\"\n            },\n            \"vehicle\": {\n                \"id\": \"59\",\n                \"company_id\": \"14\",\n                \"customer_id\": \"17\",\n                \"vehicle_type_id\": 116,\n                \"fuel_type_id\": 134,\n                \"transmission_type_id\": 167,\n                \"colour\": \"blue\",\n                \"engine_code\": \"\",\n                \"engine_number\": \"\",\n                \"vin\": \"\",\n                \"co2_emissions\": 0,\n                \"date_first_registered\": \"2003-03-05T00:00:00.000Z\",\n                \"year_of_manufacture\": 3,\n                \"number_of_doors\": 5,\n                \"is_active\": true,\n                \"last_updated_by\": \"17\",\n                \"last_updated\": \"2019-06-14T13:05:30.011Z\",\n                \"engine_capacity\": \"2.0 litres\",\n                \"make\": \"SUBARU\",\n                \"model\": \"Impreza\",\n                \"model_trim\": \"\",\n                \"registration\": \"AA59AAA\"\n            },\n            \"mileage\": null,\n            \"address\": {\n                \"id\": \"220\",\n                \"address1\": \"15 Test Road\",\n                \"address2\": \"\",\n                \"address3\": \"\",\n                \"city\": \"Weston Super Mare\",\n                \"county\": \"Somerset\",\n                \"postcode\": \"bs131df\",\n                \"company_id\": \"14\",\n                \"reference_type\": \"document\",\n                \"reference_id\": \"227\",\n                \"last_updated_by\": 24,\n                \"last_updated\": \"2019-09-11T11:23:44.275Z\"\n            },\n            \"notes\": [],\n            \"reminders\": []\n        },\n        \"diary_entries\": [\n            {\n                \"id\": \"87\",\n                \"is_active\": true,\n                \"last_updated_by\": \"24\",\n                \"last_updated\": \"2019-09-11T11:23:44.275Z\",\n                \"document_id\": \"227\",\n                \"document_line_id\": \"539\",\n                \"company_id\": \"14\",\n                \"branch_id\": \"12\",\n                \"booking_datetime\": \"2019-09-05T10:00:00.000Z\",\n                \"estimated_minutes\": 60,\n                \"all_day\": false,\n                \"technician_id\": \"111\",\n                \"diary_type\": \"mot\",\n                \"diary_text\": \"Carry out MOT test\",\n                \"user_name\": \"user1\"\n            },\n            {\n                \"id\": \"88\",\n                \"is_active\": true,\n                \"last_updated_by\": \"24\",\n                \"last_updated\": \"2019-09-11T11:24:24.814Z\",\n                \"document_id\": \"227\",\n                \"document_line_id\": \"540\",\n                \"company_id\": \"14\",\n                \"branch_id\": \"12\",\n                \"booking_datetime\": \"2019-09-05T12:00:00.000Z\",\n                \"estimated_minutes\": 240,\n                \"all_day\": false,\n                \"technician_id\": \"112\",\n                \"diary_type\": \"service\",\n                \"diary_text\": \"Full service inc cam belt\",\n                \"user_name\": \"user2\"\n            }\n        ]\n    }\n}"}],"_postman_id":"4f27841a-f5fe-4b4a-a724-23255acf4f5b"},{"name":"Update existing diary entry","id":"7ded45fb-7ae6-463d-82c9-469bb311b625","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"diary_type\": \"mot\",\n  \"booking_datetime\": \"2019-09-05 11:00:00\",\n  \"estimated_minutes\": 60,\n  \"all_day\": false,\n  \"diary_text\": \"Carry out MOT test\",\n  \"technician_id\": 111,\n  \"document_id\": 227,\n  \"document_line_id\": 540\n}\n"},"url":"{{url}}/diary/88","description":"<p>Creatre new diary entry with multiple appointments</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["diary","88"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"1f8b42aa-1255-4eb0-9368-3b015d79e8f3","name":"Update existing diary entry","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"diary_type\": \"mot\",\n  \"booking_datetime\": \"2019-09-05 11:00:00\",\n  \"estimated_minutes\": 60,\n  \"all_day\": false,\n  \"diary_text\": \"Carry out MOT test\",\n  \"technician_id\": 111,\n  \"document_id\": 227,\n  \"document_line_id\": 540\n}\n"},"url":"{{url}}/diary/88"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"371"},{"key":"ETag","value":"W/\"173-tUfBnAt6IDRlFQ4kyiStvQcGIbw\""},{"key":"Date","value":"Wed, 11 Sep 2019 13:31:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"diary\": {\n            \"id\": \"88\",\n            \"is_active\": true,\n            \"last_updated_by\": \"24\",\n            \"last_updated\": \"2019-09-11T13:31:27.216Z\",\n            \"document_id\": \"227\",\n            \"company_id\": \"14\",\n            \"branch_id\": \"43\",\n            \"booking_datetime\": \"2019-09-05T10:00:00.000Z\",\n            \"estimated_minutes\": 60,\n            \"all_day\": false,\n            \"technician_id\": \"111\",\n            \"diary_type\": \"mot\",\n            \"diary_text\": \"Carry out MOT test\",\n            \"document_line_id\": \"540\"\n        }\n    }\n}"}],"_postman_id":"7ded45fb-7ae6-463d-82c9-469bb311b625"},{"name":"Get diary entry by ID","id":"b1743ea9-4b84-4492-9d73-23c2f9d3e122","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/diary/81","description":"<p>Creatre new diary entry with multiple appointments</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["diary","81"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"0d809217-7a2d-4594-8296-b420c391c284","name":"Get diary entry by ID","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/diary/56"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"362"},{"key":"ETag","value":"W/\"16a-esA4a9Ca2td13pGscg+5kDFKwX8\""},{"key":"Date","value":"Tue, 10 Sep 2019 13:44:30 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"diary_entry\": {\n            \"id\": \"56\",\n            \"is_active\": true,\n            \"last_updated_by\": \"24\",\n            \"last_updated\": \"2019-09-10T09:07:16.777Z\",\n            \"document_id\": \"508\",\n            \"company_id\": \"14\",\n            \"branch_id\": \"12\",\n            \"booking_datetime\": \"2019-09-05T10:00:00.000Z\",\n            \"estimated_minutes\": 60,\n            \"all_day\": false,\n            \"technician_id\": \"17\",\n            \"diary_type\": \"mot\",\n            \"diary_text\": \"Carry out MOT test - update 1\"\n        }\n    }\n}"}],"_postman_id":"b1743ea9-4b84-4492-9d73-23c2f9d3e122"},{"name":"Delete diary entry by ID","id":"b77ad4ab-8054-4b30-9cce-d5af7ab85433","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/diary/81","description":"<p>Delete a diary entry</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["diary","81"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"8cdd4ebb-e9e5-4d4b-90b4-5367a969b094","name":"Get diary entry by ID","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/diary/56"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"362"},{"key":"ETag","value":"W/\"16a-esA4a9Ca2td13pGscg+5kDFKwX8\""},{"key":"Date","value":"Tue, 10 Sep 2019 13:44:30 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"diary_entry\": {\n            \"id\": \"56\",\n            \"is_active\": true,\n            \"last_updated_by\": \"24\",\n            \"last_updated\": \"2019-09-10T09:07:16.777Z\",\n            \"document_id\": \"508\",\n            \"company_id\": \"14\",\n            \"branch_id\": \"12\",\n            \"booking_datetime\": \"2019-09-05T10:00:00.000Z\",\n            \"estimated_minutes\": 60,\n            \"all_day\": false,\n            \"technician_id\": \"17\",\n            \"diary_type\": \"mot\",\n            \"diary_text\": \"Carry out MOT test - update 1\"\n        }\n    }\n}"}],"_postman_id":"b77ad4ab-8054-4b30-9cce-d5af7ab85433"},{"name":"Create New Diary Entry for General Appointment","id":"2efdcac8-ccf6-4056-8642-5d0ea0558790","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n      \"diary_type\": \"appointment\",\n      \"booking_datetime\": \"2019-09-05 11:00:00\",\n      \"estimated_minutes\": 60,\n      \"all_day\": false,\n      \"diary_text\": \"Carry out MOT test\",\n      \"technician_id\": 111\n}\n"},"url":"{{url}}/diary","description":"<p>Creatre new diary entry with multiple appointments</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["diary"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2efdcac8-ccf6-4056-8642-5d0ea0558790"},{"name":"Get Diary Entries","id":"7bcfc332-848a-4bac-95e6-8cccb9714cc6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/diary?start_date=2019-09-01&end_date=2019-09-12","description":"<p>Get list of diary entries</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["diary"],"host":["{{url}}"],"query":[{"key":"start_date","value":"2019-09-01"},{"key":"end_date","value":"2019-09-12"}],"variable":[]}},"response":[{"id":"c687c56a-147d-41dc-8828-e701b71f3aab","name":"Get Diary Entries","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/diary?start_date=2019-09-04&end_date=2019-09-10","host":["{{url}}"],"path":["diary"],"query":[{"key":"start_date","value":"2019-09-04"},{"key":"end_date","value":"2019-09-10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2428"},{"key":"ETag","value":"W/\"97c-PwHleGlDZVxUnbx9hgVcloKf4Ek\""},{"key":"Date","value":"Tue, 10 Sep 2019 13:45:16 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"diary_entries\": [\n            {\n                \"id\": \"48\",\n                \"is_active\": true,\n                \"last_updated_by\": \"24\",\n                \"last_updated\": \"2019-09-09T14:19:05.023Z\",\n                \"document_id\": \"498\",\n                \"company_id\": \"14\",\n                \"branch_id\": \"43\",\n                \"booking_datetime\": \"2019-09-05T10:00:00.000Z\",\n                \"estimated_minutes\": 60,\n                \"all_day\": false,\n                \"technician_id\": \"17\",\n                \"diary_type\": \"mot\",\n                \"diary_text\": \"Carry out MOT test\",\n                \"user_name\": \"Donald Blake\"\n            },\n            {\n                \"id\": \"50\",\n                \"is_active\": true,\n                \"last_updated_by\": \"24\",\n                \"last_updated\": \"2019-09-09T14:30:04.911Z\",\n                \"document_id\": \"502\",\n                \"company_id\": \"14\",\n                \"branch_id\": \"43\",\n                \"booking_datetime\": \"2019-09-05T10:00:00.000Z\",\n                \"estimated_minutes\": 60,\n                \"all_day\": false,\n                \"technician_id\": \"94\",\n                \"diary_type\": \"mot\",\n                \"diary_text\": \"Carry out MOT test\",\n                \"user_name\": \"Peter Parker\"\n            },\n            {\n                \"id\": \"52\",\n                \"is_active\": true,\n                \"last_updated_by\": \"24\",\n                \"last_updated\": \"2019-09-09T14:33:04.228Z\",\n                \"document_id\": \"504\",\n                \"company_id\": \"14\",\n                \"branch_id\": \"43\",\n                \"booking_datetime\": \"2019-09-05T10:00:00.000Z\",\n                \"estimated_minutes\": 60,\n                \"all_day\": false,\n                \"technician_id\": \"17\",\n                \"diary_type\": \"mot\",\n                \"diary_text\": \"Carry out MOT test\",\n                \"user_name\": \"Donald Blake\"\n            },\n            {\n                \"id\": \"51\",\n                \"is_active\": true,\n                \"last_updated_by\": \"24\",\n                \"last_updated\": \"2019-09-09T14:30:04.911Z\",\n                \"document_id\": \"503\",\n                \"company_id\": \"14\",\n                \"branch_id\": \"43\",\n                \"booking_datetime\": \"2019-09-05T12:00:00.000Z\",\n                \"estimated_minutes\": 240,\n                \"all_day\": false,\n                \"technician_id\": \"94\",\n                \"diary_type\": \"service\",\n                \"diary_text\": \"Full service inc cam belt\",\n                \"user_name\": \"Peter Parker\"\n            },\n            {\n                \"id\": \"53\",\n                \"is_active\": true,\n                \"last_updated_by\": \"24\",\n                \"last_updated\": \"2019-09-09T14:33:04.228Z\",\n                \"document_id\": \"505\",\n                \"company_id\": \"14\",\n                \"branch_id\": \"43\",\n                \"booking_datetime\": \"2019-09-05T12:00:00.000Z\",\n                \"estimated_minutes\": 240,\n                \"all_day\": false,\n                \"technician_id\": \"17\",\n                \"diary_type\": \"service\",\n                \"diary_text\": \"Full service inc cam belt\",\n                \"user_name\": \"Donald Blake\"\n            },\n            {\n                \"id\": \"49\",\n                \"is_active\": true,\n                \"last_updated_by\": \"24\",\n                \"last_updated\": \"2019-09-09T14:19:05.023Z\",\n                \"document_id\": \"499\",\n                \"company_id\": \"14\",\n                \"branch_id\": \"43\",\n                \"booking_datetime\": \"2019-09-05T12:00:00.000Z\",\n                \"estimated_minutes\": 240,\n                \"all_day\": false,\n                \"technician_id\": \"94\",\n                \"diary_type\": \"service\",\n                \"diary_text\": \"Full service inc cam belt\",\n                \"user_name\": \"Peter Parker\"\n            },\n            {\n                \"id\": \"54\",\n                \"is_active\": true,\n                \"last_updated_by\": \"24\",\n                \"last_updated\": \"2019-09-09T14:35:31.482Z\",\n                \"document_id\": \"506\",\n                \"company_id\": \"14\",\n                \"branch_id\": \"43\",\n                \"booking_datetime\": \"2019-09-10T10:00:00.000Z\",\n                \"estimated_minutes\": 60,\n                \"all_day\": false,\n                \"technician_id\": \"94\",\n                \"diary_type\": \"mot\",\n                \"diary_text\": \"Carry out MOT test\",\n                \"user_name\": \"Peter Parker\"\n            }\n        ]\n    }\n}"}],"_postman_id":"7bcfc332-848a-4bac-95e6-8cccb9714cc6"}],"id":"83cb3e0d-354c-4471-bbaf-d6bc8eafdb7c","_postman_id":"83cb3e0d-354c-4471-bbaf-d6bc8eafdb7c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Documents","item":[{"name":"Documents","id":"c799cbfb-fb02-46f9-9d20-83a66dbd6fbb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/documents?doctype=job_card&code=coo001","description":"<p>Get an array of documents</p>\n<h4 id=\"parameters\">Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>start_date</td>\n<td>optional</td>\n<td>Document date to check</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["documents"],"host":["{{url}}"],"query":[{"description":{"content":"<p>OPTIONAL document type enum</p>\n","type":"text/plain"},"key":"doctype","value":"job_card"},{"description":{"content":"<p>OPTIONAL Customer code</p>\n","type":"text/plain"},"key":"code","value":"coo001"}],"variable":[]}},"response":[{"id":"20e00e9d-5e13-4945-a0d6-915876b9839f","name":"Example Documents","originalRequest":{"method":"GET","header":[],"url":"{{url}}/documents"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"762"},{"key":"ETag","value":"W/\"2fa-7ky1uMEa/l2ldXdsZEFKFtrwwms\""},{"key":"Date","value":"Thu, 16 May 2019 14:32:24 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"documents\": [\n            {\n                \"id\": \"14\",\n                \"company_id\": \"14\",\n                \"branch_id\": \"12\",\n                \"document_status\": 0,\n                \"is_active\": true,\n                \"last_updated_by\": \"17\",\n                \"last_updated\": \"2019-05-14T15:57:24.965Z\",\n                \"document_date\": \"2019-05-08T23:00:00.000Z\",\n                \"customer_id\": \"4\",\n                \"total_goods\": \"120.0000\",\n                \"total_amount\": \"120.0000\",\n                \"total_vat\": \"24.0000\",\n                \"vehicle_id\": \"33\",\n                \"document_reference\": \"10000001\",\n                \"document_type\": \"job_card\"\n            },\n            {\n                \"id\": \"18\",\n                \"company_id\": \"14\",\n                \"branch_id\": \"12\",\n                \"document_status\": 0,\n                \"is_active\": true,\n                \"last_updated_by\": \"17\",\n                \"last_updated\": \"2019-05-16T14:31:04.840Z\",\n                \"document_date\": \"2019-05-08T23:00:00.000Z\",\n                \"customer_id\": \"4\",\n                \"total_goods\": \"120.0000\",\n                \"total_amount\": \"144.0000\",\n                \"total_vat\": \"24.0000\",\n                \"vehicle_id\": \"33\",\n                \"document_reference\": \"10000001\",\n                \"document_type\": \"invoice\"\n            }\n        ]\n    }\n}"}],"_postman_id":"c799cbfb-fb02-46f9-9d20-83a66dbd6fbb"},{"name":"Document","event":[{"listen":"prerequest","script":{"id":"af75aeef-c230-429b-a2fb-ad2e7a579f2d","exec":[""],"type":"text/javascript"}}],"id":"449f7cfe-9fa8-4897-96c9-4a903f8a6e65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/documents/167","description":"<p>Get document information from primary key (ID) route parameter</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"f448396c-58a9-4592-997e-969c85c3b193","id":"f448396c-58a9-4592-997e-969c85c3b193","name":"Documents","type":"folder"}},"urlObject":{"path":["documents","167"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"1b0f1dee-6136-4c02-83a0-f19630b14388","name":"Document","originalRequest":{"method":"GET","header":[],"url":"{{url}}/documents/66"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2662"},{"key":"ETag","value":"W/\"a66-zDokjfg7Fv8e88y+QGaJEZkEWoY\""},{"key":"Date","value":"Thu, 04 Jul 2019 15:09:47 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"document\": {\n            \"id\": \"66\",\n            \"company_id\": \"14\",\n            \"branch_id\": \"12\",\n            \"document_status\": 1,\n            \"is_active\": true,\n            \"last_updated_by\": \"17\",\n            \"last_updated\": \"2019-07-04T09:57:19.678Z\",\n            \"document_date\": \"2019-07-03T23:00:00.000Z\",\n            \"customer_id\": \"16\",\n            \"total_goods\": \"145.00\",\n            \"total_amount\": \"174.00\",\n            \"total_vat\": \"29.00\",\n            \"vehicle_id\": \"72\",\n            \"document_reference\": \"30000038\",\n            \"document_type\": \"job_card\",\n            \"total_cost\": \"0.00\",\n            \"customer\": {\n                \"id\": \"16\",\n                \"company_id\": \"14\",\n                \"customer_type_id\": 171,\n                \"name\": \"Wade Williams\",\n                \"vat_no\": \"2222222\",\n                \"account_on_hold\": false,\n                \"is_active\": true,\n                \"last_updated_by\": \"17\",\n                \"last_updated\": \"2019-05-30T08:55:48.884Z\",\n                \"contact_id\": null,\n                \"customer_code\": \"WIL001\"\n            },\n            \"vehicle\": {\n                \"id\": \"72\",\n                \"company_id\": \"14\",\n                \"customer_id\": \"16\",\n                \"vehicle_type_id\": 166,\n                \"fuel_type_id\": 131,\n                \"transmission_type_id\": 161,\n                \"colour\": \"\",\n                \"engine_code\": \"\",\n                \"engine_number\": \"\",\n                \"vin\": \"\",\n                \"co2_emissions\": 0,\n                \"date_first_registered\": \"2018-01-01T00:00:00.000Z\",\n                \"year_of_manufacture\": 2018,\n                \"number_of_doors\": 5,\n                \"is_active\": true,\n                \"last_updated_by\": \"17\",\n                \"last_updated\": \"2019-07-04T09:56:23.609Z\",\n                \"engine_capacity\": \"\",\n                \"make\": \"TESLA\",\n                \"model\": \"Model S\",\n                \"model_trim\": \"\",\n                \"registration\": \"FE61FEE\"\n            },\n            \"docLines\": {\n                \"1-work_required\": {\n                    \"Work Required\": []\n                },\n                \"2-work_done\": {\n                    \"Work Done\": []\n                },\n                \"3-parts_used\": {\n                    \"Parts Used\": [\n                        {\n                            \"id\": \"197\",\n                            \"document_id\": \"66\",\n                            \"company_id\": \"14\",\n                            \"is_active\": true,\n                            \"last_updated_by\": \"17\",\n                            \"last_updated\": \"2019-07-04T09:57:49.663Z\",\n                            \"quantity\": \"1.00\",\n                            \"line_position\": null,\n                            \"unit_price\": \"20.00\",\n                            \"total_net\": \"20.00\",\n                            \"total_amount\": \"24.00\",\n                            \"discount_percent\": \"0.00\",\n                            \"discount_amount\": \"0.00\",\n                            \"vat_id\": \"2\",\n                            \"vat_rate\": \"20.00\",\n                            \"description\": \"H7 pair\",\n                            \"revenuecode\": 4005,\n                            \"item_id\": null,\n                            \"cost_price\": \"0.0000\",\n                            \"net_price\": \"20.00\",\n                            \"vat_amount\": \"4.00\",\n                            \"total_cost\": \"0.00\",\n                            \"section\": \"parts_used\",\n                            \"item_code\": \"nsp-bulb\",\n                            \"line_type\": \"non_stock\"\n                        },\n                        {\n                            \"id\": \"198\",\n                            \"document_id\": \"66\",\n                            \"company_id\": \"14\",\n                            \"is_active\": true,\n                            \"last_updated_by\": \"17\",\n                            \"last_updated\": \"2019-07-04T10:14:15.539Z\",\n                            \"quantity\": \"1.00\",\n                            \"line_position\": null,\n                            \"unit_price\": \"125.00\",\n                            \"total_net\": \"125.00\",\n                            \"total_amount\": \"150.00\",\n                            \"discount_percent\": \"0.00\",\n                            \"discount_amount\": \"0.00\",\n                            \"vat_id\": \"2\",\n                            \"vat_rate\": \"20.00\",\n                            \"description\": \"Front Discs\",\n                            \"revenuecode\": 4001,\n                            \"item_id\": \"55\",\n                            \"cost_price\": \"45.0000\",\n                            \"net_price\": \"125.00\",\n                            \"vat_amount\": \"25.00\",\n                            \"total_cost\": \"45.00\",\n                            \"section\": \"parts_used\",\n                            \"item_code\": \"FD\",\n                            \"line_type\": \"item\"\n                        }\n                    ]\n                },\n                \"4-.mot\": {\n                    \"MOT\": []\n                },\n                \"5-service\": {\n                    \"Service\": []\n                },\n                \"6-advisory\": {\n                    \"Advisories\": []\n                }\n            },\n            \"address\": {\n                \"id\": \"124\",\n                \"address1\": \"M T T Ltd\",\n                \"address2\": \"Unit 8 Morston Court\",\n                \"address3\": \"Aisecome Way\",\n                \"city\": \"Weston-super-Mare\",\n                \"county\": \"Somerset\",\n                \"postcode\": \"BS228NG\",\n                \"company_id\": \"14\",\n                \"reference_type\": \"document\",\n                \"reference_id\": \"66\"\n            },\n            \"notes\": [],\n            \"reminders\": []\n        }\n    }\n}"}],"_postman_id":"449f7cfe-9fa8-4897-96c9-4a903f8a6e65"},{"name":"Create Document","id":"9498c516-c31a-4ee1-a00d-33c7bc271ca4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"branch_id\": 12,\n    \"customer_id\": 4,\n    \"vehicle_id\": 33,\n    \"document_date\": \"2019-05-09T11:19:50.786Z\",\n    \"document_type\": \"job_card\",\n    \"docLines\": [\n        {\n            \"quantity\": 1,\n            \"line_number\": 1,\n            \"vat_id\": 1,\n            \"vat_rate\": 20,\n            \"description\": \"Test work\",\n            \"revenuecode\": 1,\n            \"item_id\": 1,\n            \"vehicle_id\": 33,\n            \"cost_price\": 12,\n            \"unit_price\": 20,\n            \"net_price\": 20,\n            \"total_net\": 20,\n            \"vat_amount\": 4,\n            \"total_amount\": 24,\n            \"discount_percent\": 0,\n            \"discount_amount\": 0\n        },\n        {\n            \"quantity\": 2,\n            \"line_number\": 1,\n            \"vat_id\": 1,\n            \"vat_rate\": 20,\n            \"description\": \"Test work\",\n            \"revenuecode\": 1,\n            \"item_id\": 1,\n            \"vehicle_id\": 33,\n            \"cost_price\": 12,\n            \"unit_price\": 50,\n            \"net_price\": 100,\n            \"total_net\": 100,\n            \"vat_amount\": 20,\n            \"total_amount\": 120,\n            \"discount_percent\": 0,\n            \"discount_amount\": 0\n        }\n    ]\n}"},"url":"{{url}}/documents","description":"<p>Create a document for branch</p>\n<h4 id=\"schema\">Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer_id: Joi.number().required(),  \ndocument_date: Joi.date().required(),  \nvehicle_id: Joi.number(),  \nbranch_id: Joi.number().required(),   \ndocument_status: Joi.number().default(0),  \ndocument_type: Enum.documentType.required(),\n</code></pre>","urlObject":{"path":["documents"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"6ca509d0-c9c7-46c4-93c3-a6ce04fcb94e","name":"Create Document","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"branch_id\": 12,\n    \"customer_id\": 4,\n    \"vehicle_id\": 33,\n    \"document_date\": \"2019-05-09T11:19:50.786Z\",\n    \"document_type\": \"job_card\",\n    \"docLines\": [\n        {\n            \"is_active\": true,\n            \"quantity\": 1,\n            \"line_number\": 1,\n            \"vat_id\": 1,\n            \"vat_rate\": 20,\n            \"description\": \"Test work\",\n            \"revenuecode\": 1,\n            \"item_id\": 1,\n            \"vehicle_id\": 33,\n            \"cost_price\": 12,\n            \"unit_price\": 20,\n            \"net_price\": 20,\n            \"total_net\": 20,\n            \"vat_amount\": 4,\n            \"total_amount\": 24,\n            \"discount_percent\": 0,\n            \"discount_amount\": 0\n        },\n        {\n            \"is_active\": true,\n            \"quantity\": 2,\n            \"line_number\": 1,\n            \"vat_id\": 1,\n            \"vat_rate\": 20,\n            \"description\": \"Test work\",\n            \"revenuecode\": 1,\n            \"item_id\": 1,\n            \"vehicle_id\": 33,\n            \"cost_price\": 12,\n            \"unit_price\": 50,\n            \"net_price\": 100,\n            \"total_net\": 100,\n            \"vat_amount\": 20,\n            \"total_amount\": 120,\n            \"discount_percent\": 0,\n            \"discount_amount\": 0\n        }\n    ]\n}"},"url":"{{url}}/documents"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1089"},{"key":"ETag","value":"W/\"441-93xEJen0wvwc409HZmqeodhuhxU\""},{"key":"Date","value":"Wed, 15 May 2019 15:42:19 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"document\": {\n            \"branch_id\": 12,\n            \"customer_id\": 4,\n            \"vehicle_id\": 33,\n            \"document_date\": \"2019-05-09T11:19:50.786Z\",\n            \"document_type\": \"job_card\",\n            \"docLines\": [\n                {\n                    \"is_active\": true,\n                    \"quantity\": 1,\n                    \"line_number\": 1,\n                    \"vat_id\": 1,\n                    \"vat_rate\": 20,\n                    \"description\": \"Test work\",\n                    \"revenuecode\": 1,\n                    \"item_id\": 1,\n                    \"vehicle_id\": 33,\n                    \"cost_price\": 12,\n                    \"unit_price\": 20,\n                    \"net_price\": \"20.00\",\n                    \"total_net\": \"20.00\",\n                    \"vat_amount\": \"4.00\",\n                    \"total_amount\": 24,\n                    \"discount_percent\": 0,\n                    \"discount_amount\": 0,\n                    \"company_id\": \"14\",\n                    \"last_updated_by\": \"17\",\n                    \"last_updated\": \"now()\"\n                },\n                {\n                    \"is_active\": true,\n                    \"quantity\": 2,\n                    \"line_number\": 1,\n                    \"vat_id\": 1,\n                    \"vat_rate\": 20,\n                    \"description\": \"Test work\",\n                    \"revenuecode\": 1,\n                    \"item_id\": 1,\n                    \"vehicle_id\": 33,\n                    \"cost_price\": 12,\n                    \"unit_price\": 50,\n                    \"net_price\": \"50.00\",\n                    \"total_net\": \"100.00\",\n                    \"vat_amount\": \"20.00\",\n                    \"total_amount\": 120,\n                    \"discount_percent\": 0,\n                    \"discount_amount\": 0,\n                    \"company_id\": \"14\",\n                    \"last_updated_by\": \"17\",\n                    \"last_updated\": \"now()\"\n                }\n            ],\n            \"document_status\": 0,\n            \"is_active\": true,\n            \"company_id\": \"14\",\n            \"last_updated_by\": \"17\",\n            \"last_updated\": \"now()\",\n            \"document_reference\": 10000001,\n            \"total_amount\": \"144.00\",\n            \"total_vat\": \"24.00\",\n            \"total_goods\": \"120.00\"\n        }\n    }\n}"}],"_postman_id":"9498c516-c31a-4ee1-a00d-33c7bc271ca4"},{"name":"Create Document Address","id":"c8ebcda4-7118-40d3-9059-69ad9fc58860","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"address1\": \"Unit 8\",\n\t\"address2\": \"Morston Court\",\n\t\"address3\": \"Aisecome Way\",\n\t\"city\": \"WSM\",\n\t\"county\": \"North Somerset\",\n   \"postcode\": \"BS22 8NG\"\n}"},"url":"{{url}}/documents/8/address","description":"<p>Add an address to a document</p>\n<h4 id=\"schema\">Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>address1: Joi.string().allow(''),\naddress2: Joi.string().allow(''),\naddress3: Joi.string().allow(''),\ncity: Joi.string().allow(''),\ncounty: Joi.string().allow(''),\npostcode: Joi.string().allow('') .required(),\n</code></pre>","urlObject":{"path":["documents","8","address"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c8ebcda4-7118-40d3-9059-69ad9fc58860"},{"name":"Create Document Line","id":"28c79d43-84e1-4fee-9a3a-8d4cfaa19e68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"position\": 1,\n  \"is_active\": true,\n  \"quantity\": 1.0,\n  \"unit_price\": 7.0,\n  \"discount_percent\": 0.0,\n  \"vat_id\": 2,\n  \"description\": \"Oil filter\",\n  \"revenuecode\": 1,\n  \"item_id\": 26,\n  \"cost_price\": 0\n}"},"url":"{{url}}/documents/8/docline","description":"<p>Add a new line to a document</p>\n<h4 id=\"schema\">Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>is_active: Joi.any().strip(),\nposition: Joi.number().required(),\nquantity: Joi.number(),\nunit_price: Joi.number(),\ndiscount_percent: Joi.number(),\nvat_id: Joi.number(),\ndescription: Joi.string(),\nitem_id: Joi.number(),\nrevenuecode: Joi.number(),\ncost_price: Joi.number(),\n</code></pre>","urlObject":{"path":["documents","8","docline"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"28c79d43-84e1-4fee-9a3a-8d4cfaa19e68"},{"name":"Create Reminder Event On Document Line","id":"d7f3ba94-fc79-4290-a017-9503be7699f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"reminder_item_id\": 2,\n  \"last_date\": \"2019-06-15T00:00:00+01:00\",\n  \"next_date\": \"2020-06-15T00:00:00+01:00\",\n  \"is_active\": true\n}"},"url":"{{url}}/documents/8/docline/22/reminder","description":"<p>Add a new reminder to a document line</p>\n<h4 id=\"schema\">Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>  reminder_item_id: Joi.number(),\n  last_date: Joi.date().iso(),\n  next_date: Joi.date().iso(),\n  is_active: Joi.boolean(),\n</code></pre>","urlObject":{"path":["documents","8","docline","22","reminder"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d7f3ba94-fc79-4290-a017-9503be7699f0"},{"name":"Update Reminder Event On Document Line","id":"5045faf7-2d45-4849-88ff-bc5d19baf5e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"reminder_item_id\": 2,\n  \"last_date\": \"2019-06-15T00:00:00+01:00\",\n  \"next_date\": \"2020-06-20T00:00:00+01:00\",\n  \"is_active\": true\n}"},"url":"{{url}}/documents/8/docline/22/reminder/6","description":"<p>Update a reminder on a document line</p>\n<h4 id=\"schema\">Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>  reminder_item_id: Joi.number(),\n  last_date: Joi.date().iso(),\n  next_date: Joi.date().iso(),\n  is_active: Joi.boolean(),\n</code></pre>","urlObject":{"path":["documents","8","docline","22","reminder","6"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"b4c421ef-6e48-4973-8617-ebabaefcb775","name":"Update Reminder Event On Document Line","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"reminder_item_id\": 2,\n  \"vehicle_id\": 4,\n  \"last_date\": \"2019-06-15T00:00:00+01:00\",\n  \"next_date\": \"2020-06-20T00:00:00+01:00\",\n  \"is_active\": true\n}"},"url":"{{url}}/documents/8/docline/22/reminder/6"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"291"},{"key":"ETag","value":"W/\"123-rwq8qzjmc/Ub1k6f/1+G0b2nvQo\""},{"key":"Date","value":"Wed, 26 Jun 2019 12:01:48 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"reminder\": {\n            \"id\": \"6\",\n            \"reminder_item_id\": \"2\",\n            \"vehicle_id\": \"4\",\n            \"document_line_id\": \"22\",\n            \"last_date\": \"2019-06-14T23:00:00.000Z\",\n            \"next_date\": \"2020-06-19T23:00:00.000Z\",\n            \"company_id\": \"1\",\n            \"is_active\": true,\n            \"last_updated_by\": 119,\n            \"last_updated\": \"2019-06-26T12:01:48.744Z\"\n        }\n    }\n}"}],"_postman_id":"5045faf7-2d45-4849-88ff-bc5d19baf5e3"},{"name":"Create Document Note","id":"4340ca8f-0f89-4b1a-bd2a-a90e358bc899","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"reference_id\": 1,\n  \"note\": \"Hello world.\",\n  \"severity\": \"low\",\n  \"is_active\": true\n}\n"},"url":"{{url}}/documents/14/note","description":"<p>Add a new line to a document</p>\n<h4 id=\"schema\">Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>is_active: Joi.any().strip(),\nposition: Joi.number().required(),\nquantity: Joi.number(),\nunit_price: Joi.number(),\ndiscount_percent: Joi.number(),\nvat_id: Joi.number(),\ndescription: Joi.string(),\nitem_id: Joi.number(),\nrevenuecode: Joi.number(),\ncost_price: Joi.number(),\n</code></pre>","urlObject":{"path":["documents","14","note"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4340ca8f-0f89-4b1a-bd2a-a90e358bc899"},{"name":"Update Document Note","id":"dced7012-3205-4f7f-b7da-8a64e9c04f9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"reference_id\": 1,\n  \"note\": \"Hello world., again\",\n  \"severity\": \"low\",\n  \"is_active\": true\n}\n"},"url":"{{url}}/documents/14/note/70","description":"<p>Add a new line to a document</p>\n<h4 id=\"schema\">Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>is_active: Joi.any().strip(),\nposition: Joi.number().required(),\nquantity: Joi.number(),\nunit_price: Joi.number(),\ndiscount_percent: Joi.number(),\nvat_id: Joi.number(),\ndescription: Joi.string(),\nitem_id: Joi.number(),\nrevenuecode: Joi.number(),\ncost_price: Joi.number(),\n</code></pre>","urlObject":{"path":["documents","14","note","70"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dced7012-3205-4f7f-b7da-8a64e9c04f9e"},{"name":"Update Document Line","id":"417973db-f6da-4a59-8638-5445033b0b18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"position\": 1,\n  \"is_active\": true,\n  \"quantity\": 3.0,\n  \"unit_price\": 20.0,\n  \"discount_percent\": 0.0,\n  \"vat_id\": 2,\n  \"description\": \"Engine Oil\",\n  \"revenuecode\": 1,\n  \"item_id\": 5,\n  \"cost_price\": 0\n}"},"url":"{{url}}/documents/18/docline/6","description":"<p>Update a line on a document</p>\n<h4 id=\"schema\">Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>is_active: Joi.any().strip(),\nposition: Joi.number().required(),\nquantity: Joi.number(),\nunit_price: Joi.number(),\ndiscount_percent: Joi.number(),\nvat_id: Joi.number(),\ndescription: Joi.string(),\nitem_id: Joi.number(),\nrevenuecode: Joi.number(),\ncost_price: Joi.number(),\n</code></pre>","urlObject":{"path":["documents","18","docline","6"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"417973db-f6da-4a59-8638-5445033b0b18"},{"name":"Delete Document Line","id":"b3e229aa-a395-48f8-95b5-b0385fc814bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"position\": 1,\n  \"is_active\": true,\n  \"quantity\": 3.0,\n  \"unit_price\": 20.0,\n  \"discount_percent\": 0.0,\n  \"vat_id\": 2,\n  \"description\": \"Engine Oil\",\n  \"revenuecode\": 1,\n  \"item_id\": 5,\n  \"cost_price\": 0\n}"},"url":"{{url}}/documents/167/docline/428","description":"<p>Delete a line from a document</p>\n","urlObject":{"path":["documents","167","docline","428"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b3e229aa-a395-48f8-95b5-b0385fc814bc"},{"name":"Delete Document","id":"b10fa4f1-27e4-4bae-9981-40eb8fa83f1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"position\": 1,\n  \"is_active\": true,\n  \"quantity\": 3.0,\n  \"unit_price\": 20.0,\n  \"discount_percent\": 0.0,\n  \"vat_id\": 2,\n  \"description\": \"Engine Oil\",\n  \"revenuecode\": 1,\n  \"item_id\": 5,\n  \"cost_price\": 0\n}"},"url":"{{url}}/documents/167","description":"<p>Delete a document &amp; attached items</p>\n","urlObject":{"path":["documents","167"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b10fa4f1-27e4-4bae-9981-40eb8fa83f1a"},{"name":"Delete Document address","id":"1ffd7cda-c8a7-4f5c-b358-4b0aecb289a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"position\": 1,\n  \"is_active\": true,\n  \"quantity\": 3.0,\n  \"unit_price\": 20.0,\n  \"discount_percent\": 0.0,\n  \"vat_id\": 2,\n  \"description\": \"Engine Oil\",\n  \"revenuecode\": 1,\n  \"item_id\": 5,\n  \"cost_price\": 0\n}"},"url":"{{url}}/documents/167/address/194","description":"<p>Delete address from a document</p>\n","urlObject":{"path":["documents","167","address","194"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1ffd7cda-c8a7-4f5c-b358-4b0aecb289a5"},{"name":"Delete Document note","id":"86dfb16e-cede-44ce-958e-7be99a173671","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"position\": 1,\n  \"is_active\": true,\n  \"quantity\": 3.0,\n  \"unit_price\": 20.0,\n  \"discount_percent\": 0.0,\n  \"vat_id\": 2,\n  \"description\": \"Engine Oil\",\n  \"revenuecode\": 1,\n  \"item_id\": 5,\n  \"cost_price\": 0\n}"},"url":"{{url}}/documents/167/note/117","description":"<p>Delete a note from a document</p>\n","urlObject":{"path":["documents","167","note","117"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"86dfb16e-cede-44ce-958e-7be99a173671"},{"name":"Delete Document Reminder","id":"29b4520f-fd54-440a-999f-48b8acf811e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"position\": 1,\n  \"is_active\": true,\n  \"quantity\": 3.0,\n  \"unit_price\": 20.0,\n  \"discount_percent\": 0.0,\n  \"vat_id\": 2,\n  \"description\": \"Engine Oil\",\n  \"revenuecode\": 1,\n  \"item_id\": 5,\n  \"cost_price\": 0\n}"},"url":"{{url}}/documents/167/docline/428/reminder/31","description":"<p>Delete a reminder item from a document</p>\n","urlObject":{"path":["documents","167","docline","428","reminder","31"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"29b4520f-fd54-440a-999f-48b8acf811e0"},{"name":"Get line position for insert above line","id":"a194a827-85cf-478e-88db-c82aa24a4660","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"position\": 1,\n  \"is_active\": true,\n  \"quantity\": 3.0,\n  \"unit_price\": 20.0,\n  \"discount_percent\": 0.0,\n  \"vat_id\": 2,\n  \"description\": \"Engine Oil\",\n  \"revenuecode\": 1,\n  \"item_id\": 5,\n  \"cost_price\": 0\n}"},"url":"{{url}}/documents/18/docline/6","description":"<p>Get line position value when inserting a line into a document</p>\n","urlObject":{"path":["documents","18","docline","6"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a194a827-85cf-478e-88db-c82aa24a4660"},{"name":"Update Document Address","id":"23bf7169-fbe8-4cda-96a4-8da151d0a1f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"address1\": \"Unit 888\",\n\t\"address2\": \"Morston Court\",\n\t\"address3\": \"Aisecome Way\",\n\t\"city\": \"WSM\",\n\t\"county\": \"North Somerset\",\n   \"postcode\": \"BS22 8NG\"\n}"},"url":"{{url}}/documents/8/address/426","description":"<p>Update address on a document</p>\n<h4 id=\"schema\">Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>address1: Joi.string().allow(''),\naddress2: Joi.string().allow(''),\naddress3: Joi.string().allow(''),\ncity: Joi.string().allow(''),\ncounty: Joi.string().allow(''),\npostcode: Joi.string().allow('') .required(),\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"f448396c-58a9-4592-997e-969c85c3b193","id":"f448396c-58a9-4592-997e-969c85c3b193","name":"Documents","type":"folder"}},"urlObject":{"path":["documents","8","address","426"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"23bf7169-fbe8-4cda-96a4-8da151d0a1f7"},{"name":"Update document","id":"85d85f05-1fa7-4f05-98ae-91765f7309cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"branch_id\": 12,\n    \"document_status\": 0,\n    \"is_active\": true,\n    \"document_date\": \"2019-05-15\",\n    \"customer_id\": 4,\n    \"vehicle_id\": 33,\n    \"document_type\": \"job_card\"\n}"},"url":"{{url}}/documents/18","description":"<p>Update a document by document_header primary key (ID)</p>\n","urlObject":{"path":["documents","18"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"5496c10b-5467-4309-a4cc-5368b2631fa0","name":"Update document","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"branch_id\": 12,\n    \"document_status\": 0,\n    \"is_active\": true,\n    \"document_date\": \"2019-05-09\",\n    \"customer_id\": 4,\n    \"vehicle_id\": 33,\n    \"document_type\": \"invoice\"\n}"},"url":"{{url}}/documents/18"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"399"},{"key":"ETag","value":"W/\"18f-Hyjh4OyCP8cMLd7goTeVR7jHRcI\""},{"key":"Date","value":"Thu, 16 May 2019 14:31:04 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"document\": {\n            \"id\": \"18\",\n            \"company_id\": \"14\",\n            \"branch_id\": \"12\",\n            \"document_status\": 0,\n            \"is_active\": true,\n            \"last_updated_by\": \"17\",\n            \"last_updated\": \"2019-05-16T14:31:04.840Z\",\n            \"document_date\": \"2019-05-08T23:00:00.000Z\",\n            \"customer_id\": \"4\",\n            \"total_goods\": \"120.0000\",\n            \"total_amount\": \"144.0000\",\n            \"total_vat\": \"24.0000\",\n            \"vehicle_id\": \"33\",\n            \"document_reference\": \"10000001\",\n            \"document_type\": \"invoice\"\n        }\n    }\n}"}],"_postman_id":"85d85f05-1fa7-4f05-98ae-91765f7309cf"},{"name":"Create document mileage","id":"5eabcad9-8758-4e84-b290-0be5bd803057","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"mileage_out\": 54000\n}"},"url":"{{url}}/documents/99/mileage","description":"<p>Creates a mileage record against the pairing of vehicleid and documentid</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"f448396c-58a9-4592-997e-969c85c3b193","id":"f448396c-58a9-4592-997e-969c85c3b193","name":"Documents","type":"folder"}},"urlObject":{"path":["documents","99","mileage"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5eabcad9-8758-4e84-b290-0be5bd803057"},{"name":"Update document mileage","id":"6d74c877-7658-4a59-9e62-00bc0044a2fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"mileage_out\": 54033\n}"},"url":"{{url}}/documents/99/mileage/18","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"f448396c-58a9-4592-997e-969c85c3b193","id":"f448396c-58a9-4592-997e-969c85c3b193","name":"Documents","type":"folder"}},"urlObject":{"path":["documents","99","mileage","18"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"18acd8de-cfc8-486f-9b54-f4037cce0dc2","name":"Update document mileage","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"mileage_out\": 54033\n}"},"url":"{{url}}/documents/99/mileage/18"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"168"},{"key":"ETag","value":"W/\"a8-cRtfymekXPuTQay90kBuOrN0G5s\""},{"key":"Date","value":"Thu, 01 Aug 2019 11:16:58 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"mileage\": {\n            \"id\": \"18\",\n            \"document_id\": \"99\",\n            \"vehicle_id\": \"66\",\n            \"mileage_in\": null,\n            \"mileage_out\": 54033,\n            \"last_updated\": \"2019-08-01T11:16:58.444Z\"\n        }\n    }\n}"}],"_postman_id":"6d74c877-7658-4a59-9e62-00bc0044a2fb"}],"id":"f448396c-58a9-4592-997e-969c85c3b193","description":"<p>Documents Route</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"_postman_id":"f448396c-58a9-4592-997e-969c85c3b193"},{"name":"Document Sequences","item":[{"name":"Get Document Sequences","id":"4508ea48-9150-4c11-a208-34684d0a23d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/documentsequences","description":"<p>Get all document sequences that belong to current users company</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["documentsequences"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"f1d9439f-7c99-41ac-82f3-41748900334c","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"4508ea48-9150-4c11-a208-34684d0a23d3"},{"name":"Get Document Sequence","id":"cff4e1d3-3532-4979-88b0-409ae0199d0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/documentsequences/6","description":"<p>Get all document sequnce by ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["documentsequences","6"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"679ed1dd-618c-4bb0-8e64-ff0f9b618bbb","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"cff4e1d3-3532-4979-88b0-409ae0199d0c"},{"name":"Update Dcoument Sequence","id":"fcd936a2-3e88-4aaa-b67a-37d2eb20f0c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"mask\": \"INV 9999999\",\n   \"last_number\": 123456,\n   \"is_active\": true,\n   \"document_type\": \"invoice\"\n}"},"url":"{{url}}/documentsequences/6","description":"<p>Get all document sequnce by ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["documentsequences","6"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"55570058-86fe-4002-828c-27fda027ce9e","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"fcd936a2-3e88-4aaa-b67a-37d2eb20f0c1"}],"id":"14fe7fd6-962f-411a-bf6c-68ddda7d19d8","_postman_id":"14fe7fd6-962f-411a-bf6c-68ddda7d19d8","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Email","item":[{"name":"Send enail","id":"092d640e-d341-420d-8206-ba28b243cff8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"to_address\": \"bounce@simulator.amazonses.com\",\n  \"subject\": \"email controller test\",\n  \"body\": \"Hello world 20200114 10:15\"\n}\n"},"url":"{{url}}/email","description":"<p>Send free text email</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["email"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"48f592b3-2e28-4c55-88fa-5239435c08f1","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"092d640e-d341-420d-8206-ba28b243cff8"},{"name":"Get list of emails","id":"9579d971-56cf-49e2-b74a-c140927c67fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/email?to_address=acade%40mttltd.com&opened=true","description":"<p>Read list of recently sent emails</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["email"],"host":["{{url}}"],"query":[{"key":"to_address","value":"acade%40mttltd.com"},{"key":"opened","value":"true"}],"variable":[]}},"response":[{"id":"777848da-cdf3-4175-9adf-b8349854fad4","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"9579d971-56cf-49e2-b74a-c140927c67fc"},{"name":"Read email by id","id":"f48f6068-18db-4925-a2e2-77c149996d68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/email/39","description":"<p>Read list of recently sent emails</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["email","39"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"77dfdfbd-1a8e-4b93-a34d-92bd913b7597","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"f48f6068-18db-4925-a2e2-77c149996d68"}],"id":"5414a8cd-45d3-42f7-805f-257eee0e2cd2","_postman_id":"5414a8cd-45d3-42f7-805f-257eee0e2cd2","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Notifications","item":[{"name":"Get list of notifications","id":"3925cabb-04da-4883-a67b-2d7fad73f2d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/notifications?priority=low&read_by_user=false","description":"<p>Get list of notifications for user.\nDefaults to maximum of 20 high priority first.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["notifications"],"host":["{{url}}"],"query":[{"key":"priority","value":"low"},{"key":"read_by_user","value":"false"}],"variable":[]}},"response":[{"id":"d1a5242b-d6a1-4bd0-b4da-334feb5676a7","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"3925cabb-04da-4883-a67b-2d7fad73f2d0"},{"name":"Read notification event by id","id":"002c4eca-9684-445f-9b6d-e5d92fa77f27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/notifications/event/1","description":"<p>Read notification event by id</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["notifications","event","1"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"58f196d0-ec6b-4a3c-a057-ed5108aa3e24","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"002c4eca-9684-445f-9b6d-e5d92fa77f27"},{"name":"Mark notifcation event as read","id":"3d8fe3dc-ff55-4bb0-bbe5-ae0f66a717c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/notifications/event/3/readbyuser","description":"<p>Mark notification event as read</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["notifications","event","3","readbyuser"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"4ec67dc3-4232-43ec-a8bd-d24e701b8c4c","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"3d8fe3dc-ff55-4bb0-bbe5-ae0f66a717c6"},{"name":"Update notication event","id":"1b114163-6a0c-477f-8573-7292a72b634d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n            \"notification_item_id\": \"1\",\n            \"created_at\": \"2020-01-24T13:00:49.021Z\",\n            \"user_id\": \"181\",\n            \"read_on\": \"2020-01-28T14:40:42.661Z\",\n            \"read_by_user\": \"false\"\n}"},"url":"{{url}}/notifications/event/1","description":"<p>Update notication event</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["notifications","event","1"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"5b9412ac-0950-40d0-8903-d27ef2f6c22b","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"1b114163-6a0c-477f-8573-7292a72b634d"},{"name":"Delete notication event","id":"b41720cf-365d-4285-95a5-b79ad122d77b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/notifications/event/1","description":"<p>Delete notication event</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["notifications","event","1"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"33adb48b-8142-4c5f-81a6-87e1e51c1b2e","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"b41720cf-365d-4285-95a5-b79ad122d77b"},{"name":"Update notication item","id":"2f2e9dd1-2718-49c8-b922-8c2552d03f5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\"notification_message\": \"Hello world  zzzzz\",\n    \"link_ref\": \"http://www/mttltd.com\",\n    \"link_type\": \"external\",\n    \"priority\": \"medium\"\n}"},"url":"{{url}}/notifications/item/5","description":"<p>Update notication item</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["notifications","item","5"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"fc76e087-2658-49d5-88a3-4d86dcb27501","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"2f2e9dd1-2718-49c8-b922-8c2552d03f5f"},{"name":"Delete notication item","id":"4ff22b60-a26e-45ef-9dc0-4a4d520983d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/notifications/item/1","description":"<p>Delete notication item</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["notifications","item","1"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"303d8307-2056-4d72-a860-2d9ca5ad067c","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"4ff22b60-a26e-45ef-9dc0-4a4d520983d9"},{"name":"Create notification event","id":"444259d1-a198-4bce-b9a4-d86639be017a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n            \"notification_item_id\": \"5\",\n            \"created_at\": \"2020-01-24T13:00:49.021Z\",\n            \"user_id\": \"24\",\n            \"read_on\": \"2020-01-28T14:40:42.661Z\",\n            \"read_by_user\": \"false\"\n}"},"url":"{{url}}/notifications/event","description":"<p>Update notication event</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["notifications","event"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"5b2e703a-4b30-4f8e-97aa-a6e7c277c1a3","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"444259d1-a198-4bce-b9a4-d86639be017a"},{"name":"Create notification item","id":"5fc2fb36-5655-4640-9eb9-6417cab92149","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\"notification_message\": \"Hello world 20200205\",\n    \"link_ref\": \"http://www/mttltd.com\",\n    \"link_type\": \"external\",\n    \"priority\": \"medium\",\n    \"subject\":\"test subject\"\n}"},"url":"{{url}}/notifications/item","description":"<p>Create notification item</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["notifications","item"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"2d721961-01e8-4daa-8c11-ec3681cce54a","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"5fc2fb36-5655-4640-9eb9-6417cab92149"},{"name":"Broadcast notification","id":"75d0ec45-db20-41b0-ab87-a500d233484a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"notification_item_id\": 1,\n    \"permission_id\": 42\n}"},"url":"{{url}}/notifications/broadcast","description":"<p>Broadcast notification to users with selected permission</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["notifications","broadcast"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"0e75416e-d953-42e1-88af-0b701f7f2322","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"75d0ec45-db20-41b0-ab87-a500d233484a"}],"id":"ce39d814-643e-406b-be8a-e87339e6dcbd","_postman_id":"ce39d814-643e-406b-be8a-e87339e6dcbd","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Enums","item":[{"name":"Get Docment Types","id":"8d20d46c-febd-426f-9275-164b3f16bbae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/enums?type=aitol_document_type","description":"<p>Get all statuses that are system statuses and belong to current users company</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["enums"],"host":["{{url}}"],"query":[{"key":"type","value":"aitol_document_type"}],"variable":[]}},"response":[{"id":"349404bd-ad2a-4b9b-8092-767e1ca4b1b6","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"8d20d46c-febd-426f-9275-164b3f16bbae"}],"id":"a256edcd-6de6-4e90-8474-fdd2d9f1bf9b","_postman_id":"a256edcd-6de6-4e90-8474-fdd2d9f1bf9b","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Login","item":[{"name":"Session login","id":"d434d199-79ac-4cdf-b78d-7c719ae1f88b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"zkierpiec@mttltd.com\",\r\n  \"password\": \"Kierpiec@1\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/login","description":"<p>Dummy call to check for available licence</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["login"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"e2273693-6e0b-479e-9916-883d9e3ea07d","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"d434d199-79ac-4cdf-b78d-7c719ae1f88b"}],"id":"6ff70da3-49bb-4cca-85c5-c8005ec9e446","event":[{"listen":"prerequest","script":{"id":"d696e869-d71d-441a-8cf7-d53e5a27adf3","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"72b061f1-9bad-4ac4-ba97-833771c2ffe2","type":"text/javascript","exec":[""]}}],"_postman_id":"6ff70da3-49bb-4cca-85c5-c8005ec9e446","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Login","item":[{"name":"Session logout","id":"c7782d1a-7ffe-45af-9aa9-6457cddae684","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{url}}/logout","description":"<p>Get all statuses that are system statuses and belong to current users company</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["logout"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"678056dd-82bd-425f-828f-74a969021b5b","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"c7782d1a-7ffe-45af-9aa9-6457cddae684"}],"id":"c7497fb7-b436-474c-a671-ebde8f2b03ba","event":[{"listen":"prerequest","script":{"id":"d696e869-d71d-441a-8cf7-d53e5a27adf3","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"72b061f1-9bad-4ac4-ba97-833771c2ffe2","type":"text/javascript","exec":[""]}}],"_postman_id":"c7497fb7-b436-474c-a671-ebde8f2b03ba","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Licences","item":[{"name":"Get Licence user count","id":"e333d54a-bc30-48b2-93d2-fa0541140399","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/licences/usercount?billing_period_start=1580515200000","description":"<p>Getstarting usercount and maximum user count for a billing period</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["licences","usercount"],"host":["{{url}}"],"query":[{"key":"billing_period_start","value":"1580515200000"}],"variable":[]}},"response":[{"id":"4048abf7-7428-4459-b2ab-54cb55590e32","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"e333d54a-bc30-48b2-93d2-fa0541140399"},{"name":"create licence","id":"e6928939-bc47-4b2c-bd47-c5210af1a30a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n \"moduleType\": \"stock_lite\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/licences","description":"<p>Creates a licence for the configured API context.</p>\n<p>This request sends a <code>POST</code> to <code>{{url}}/licences</code> with a raw JSON body. The request uses the <code>{{url}}</code> variable for the base URL and appears to rely on <code>{{token}}</code> for authenticated access where configured in the request or its parent.</p>\n<p>Request body</p>\n<ul>\n<li><code>moduleType</code> (string): The module type to create a licence for. Current example value: <code>stock_lite</code>.</li>\n</ul>\n<p>Example body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"moduleType\": \"stock_lite\"\n}\n\n</code></pre>\n<p>Expected success response</p>\n<ul>\n<li><p>Status: <code>200 OK</code></p>\n</li>\n<li><p>Example response:</p>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": \"success\",\n  \"data\": {\n    \"result\": \"success\"\n  }\n}\n\n</code></pre>\n<p>Notes</p>\n<ul>\n<li><p>Authentication details are not fully documented here, but the request context indicates use of the <code>{{token}}</code> variable.</p>\n</li>\n<li><p>Additional required fields, validation rules, and error responses are not described because they are not visible from the current request context.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["licences"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e6928939-bc47-4b2c-bd47-c5210af1a30a"}],"id":"50b93d9e-ffd6-4c1d-8ebb-219fac8617de","event":[{"listen":"prerequest","script":{"id":"d696e869-d71d-441a-8cf7-d53e5a27adf3","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"72b061f1-9bad-4ac4-ba97-833771c2ffe2","type":"text/javascript","exec":[""]}}],"_postman_id":"50b93d9e-ffd6-4c1d-8ebb-219fac8617de","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Hierarchy","item":[{"name":"Get Hierarchy by ID","id":"d7e40529-0c2f-4103-8534-cfce2753add1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/hierarchy/50/?include_inactive=true","description":"<p>Get hierarchy by ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["hierarchy","50",""],"host":["{{url}}"],"query":[{"key":"include_inactive","value":"true"}],"variable":[]}},"response":[{"id":"e63f91a1-ec9e-4673-afd8-eae5df1809dd","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"d7e40529-0c2f-4103-8534-cfce2753add1"},{"name":"Delete Hierarchy by ID","id":"678eb392-6572-43c6-b34d-943a3fa30f17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/hierarchy/50","description":"<p>Delete hierarchy by ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["hierarchy","50"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"7043e2b5-bf0e-4022-a0e3-3e9e6948b946","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"678eb392-6572-43c6-b34d-943a3fa30f17"}],"id":"f8d95d6e-3bd6-4dc2-9973-880a26cdad7a","_postman_id":"f8d95d6e-3bd6-4dc2-9973-880a26cdad7a","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Items","item":[{"name":"Item List","id":"e0c1b03c-daf3-4bcd-b30b-edf95836d7a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/items?limit=0&offset=0","description":"<p>Get suumarised list of items</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["items"],"host":["{{url}}"],"query":[{"key":"limit","value":"0"},{"key":"offset","value":"0"},{"disabled":true,"description":{"content":"<p>optional</p>\n","type":"text/plain"},"key":"item_type","value":"mot"},{"disabled":true,"description":{"content":"<p>Optional NULL allowed</p>\n","type":"text/plain"},"key":"hierarchy_id","value":"null"},{"disabled":true,"key":"item_code","value":"mot"}],"variable":[]}},"response":[{"id":"9939eea5-d8cb-457e-83c6-c405a2b768a3","name":"Item List","originalRequest":{"method":"GET","header":[],"url":"{{url}}/items"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"531"},{"key":"ETag","value":"W/\"213-CnV09gJfMKPd4XVO373R/EGej4Q\""},{"key":"Date","value":"Mon, 01 Jul 2019 12:35:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"items\": [\n            {\n                \"id\": \"20\",\n                \"item_code\": \"OF123\",\n                \"description\": \"Oil Filter\",\n                \"cost\": \"4.0000\",\n                \"price\": \"14.0000\"\n            },\n            {\n                \"id\": \"21\",\n                \"item_code\": \"ff12344\",\n                \"description\": \"Fuel Filter\",\n                \"cost\": \"5.0000\",\n                \"price\": \"13.0000\"\n            },\n            {\n                \"id\": \"22\",\n                \"item_code\": \"MOT4\",\n                \"description\": \"Carry out class 4 MOT\",\n                \"cost\": \"0.0000\",\n                \"price\": \"50.0000\"\n            },\n            {\n                \"id\": \"43\",\n                \"item_code\": \"Lab1\",\n                \"description\": \"Labour Rate 1\",\n                \"cost\": \"12.0000\",\n                \"price\": \"55.0000\"\n            },\n            {\n                \"id\": \"49\",\n                \"item_code\": \"FS1\",\n                \"description\": \"Carry out full service\",\n                \"cost\": \"0.0000\",\n                \"price\": \"180.0000\"\n            }\n        ]\n    }\n}"}],"_postman_id":"e0c1b03c-daf3-4bcd-b30b-edf95836d7a6"},{"name":"GET Item by ID","id":"b456e119-a042-4933-a535-2131f3341621","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/items/21","description":"<p>Get suumarised list of items</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["items","21"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"f8f5f4f8-d118-4721-830e-3701ccaf2b1d","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"b456e119-a042-4933-a535-2131f3341621"},{"name":"DELETE item by id","id":"b4487714-5dbc-4b2b-a780-4285dadbbc72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/items/148","description":"<p>Delete an item</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["items","148"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"59dbf160-e2ea-4d05-8b97-9aca736381fe","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"b4487714-5dbc-4b2b-a780-4285dadbbc72"},{"name":"DELETE item note","id":"cf72cdc1-5da1-4491-8faf-1f551bcb6595","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/items/21/note/114","description":"<p>Delete an item note</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["items","21","note","114"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"54084b0f-ccd3-4104-819d-3ef96db0a861","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"cf72cdc1-5da1-4491-8faf-1f551bcb6595"},{"name":"DELETE item custom field value","id":"78fa4cf1-3543-4435-8adb-00c668554654","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/items/21/customfield/136","description":"<p>Delete an item custom field value</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["items","21","customfield","136"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"69e7e767-227a-4029-a371-3bc5b8713a35","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"78fa4cf1-3543-4435-8adb-00c668554654"},{"name":"GET Item history","id":"5d529b7c-75b7-4a01-9cf6-61d0ace58a51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/items/21","description":"<p>Get suumarised list of items</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["items","21"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"511694cc-3ca8-4f77-9eb4-3ac004d7fcf3","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"5d529b7c-75b7-4a01-9cf6-61d0ace58a51"},{"name":"Create text item","id":"35fa6aaf-3634-4c5b-8e01-47d0962d4245","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"item_type\": \"text_item\",\n  \"item_code\": \"TX3\",\n  \"description\": \"Text Item 3 \"\n}\n"},"url":"{{url}}/items","description":"<p>Create a new text item</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["items"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"2c2300ca-b280-4af8-a566-348714d89848","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"35fa6aaf-3634-4c5b-8e01-47d0962d4245"},{"name":"Branch quantity","id":"e0510b28-9e10-4ef9-85f1-9bcdb5d31d81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/items/:id/branch-quantities?branchId=","description":"<p>Retrieves all companies item quantities excluding the current branch</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["items",":id","branch-quantities"],"host":["{{url}}"],"query":[{"key":"branchId","value":""}],"variable":[{"type":"any","value":"17677","key":"id"}]}},"response":[],"_postman_id":"e0510b28-9e10-4ef9-85f1-9bcdb5d31d81"}],"id":"504e8918-fe28-4f15-8fb7-96dfb8fee79f","description":"<p>Item routes</p>\n","event":[{"listen":"prerequest","script":{"id":"6dd3dd0d-69a5-4dbe-bafb-acc4a38f71fb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a2ec18de-c1cf-436a-b9b9-6af392a7cc06","type":"text/javascript","exec":[""]}}],"_postman_id":"504e8918-fe28-4f15-8fb7-96dfb8fee79f","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Payments","item":[{"name":"Get stripe Session","id":"b457d053-6621-4966-b7f4-386300e17733","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"{{url}}/payments/session","description":"<p>Gets a stripe subscription session to pass through to the front end checkout system</p>\n","urlObject":{"path":["payments","session"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b457d053-6621-4966-b7f4-386300e17733"},{"name":"Get Customer","id":"4a5a9757-089c-43e2-9dec-2826bf2942da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/payments/customer/cus_FXKou5WuNMm9XK","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["payments","customer","cus_FXKou5WuNMm9XK"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4a5a9757-089c-43e2-9dec-2826bf2942da"},{"name":"Get Customer Payment Methods","id":"d1e0a85d-cfb0-427f-b91c-5c9808969df1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/payments/customer/cus_FXKou5WuNMm9XK/paymentMethods","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["payments","customer","cus_FXKou5WuNMm9XK","paymentMethods"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d1e0a85d-cfb0-427f-b91c-5c9808969df1"},{"name":"Get Coupon by id","id":"8d919655-62b1-44bf-b1c5-aed330b56b50","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/payments/paymentDate","description":"<p>Retrieves a coupon code from stripe API by ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["payments","paymentDate"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8d919655-62b1-44bf-b1c5-aed330b56b50"},{"name":"Update Stripe Subscription","id":"eddff4dd-e11f-4c17-9385-409abbfd2ab2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"subscriptionId\": \"sub_GYeJaHwVuhF64J\",\n    \"items\": [\n    \t{\n    \t\t\"id\": \"si_GYeJlygxUxHkn0\",\n    \t\t\"plan\": \"plan_FpLylJw67SoJ1Z\",\n    \t\t\"quantity\": 80\n    \t\n    }\n    ]\n}"},"url":"{{url}}/payments/subscription","description":"<p>Sends a body of stripe plans to update against a subscription</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["payments","subscription"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"eddff4dd-e11f-4c17-9385-409abbfd2ab2"}],"id":"17cfc50c-d609-48d1-95e8-b9f21a6a4b8f","description":"<p>All requests for payment information via Stripe</p>\n","_postman_id":"17cfc50c-d609-48d1-95e8-b9f21a6a4b8f","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Reminders","item":[{"name":"Get reminder items","id":"b39e9a30-4c87-4faa-a822-f525906bc51a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/reminders","description":"<p>Gets a list of all reminders from the reminder_item table</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["reminders"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"068abf46-bb81-482a-b51d-c0b64177a9aa","name":"Get reminder items","originalRequest":{"method":"GET","header":[],"url":"{{url}}/reminders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"735"},{"key":"ETag","value":"W/\"2df-s8Lit7qcjvu0ZHtDf4AoZv1tE48\""},{"key":"Date","value":"Mon, 30 Sep 2019 15:07:21 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"reminder_items\": [\n            {\n                \"id\": \"1\",\n                \"reminder_name\": \"MOT\",\n                \"reminder_interval\": 365,\n                \"email_template_id\": \"0\",\n                \"sms_template_id\": \"0\",\n                \"system_reminder\": true,\n                \"company_id\": \"1\",\n                \"is_active\": true,\n                \"last_updated_by\": 0,\n                \"last_updated\": \"2019-06-27T09:36:50.793Z\"\n            },\n            {\n                \"id\": \"2\",\n                \"reminder_name\": \"Full Service\",\n                \"reminder_interval\": 365,\n                \"email_template_id\": \"0\",\n                \"sms_template_id\": \"0\",\n                \"system_reminder\": true,\n                \"company_id\": \"1\",\n                \"is_active\": true,\n                \"last_updated_by\": 0,\n                \"last_updated\": \"2019-06-27T09:36:50.793Z\"\n            },\n            {\n                \"id\": \"3\",\n                \"reminder_name\": \"Interim Service\",\n                \"reminder_interval\": 180,\n                \"email_template_id\": \"0\",\n                \"sms_template_id\": \"0\",\n                \"system_reminder\": true,\n                \"company_id\": \"1\",\n                \"is_active\": true,\n                \"last_updated_by\": 0,\n                \"last_updated\": \"2019-06-27T09:36:50.793Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"b39e9a30-4c87-4faa-a822-f525906bc51a"},{"name":"Get reminder item","id":"6202538d-b202-48c6-8a9f-e59520e04ec1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/reminders/1","description":"<p>Retrieves single reminder item and any schedules that are attached</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["reminders","1"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"00c4bbb7-04e6-4676-a026-abc3dde6bdad","name":"200 OK Reminder item with schedules response","originalRequest":{"method":"GET","header":[],"url":"{{url}}/reminders/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"653"},{"key":"ETag","value":"W/\"28d-ZbV767bhH57Nz/NNCGWmJDuKyc0\""},{"key":"Date","value":"Mon, 30 Sep 2019 15:46:59 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"reminder_item\": {\n            \"id\": \"1\",\n            \"reminder_name\": \"MOT\",\n            \"reminder_interval\": 365,\n            \"email_template_id\": \"0\",\n            \"sms_template_id\": \"0\",\n            \"system_reminder\": true,\n            \"company_id\": \"1\",\n            \"is_active\": true,\n            \"last_updated_by\": 0,\n            \"last_updated\": \"2019-06-27T09:36:50.793Z\",\n            \"schedules\": [\n                {\n                    \"id\": \"5\",\n                    \"reminder_item_id\": 1,\n                    \"reminder_days\": 30,\n                    \"company_id\": \"14\",\n                    \"template_type\": \"email\"\n                },\n                {\n                    \"id\": \"6\",\n                    \"reminder_item_id\": 1,\n                    \"reminder_days\": 21,\n                    \"company_id\": \"14\",\n                    \"template_type\": \"sms\"\n                },\n                {\n                    \"id\": \"7\",\n                    \"reminder_item_id\": 1,\n                    \"reminder_days\": 300,\n                    \"company_id\": \"14\",\n                    \"template_type\": \"email\"\n                },\n                {\n                    \"id\": \"8\",\n                    \"reminder_item_id\": 1,\n                    \"reminder_days\": 200,\n                    \"company_id\": \"14\",\n                    \"template_type\": \"email\"\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"6202538d-b202-48c6-8a9f-e59520e04ec1"},{"name":"Get reminder item summary","id":"b3b61f85-d37f-4b59-b02a-5e5c43031617","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/reminders/summary","description":"<p>Lists reminder items with a count of how many schedules each one has assigned</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["reminders","summary"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"bb4d45f7-e0dc-4dd6-9fe1-1872b86e8506","name":"200 OK Reminder summary response","originalRequest":{"method":"GET","header":[],"url":"{{url}}/reminders/summary"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"215"},{"key":"ETag","value":"W/\"d7-B3KJ2FmOn9YeUp5zy23oUCzj838\""},{"key":"Date","value":"Tue, 01 Oct 2019 13:45:11 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"reminder_items\": [\n            {\n                \"id\": \"2\",\n                \"reminder_name\": \"Full Service\",\n                \"reminder_interval\": 365,\n                \"total_schedules\": \"2\"\n            },\n            {\n                \"id\": \"1\",\n                \"reminder_name\": \"MOT\",\n                \"reminder_interval\": 365,\n                \"total_schedules\": \"5\"\n            }\n        ]\n    }\n}"}],"_postman_id":"b3b61f85-d37f-4b59-b02a-5e5c43031617"},{"name":"Create reminder schedule","id":"85cbcef6-75fc-4bc3-af6b-496f71a4e90c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"reminder_item_id\": 1,\n    \"reminder_days\": 200,\n    \"template_type\": \"email\"\n}"},"url":"{{url}}/reminders/schedule","description":"<p>Creates a schedule for a reminder item</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["reminders","schedule"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"85cbcef6-75fc-4bc3-af6b-496f71a4e90c"},{"name":"Update reminder schedule","id":"c2855fcf-2895-4aba-bef4-b41bca755160","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"reminder_item_id\": 1,\n\t\"reminder_days\": 200,\n\t\"template_type\": \"email\"\n}"},"url":"{{url}}/reminders/schedule/5","description":"<p>Updates a reminder schedule</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["reminders","schedule","5"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c2855fcf-2895-4aba-bef4-b41bca755160"}],"id":"c54ec8f5-f7a9-4c4a-bea6-7541ebc44ae5","description":"<p>Routes for reminder items and reminder item schedules</p>\n","_postman_id":"c54ec8f5-f7a9-4c4a-bea6-7541ebc44ae5","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Search","item":[{"name":"Search All","id":"aa9ae98d-f939-41c3-b9ed-2069fe50f1bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/search?search=l&limit=3","description":"<p>Run all searches</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["search"],"host":["{{url}}"],"query":[{"disabled":true,"key":"search","value":"123"},{"key":"search","value":"l"},{"key":"limit","value":"3"},{"disabled":true,"key":"offset","value":"1"}],"variable":[]}},"response":[{"id":"5f60d093-f579-46d3-ac55-b48de2649bb6","name":"Search All","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/search?search=147&search=parts&limit=10","host":["{{url}}"],"path":["search"],"query":[{"key":"search","value":"147"},{"key":"search","value":"parts"},{"key":"limit","value":"10"},{"key":"offset","value":"1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"403"},{"key":"ETag","value":"W/\"193-UP1dFfkH+/hPA5GSd9LZYeY5uOk\""},{"key":"Date","value":"Thu, 23 May 2019 14:07:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"65\",\n                \"customer_code\": \"PART0001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"0123456147\",\n                \"contact_name\": \"Jim White\",\n                \"email_address\": \"jwhite@example.com\",\n                \"customer_type_id\": 100\n            }\n        ],\n        \"documents\": {\n            \"document\": 1\n        },\n        \"itens\": {\n            \"item\": 1\n        },\n        \"suppliers\": {},\n        \"vehicles\": {\n            \"vehicle\": 1\n        }\n    }\n}"}],"_postman_id":"aa9ae98d-f939-41c3-b9ed-2069fe50f1bf"},{"name":"Search Douments","id":"e81fd6cf-0d3f-4d61-8977-f3776e43bbad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/search?search=oil&limit=3","description":"<p>Run document search</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["search"],"host":["{{url}}"],"query":[{"disabled":true,"key":"search","value":"123"},{"key":"search","value":"oil"},{"key":"limit","value":"3"},{"disabled":true,"key":"offset","value":"1"}],"variable":[]}},"response":[{"id":"ba94d932-fa25-45d5-87d1-f64a19f5c96b","name":"Search All","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/search?search=147&search=parts&limit=10","host":["{{url}}"],"path":["search"],"query":[{"key":"search","value":"147"},{"key":"search","value":"parts"},{"key":"limit","value":"10"},{"key":"offset","value":"1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"403"},{"key":"ETag","value":"W/\"193-UP1dFfkH+/hPA5GSd9LZYeY5uOk\""},{"key":"Date","value":"Thu, 23 May 2019 14:07:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"65\",\n                \"customer_code\": \"PART0001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"0123456147\",\n                \"contact_name\": \"Jim White\",\n                \"email_address\": \"jwhite@example.com\",\n                \"customer_type_id\": 100\n            }\n        ],\n        \"documents\": {\n            \"document\": 1\n        },\n        \"itens\": {\n            \"item\": 1\n        },\n        \"suppliers\": {},\n        \"vehicles\": {\n            \"vehicle\": 1\n        }\n    }\n}"}],"_postman_id":"e81fd6cf-0d3f-4d61-8977-f3776e43bbad"},{"name":"Search Customers","id":"eb908e01-6ab8-494b-827d-e40cb3e4d051","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/search/customers?search=147&limit=10","description":"<p>Run customer search</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["search","customers"],"host":["{{url}}"],"query":[{"key":"search","value":"147"},{"disabled":true,"key":"search","value":"parts"},{"key":"limit","value":"10"},{"disabled":true,"key":"offset","value":"1"}],"variable":[]}},"response":[{"id":"3b55859f-1295-4226-9455-9c39dfee3f34","name":"Search All","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/search?search=147&search=parts&limit=10","host":["{{url}}"],"path":["search"],"query":[{"key":"search","value":"147"},{"key":"search","value":"parts"},{"key":"limit","value":"10"},{"key":"offset","value":"1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"403"},{"key":"ETag","value":"W/\"193-UP1dFfkH+/hPA5GSd9LZYeY5uOk\""},{"key":"Date","value":"Thu, 23 May 2019 14:07:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"65\",\n                \"customer_code\": \"PART0001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"0123456147\",\n                \"contact_name\": \"Jim White\",\n                \"email_address\": \"jwhite@example.com\",\n                \"customer_type_id\": 100\n            }\n        ],\n        \"documents\": {\n            \"document\": 1\n        },\n        \"itens\": {\n            \"item\": 1\n        },\n        \"suppliers\": {},\n        \"vehicles\": {\n            \"vehicle\": 1\n        }\n    }\n}"}],"_postman_id":"eb908e01-6ab8-494b-827d-e40cb3e4d051"},{"name":"Search Items","id":"56ae71bc-c5d0-4fc3-8398-6637a50f92b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/search/items?limit=3&item_type=task&search=l","description":"<p>Run item search</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["search","items"],"host":["{{url}}"],"query":[{"disabled":true,"key":"search","value":"147"},{"key":"limit","value":"3"},{"disabled":true,"key":"offset","value":"1"},{"key":"item_type","value":"task"},{"key":"search","value":"l"}],"variable":[]}},"response":[{"id":"178e28e7-23f8-4466-81af-415f0c3c16ed","name":"Search All","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/search?search=147&search=parts&limit=10","host":["{{url}}"],"path":["search"],"query":[{"key":"search","value":"147"},{"key":"search","value":"parts"},{"key":"limit","value":"10"},{"key":"offset","value":"1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"403"},{"key":"ETag","value":"W/\"193-UP1dFfkH+/hPA5GSd9LZYeY5uOk\""},{"key":"Date","value":"Thu, 23 May 2019 14:07:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"65\",\n                \"customer_code\": \"PART0001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"0123456147\",\n                \"contact_name\": \"Jim White\",\n                \"email_address\": \"jwhite@example.com\",\n                \"customer_type_id\": 100\n            }\n        ],\n        \"documents\": {\n            \"document\": 1\n        },\n        \"itens\": {\n            \"item\": 1\n        },\n        \"suppliers\": {},\n        \"vehicles\": {\n            \"vehicle\": 1\n        }\n    }\n}"}],"_postman_id":"56ae71bc-c5d0-4fc3-8398-6637a50f92b3"},{"name":"Search Suppliers","id":"673bba05-da55-4dfa-86e6-9f0c653029dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/search/suppliers?search=parts&limit=10","description":"<p>Run supplier search</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["search","suppliers"],"host":["{{url}}"],"query":[{"disabled":true,"key":"search","value":"147"},{"key":"search","value":"parts"},{"key":"limit","value":"10"},{"disabled":true,"key":"offset","value":"1"}],"variable":[]}},"response":[{"id":"3a59a145-7d3b-47f5-a2ed-31c720c861b9","name":"Search All","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/search?search=147&search=parts&limit=10","host":["{{url}}"],"path":["search"],"query":[{"key":"search","value":"147"},{"key":"search","value":"parts"},{"key":"limit","value":"10"},{"key":"offset","value":"1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"403"},{"key":"ETag","value":"W/\"193-UP1dFfkH+/hPA5GSd9LZYeY5uOk\""},{"key":"Date","value":"Thu, 23 May 2019 14:07:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"65\",\n                \"customer_code\": \"PART0001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"0123456147\",\n                \"contact_name\": \"Jim White\",\n                \"email_address\": \"jwhite@example.com\",\n                \"customer_type_id\": 100\n            }\n        ],\n        \"documents\": {\n            \"document\": 1\n        },\n        \"itens\": {\n            \"item\": 1\n        },\n        \"suppliers\": {},\n        \"vehicles\": {\n            \"vehicle\": 1\n        }\n    }\n}"}],"_postman_id":"673bba05-da55-4dfa-86e6-9f0c653029dc"},{"name":"Search Vehicles","id":"5e22e81e-351b-43a4-a742-a351cacdec17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/search/vehicles?search=147&limit=10","description":"<p>Run vehicle search</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["search","vehicles"],"host":["{{url}}"],"query":[{"key":"search","value":"147"},{"disabled":true,"key":"search","value":"parts"},{"key":"limit","value":"10"},{"disabled":true,"key":"offset","value":"1"}],"variable":[]}},"response":[{"id":"f4b93702-0c54-4bd8-b10b-67efdac839fe","name":"Search All","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/search?search=147&search=parts&limit=10","host":["{{url}}"],"path":["search"],"query":[{"key":"search","value":"147"},{"key":"search","value":"parts"},{"key":"limit","value":"10"},{"key":"offset","value":"1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"403"},{"key":"ETag","value":"W/\"193-UP1dFfkH+/hPA5GSd9LZYeY5uOk\""},{"key":"Date","value":"Thu, 23 May 2019 14:07:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"65\",\n                \"customer_code\": \"PART0001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"0123456147\",\n                \"contact_name\": \"Jim White\",\n                \"email_address\": \"jwhite@example.com\",\n                \"customer_type_id\": 100\n            }\n        ],\n        \"documents\": {\n            \"document\": 1\n        },\n        \"itens\": {\n            \"item\": 1\n        },\n        \"suppliers\": {},\n        \"vehicles\": {\n            \"vehicle\": 1\n        }\n    }\n}"}],"_postman_id":"5e22e81e-351b-43a4-a742-a351cacdec17"}],"id":"6714b30e-6c0d-4187-b89a-2347be797ed4","description":"<p>Item routes</p>\n","event":[{"listen":"prerequest","script":{"id":"6dd3dd0d-69a5-4dbe-bafb-acc4a38f71fb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a2ec18de-c1cf-436a-b9b9-6af392a7cc06","type":"text/javascript","exec":[""]}}],"_postman_id":"6714b30e-6c0d-4187-b89a-2347be797ed4","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Status","item":[{"name":"Get Statuses","id":"edba20eb-f3fb-4cf3-bf01-04da4279a435","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/status?include_inactive=true&status_type=document","description":"<p>Get all statuses that are system statuses and belong to current users company</p>\n","urlObject":{"path":["status"],"host":["{{url}}"],"query":[{"description":{"content":"<p>OPTIONAL include items marked as inactive</p>\n","type":"text/plain"},"key":"include_inactive","value":"true"},{"description":{"content":"<p>OPTIONAL aitol type</p>\n","type":"text/plain"},"key":"status_type","value":"document"}],"variable":[]}},"response":[{"id":"5ce4af49-468a-4e5a-84ac-f7143fef1b0e","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"edba20eb-f3fb-4cf3-bf01-04da4279a435"},{"name":"Get Status by ID","id":"a1397fc7-becc-4314-afe4-791344e24dc9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/status?include_inactive=true&status_type=document","description":"<p>Get status by ID</p>\n","urlObject":{"path":["status"],"host":["{{url}}"],"query":[{"description":{"content":"<p>OPTIONAL include items marked as inactive</p>\n","type":"text/plain"},"key":"include_inactive","value":"true"},{"description":{"content":"<p>OPTIONAL aitol type</p>\n","type":"text/plain"},"key":"status_type","value":"document"}],"variable":[]}},"response":[{"id":"450f6ce0-21d2-435c-be6b-0c684981ae31","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"a1397fc7-becc-4314-afe4-791344e24dc9"},{"name":"Delete Status by ID","id":"31122c4e-f202-4bdb-989b-e27d10caea54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{url}}/status/45","description":"<p>Delete status by ID</p>\n","urlObject":{"path":["status","45"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"4be3c0f2-80ed-406c-96d7-4d080655edf6","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"31122c4e-f202-4bdb-989b-e27d10caea54"},{"name":"Create new status","id":"a7d62fef-0cbe-43c5-b828-568c759899a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"company_id\": 1,\n  \"description\": \"Pending\",\n  \"status_type\": \"document\",\n  \"system_status\": true,\n  \"is_active\": true\n}\n"},"url":"{{url}}/status","description":"<p>Create new status</p>\n","urlObject":{"path":["status"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"152f8e6b-9986-47f9-af2c-74576d2a6d50","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"a7d62fef-0cbe-43c5-b828-568c759899a7"},{"name":"Update a status","id":"652e7191-a3ca-49f2-82a2-424f9765ee6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"company_id\": 1,\n  \"description\": \"Pending 39a\",\n  \"status_type\": \"document\",\n  \"system_status\": true,\n  \"is_active\": true\n}\n"},"url":"{{url}}/status/39","description":"<p>Create new status</p>\n","urlObject":{"path":["status","39"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"d9e3024a-7c96-4658-823b-22678b4b03a8","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"652e7191-a3ca-49f2-82a2-424f9765ee6d"}],"id":"67729d80-e998-437a-b629-88d5696dd651","_postman_id":"67729d80-e998-437a-b629-88d5696dd651","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Roles","item":[{"name":"Get Roles","id":"db0e7a4d-ea8b-42de-b313-d210b427b98d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/roles","description":"<p>Get all roles for company plus system roles</p>\n","urlObject":{"path":["roles"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"5d076f94-cd3e-4dd2-ad13-518eb9dee0fb","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"db0e7a4d-ea8b-42de-b313-d210b427b98d"},{"name":"Get Role by id","id":"5ae14c34-4d0b-4caf-9a42-ca4d48676324","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/roles/7","description":"<p>Get role by id</p>\n","urlObject":{"path":["roles","7"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"c90b7af0-e8aa-48ee-87bb-a7c1cd489b9b","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"5ae14c34-4d0b-4caf-9a42-ca4d48676324"},{"name":"Create New Role","id":"405d19c9-d9df-4501-97c7-31b7800eb27b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"role_name\": \"MTT test user Jul 03\",\n  \"is_active\": true,\n  \"roaming\": true,\n  \"preferences\": {\n    \"a\": \"b\",\n    \"c\": \"d\"\n  }\n}\n"},"url":"{{url}}/roles","description":"<p>Create new role</p>\n","urlObject":{"path":["roles"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"b7973ad0-5953-4d7b-94da-2bbbdb3e3656","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"405d19c9-d9df-4501-97c7-31b7800eb27b"},{"name":"Update Role","id":"38358b4a-e672-4d1d-9762-2b603dab3ef4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"role_name\": \"MTT test user Jul 03a\",\n  \"is_active\": true,\n  \"roaming\": true,\n  \"preferences\": {\n    \"a\": \"b\",\n    \"c\": \"d\"\n  }\n}\n"},"url":"{{url}}/roles/7","description":"<p>Update role</p>\n","urlObject":{"path":["roles","7"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"f7f2d890-65eb-4f71-97c2-58c0dda25b7d","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"38358b4a-e672-4d1d-9762-2b603dab3ef4"},{"name":"Delete role","id":"fe51508d-b3c8-49ce-a0b0-619ec542987a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"role_name\": \"MTT test user Jul 03a\",\n  \"is_active\": true,\n  \"roaming\": true,\n  \"preferences\": {\n    \"a\": \"b\",\n    \"c\": \"d\"\n  }\n}\n"},"url":"{{url}}/roles/112","description":"<p>Delete role</p>\n","urlObject":{"path":["roles","112"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"da177a5b-9e80-45a7-9711-3e522b7d867f","name":"Get Statuses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/status?include_inactive=true&status_type=document","host":["{{url}}"],"path":["status"],"query":[{"key":"include_inactive","value":"true","description":"OPTIONAL include items marked as inactive"},{"key":"status_type","value":"document","description":"OPTIONAL aitol type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1259"},{"key":"ETag","value":"W/\"4eb-qfPymlpz5Co2W4g6oO990GMNDE8\""},{"key":"Date","value":"Fri, 24 May 2019 15:10:17 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": [\n            {\n                \"id\": \"13\",\n                \"company_id\": \"1\",\n                \"description\": \"Complete\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T14:43:59.821Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"30\",\n                \"company_id\": \"1\",\n                \"description\": \"Allocated\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-29T15:18:55.136Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"4\",\n                \"company_id\": \"1\",\n                \"description\": \"Ready to invoice\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-24T13:06:37.486Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for customer\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:56:35.915Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"38\",\n                \"company_id\": \"1\",\n                \"description\": \"Waiting for parts\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-05-22T12:57:22.406Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            },\n            {\n                \"id\": \"3\",\n                \"company_id\": \"1\",\n                \"description\": \"In progress\",\n                \"system_status\": true,\n                \"is_active\": true,\n                \"last_updated_by\": \"26\",\n                \"last_updated\": \"2019-04-30T09:43:04.866Z\",\n                \"status_type\": \"document\",\n                \"position\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"fe51508d-b3c8-49ce-a0b0-619ec542987a"}],"id":"48e703e8-a918-4381-9eca-87bd26157e2e","event":[{"listen":"prerequest","script":{"id":"3e0b0fbd-697f-4a70-b0f0-bfc64c114c2f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"38a0140a-70ee-420c-b761-4cc614d12749","type":"text/javascript","exec":[""]}}],"_postman_id":"48e703e8-a918-4381-9eca-87bd26157e2e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Role Permissions","item":[{"name":"Get Role Permissions","id":"bb490043-3624-4198-b6f6-79246c032b76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/rolepermissions","description":"<p>Get all role permissions</p>\n","urlObject":{"path":["rolepermissions"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"84815ba0-ca27-4b63-bf9b-5a2e75c3b286","name":"Get Role Permissions","originalRequest":{"method":"GET","header":[],"url":"{{url}}/rolepermissions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"200"},{"key":"ETag","value":"W/\"c8-di1IzXSTjdNzF4b7mNA+d2QQceQ\""},{"key":"Date","value":"Wed, 03 Jul 2019 11:16:19 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"role_permissions\": [\n            {\n                \"id\": \"9191\",\n                \"permission_id\": \"443\",\n                \"company_id\": \"14\",\n                \"role_id\": \"1\",\n                \"is_active\": true,\n                \"last_updated_by\": \"24\",\n                \"last_updated\": \"2019-07-03T10:27:03.909Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"bb490043-3624-4198-b6f6-79246c032b76"},{"name":"Get Role by id","id":"4ebc408d-cbf6-426d-8810-d941af7a9d1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/rolepermissions/9191","description":"<p>Get role by id</p>\n","urlObject":{"path":["rolepermissions","9191"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"0eb1c21e-e084-4fe8-bc34-7033c71cab07","name":"Get Role by id","originalRequest":{"method":"GET","header":[],"url":"{{url}}/rolepermissions/9191"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"195"},{"key":"ETag","value":"W/\"c3-3MOFPUeZGn65hUM93VGywlzPuW8\""},{"key":"Date","value":"Wed, 03 Jul 2019 10:21:15 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"role_permission\": {\n            \"id\": \"9191\",\n            \"permission_id\": \"1\",\n            \"company_id\": \"14\",\n            \"role_id\": \"1\",\n            \"is_active\": true,\n            \"last_updated_by\": \"24\",\n            \"last_updated\": \"2019-07-03T10:17:05.584Z\"\n        }\n    }\n}"}],"_postman_id":"4ebc408d-cbf6-426d-8810-d941af7a9d1d"},{"name":"Get Permissions for Role","id":"5e91ee2d-9352-44e8-b909-985003439560","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/rolepermissions/role/109","description":"<p>Get all permsions for a role</p>\n","urlObject":{"path":["rolepermissions","role","109"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"b5d54f50-091b-4cf5-b594-7bae51e127e8","name":"Get Permissions for Role","originalRequest":{"method":"GET","header":[],"url":"{{url}}/rolepermissions/role/109"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"5e91ee2d-9352-44e8-b909-985003439560"},{"name":"Create New Role Permission","id":"89a1a4dc-13c6-462f-89f2-a487ffbbf96b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"permission_id\": 1,\n  \"role_id\": 1,\n  \"is_active\": true\n}\n"},"url":"{{url}}/rolepermissions","description":"<p>Create new role permission</p>\n","urlObject":{"path":["rolepermissions"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"b81a6d6b-e006-45fb-8cfc-a6a9675277b3","name":"Create New Role Permission","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"permission_id\": 1,\n  \"role_id\": 1,\n  \"is_active\": true\n}\n"},"url":"{{url}}/rolepermissions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"184"},{"key":"ETag","value":"W/\"b8-mhIBXWlrYzMUy7njzOiixv5akL0\""},{"key":"Date","value":"Wed, 03 Jul 2019 10:17:05 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"user\": {\n            \"id\": \"9191\",\n            \"permission_id\": \"1\",\n            \"company_id\": \"14\",\n            \"role_id\": \"1\",\n            \"is_active\": true,\n            \"last_updated_by\": \"24\",\n            \"last_updated\": \"2019-07-03T10:17:05.584Z\"\n        }\n    }\n}"}],"_postman_id":"89a1a4dc-13c6-462f-89f2-a487ffbbf96b"},{"name":"Update Role Permission","id":"46cf049a-6975-4dca-b058-111c63ca7c24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"permission_id\": 443,\n  \"role_id\": 1,\n  \"is_active\": true\n}\n"},"url":"{{url}}/rolepermissions/9191","description":"<p>Update role permission</p>\n","urlObject":{"path":["rolepermissions","9191"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"5145cc92-a8f7-4fb4-bcbf-e73a04b311e1","name":"Update Role Permission","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"permission_id\": 443,\n  \"role_id\": 1,\n  \"is_active\": true\n}\n"},"url":"{{url}}/rolepermissions/9191"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"197"},{"key":"ETag","value":"W/\"c5-X0yi4wvN6rrav8KIXMLEvmqZz+8\""},{"key":"Date","value":"Wed, 03 Jul 2019 10:27:03 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"role_permission\": {\n            \"id\": \"9191\",\n            \"permission_id\": \"443\",\n            \"company_id\": \"14\",\n            \"role_id\": \"1\",\n            \"is_active\": true,\n            \"last_updated_by\": \"24\",\n            \"last_updated\": \"2019-07-03T10:27:03.909Z\"\n        }\n    }\n}"}],"_postman_id":"46cf049a-6975-4dca-b058-111c63ca7c24"},{"name":"Update Role Permission","id":"b7444feb-7e7c-45c6-a670-f1eb062a4feb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"role_id\": 109,\n  \"type\":\"routes\",\n  \"section\": \"Documents\",\n  \"permission_name\": \"Read\",\n  \"new_value\": true\n}\n"},"url":"{{url}}/rolepermissions","description":"<p>Update role permission</p>\n","urlObject":{"path":["rolepermissions"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"1f9b0bcc-d964-423b-9689-1bc3e24b352b","name":"Update Role Permission","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"role_id\": 109,\n  \"type\":\"routes\",\n  \"section\": \"Documents\",\n  \"permission_name\": \"Read\",\n  \"new_value\": true\n}\n"},"url":"{{url}}/rolepermissions"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"b7444feb-7e7c-45c6-a670-f1eb062a4feb"}],"id":"b235aa99-6cab-402f-8d59-a4a03754e86c","event":[{"listen":"prerequest","script":{"id":"3e0b0fbd-697f-4a70-b0f0-bfc64c114c2f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"38a0140a-70ee-420c-b761-4cc614d12749","type":"text/javascript","exec":[""]}}],"_postman_id":"b235aa99-6cab-402f-8d59-a4a03754e86c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Supplier","item":[{"name":"Supplier List","id":"18312992-6659-4cc9-8279-ae84fc875ba2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/supplier","description":"<p>Get suumarised list of suppliers</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["supplier"],"host":["{{url}}"],"query":[{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"supplier_type_id","value":"156"},{"disabled":true,"key":"supplier_code","value":"PART1001"},{"disabled":true,"key":"offset","value":""}],"variable":[]}},"response":[{"id":"f4b0b2b7-de29-4c27-a42e-9d9b49973cc2","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"18312992-6659-4cc9-8279-ae84fc875ba2"},{"name":"GET Supplier by id","id":"e04394af-8313-432c-8676-d92cfe6dafcc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/supplier/30","description":"<p>Get suumarised list of suppliers</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["supplier","30"],"host":["{{url}}"],"query":[{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"supplier_type_id","value":"156"},{"disabled":true,"key":"supplier_code","value":"PART1001"},{"disabled":true,"key":"offset","value":""}],"variable":[]}},"response":[{"id":"e470fb7f-4a69-4bdf-aab6-da3b38359b3e","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"e04394af-8313-432c-8676-d92cfe6dafcc"},{"name":"DELETE Supplier by id","id":"72776f96-8c39-461c-905d-67eac9637fc0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/supplier/30","description":"<p>Delete a supplier by id</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["supplier","30"],"host":["{{url}}"],"query":[{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"supplier_type_id","value":"156"},{"disabled":true,"key":"supplier_code","value":"PART1001"},{"disabled":true,"key":"offset","value":""}],"variable":[]}},"response":[{"id":"08fa501e-0b93-4ce9-b7d1-8d9a4f99db86","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"72776f96-8c39-461c-905d-67eac9637fc0"},{"name":"DELETE Supplier contact","id":"1f3e7063-f35d-44cf-849d-304e5b31b41c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/supplier/30/contact/31","description":"<p>Delete a supplier contact</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["supplier","30","contact","31"],"host":["{{url}}"],"query":[{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"supplier_type_id","value":"156"},{"disabled":true,"key":"supplier_code","value":"PART1001"},{"disabled":true,"key":"offset","value":""}],"variable":[]}},"response":[{"id":"bf609e39-9cee-42a2-bd10-2cdcd063a52e","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"1f3e7063-f35d-44cf-849d-304e5b31b41c"},{"name":"DELETE Supplier custom field","id":"d1b461cc-c526-4368-baa3-725d4fd68544","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/supplier/30/customfield/9","description":"<p>Delete a supplier custom field</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["supplier","30","customfield","9"],"host":["{{url}}"],"query":[{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"supplier_type_id","value":"156"},{"disabled":true,"key":"supplier_code","value":"PART1001"},{"disabled":true,"key":"offset","value":""}],"variable":[]}},"response":[{"id":"3b47fef2-1472-4a57-b3bc-c9bdb1fff488","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"d1b461cc-c526-4368-baa3-725d4fd68544"},{"name":"DELETE Supplier note","id":"4ba375c4-25e1-4236-b85c-eb78054e7853","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/supplier/30/note/29","description":"<p>Delete supplier note</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["supplier","30","note","29"],"host":["{{url}}"],"query":[{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"supplier_type_id","value":"156"},{"disabled":true,"key":"supplier_code","value":"PART1001"},{"disabled":true,"key":"offset","value":""}],"variable":[]}},"response":[{"id":"b4c0489b-1a04-4259-8672-b08fda3f9dae","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"4ba375c4-25e1-4236-b85c-eb78054e7853"},{"name":"DELETE Supplier address","id":"df96fe09-8087-4e7a-aae4-5405a33af82e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/supplier/30/address/376","description":"<p>Delete supplier address</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["supplier","30","address","376"],"host":["{{url}}"],"query":[{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"supplier_type_id","value":"156"},{"disabled":true,"key":"supplier_code","value":"PART1001"},{"disabled":true,"key":"offset","value":""}],"variable":[]}},"response":[{"id":"5be23f9c-52db-4ad0-bd22-27546272159c","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"df96fe09-8087-4e7a-aae4-5405a33af82e"},{"name":"DELETE Supplier contact address","id":"925f0823-e1e0-4baf-a4ed-709f78eade42","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/supplier/30/contact/31/address/75","description":"<p>Delete supplier address</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["supplier","30","contact","31","address","75"],"host":["{{url}}"],"query":[{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"supplier_type_id","value":"156"},{"disabled":true,"key":"supplier_code","value":"PART1001"},{"disabled":true,"key":"offset","value":""}],"variable":[]}},"response":[{"id":"0c0d71b5-ba9b-44b9-ae5d-0b1b453469c4","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"925f0823-e1e0-4baf-a4ed-709f78eade42"},{"name":"Supplier History","id":"0ced8368-f800-4e13-baa4-5c2ba7223946","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/supplier","description":"<p>History of supplier changes</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["supplier"],"host":["{{url}}"],"query":[{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"supplier_type_id","value":"156"},{"disabled":true,"key":"supplier_code","value":"PART1001"},{"disabled":true,"key":"offset","value":""}],"variable":[]}},"response":[{"id":"774e987d-a8e9-46ef-81e0-4981e3dfae82","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"0ced8368-f800-4e13-baa4-5c2ba7223946"}],"id":"00e42747-fd03-440c-a6bb-60f3430248a3","description":"<p>Supplier routes</p>\n","event":[{"listen":"prerequest","script":{"id":"6dd3dd0d-69a5-4dbe-bafb-acc4a38f71fb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a2ec18de-c1cf-436a-b9b9-6af392a7cc06","type":"text/javascript","exec":[""]}}],"_postman_id":"00e42747-fd03-440c-a6bb-60f3430248a3","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Users","item":[{"name":"User List","id":"f9ef8b4f-afe9-4e6e-a15c-f0d5c73173e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/users?tech_only=true&mot_only=true","description":"<p>Get list of users</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["users"],"host":["{{url}}"],"query":[{"description":{"content":"<p>returns mot testers</p>\n","type":"text/plain"},"key":"tech_only","value":"true"},{"description":{"content":"<p>returns technicians</p>\n","type":"text/plain"},"key":"mot_only","value":"true"}],"variable":[]}},"response":[{"id":"161ca432-0e33-4bd4-86b5-865f9a0b8b0d","name":"User List technicians only","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/users?tech_only=true","host":["{{url}}"],"path":["users"],"query":[{"key":"tech_only","value":"true","description":"returns mot testers"},{"key":"mot_only","value":"true","description":"returns technicians","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"354"},{"key":"ETag","value":"W/\"162-ACWKrwA+NUmRUVuvZ/zYp6SbKt0\""},{"key":"Date","value":"Tue, 23 Jul 2019 13:59:34 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"users\": [\n            {\n                \"id\": \"94\",\n                \"company_id\": \"14\",\n                \"role_id\": \"14\",\n                \"branch_id\": \"12\",\n                \"date_of_birth\": null,\n                \"aws_user_id\": null,\n                \"is_active\": true,\n                \"last_updated_by\": \"17\",\n                \"last_updated\": \"2019-07-22T14:35:21.221Z\",\n                \"user_name\": \"Peter Parker\",\n                \"email_address\": \"pparker@mttltd.com\",\n                \"config\": {\n                    \"technician_opts\": {\n                        \"mot_tester\": true,\n                        \"technician\": true\n                    }\n                }\n            }\n        ]\n    }\n}"},{"id":"373b1ac8-0c5d-4b88-90ba-dd8959eac266","name":"User List mot testers only","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/users?mot_only=true","host":["{{url}}"],"path":["users"],"query":[{"key":"tech_only","value":"true","description":"returns mot testers","disabled":true},{"key":"mot_only","value":"true","description":"returns technicians"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"704"},{"key":"ETag","value":"W/\"2c0-Ut5wjR6kdsymDdSP/YIDa7rGm/8\""},{"key":"Date","value":"Tue, 23 Jul 2019 13:50:35 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"users\": [\n            {\n                \"id\": \"17\",\n                \"company_id\": \"14\",\n                \"role_id\": \"4\",\n                \"branch_id\": \"12\",\n                \"date_of_birth\": null,\n                \"aws_user_id\": \"ca02abbc-9ec7-4fa6-9d91-57b0eb308a5c\",\n                \"is_active\": true,\n                \"last_updated_by\": \"17\",\n                \"last_updated\": \"2019-07-23T11:21:54.215Z\",\n                \"user_name\": \"Donald Blake\",\n                \"email_address\": \"lfittall@mttltd.com\",\n                \"config\": {\n                    \"technician_opts\": {\n                        \"mot_tester\": true,\n                        \"technician\": false\n                    }\n                }\n            },\n            {\n                \"id\": \"94\",\n                \"company_id\": \"14\",\n                \"role_id\": \"14\",\n                \"branch_id\": \"12\",\n                \"date_of_birth\": null,\n                \"aws_user_id\": null,\n                \"is_active\": true,\n                \"last_updated_by\": \"17\",\n                \"last_updated\": \"2019-07-22T14:35:21.221Z\",\n                \"user_name\": \"Peter Parker\",\n                \"email_address\": \"pparker@mttltd.com\",\n                \"config\": {\n                    \"technician_opts\": {\n                        \"mot_tester\": true,\n                        \"technician\": true\n                    }\n                }\n            }\n        ]\n    }\n}"}],"_postman_id":"f9ef8b4f-afe9-4e6e-a15c-f0d5c73173e8"},{"name":"Get User","id":"0ba8156e-f1be-4659-8d92-da6467fa1006","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/users/24","description":"<p>Get suumarised list of suppliers</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["users","24"],"host":["{{url}}"],"query":[{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"supplier_type_id","value":"156"},{"disabled":true,"key":"supplier_code","value":"PART1001"},{"disabled":true,"key":"offset","value":""}],"variable":[]}},"response":[{"id":"4eede9c6-e1c8-482e-b0e9-9db6608b3f20","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"0ba8156e-f1be-4659-8d92-da6467fa1006"},{"name":"My Details","id":"16e41efd-369a-420b-915b-eabf9fe5275f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/users/mydetails","description":"<p>Get suumarised list of suppliers</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["users","mydetails"],"host":["{{url}}"],"query":[{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"supplier_type_id","value":"156"},{"disabled":true,"key":"supplier_code","value":"PART1001"},{"disabled":true,"key":"offset","value":""}],"variable":[]}},"response":[{"id":"8dfa5943-608b-473e-a7e1-7f87db7a308f","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"16e41efd-369a-420b-915b-eabf9fe5275f"},{"name":"My Details Copy","id":"cd0531e2-e09e-4cf3-8a31-5d934fab87c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/mydetails","description":"<p>Get suumarised list of suppliers</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["mydetails"],"host":["{{url}}"],"query":[{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"supplier_type_id","value":"156"},{"disabled":true,"key":"supplier_code","value":"PART1001"},{"disabled":true,"key":"offset","value":""}],"variable":[]}},"response":[{"id":"2c3005fd-2f70-4a3e-a5c0-3925f747bd75","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"cd0531e2-e09e-4cf3-8a31-5d934fab87c4"},{"name":"Post User","id":"be7778ad-3626-4173-a923-0c88e1608f9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"user_name\": \"John Smith\",\n  \"role_id\": 10,\n  \"branch_id\": 0,\n  \"date_of_birth\": \"1970-01-01\",\n  \"email_address\": \"support@mttltd.com\",\n  \"is_active\": true\n}"},"url":"{{url}}/users","description":"<p>Get suumarised list of suppliers</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["users"],"host":["{{url}}"],"query":[{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"supplier_type_id","value":"156"},{"disabled":true,"key":"supplier_code","value":"PART1001"},{"disabled":true,"key":"offset","value":""}],"variable":[]}},"response":[{"id":"f1770fc3-3645-4900-b80c-c708da9f1ebe","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"be7778ad-3626-4173-a923-0c88e1608f9a"},{"name":"Post User Custom Field","id":"382caa6b-3143-413d-900b-368d34f22185","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"user_name\": \"John Smith\",\n  \"role_id\": 10,\n  \"branch_id\": 0,\n  \"date_of_birth\": \"1970-01-01\",\n  \"email_address\": \"support@mttltd.com\",\n  \"is_active\": true\n}"},"url":"{{url}}/users","description":"<p>Create custom field for user</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["users"],"host":["{{url}}"],"query":[{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"supplier_type_id","value":"156"},{"disabled":true,"key":"supplier_code","value":"PART1001"},{"disabled":true,"key":"offset","value":""}],"variable":[]}},"response":[{"id":"35fedbfd-df57-4217-a4c9-14b46969f3fa","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"382caa6b-3143-413d-900b-368d34f22185"},{"name":"Post User Custom Field Copy","id":"f441fde1-6a8d-457f-8a22-32a8e03c55c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n   \"custom_field_id\": 3,\r\n   \"value\": \"testtesttest2223\",\r\n   \"is_active\": \"true\"\r\n}"},"url":"{{url}}/users/24/customfield/61","description":"<p>Update custom field for user</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["users","24","customfield","61"],"host":["{{url}}"],"query":[{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"supplier_type_id","value":"156"},{"disabled":true,"key":"supplier_code","value":"PART1001"},{"disabled":true,"key":"offset","value":""}],"variable":[]}},"response":[{"id":"1e649460-1c47-4acf-bca6-8801af320ccb","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"f441fde1-6a8d-457f-8a22-32a8e03c55c3"},{"name":"Put User Copy","id":"1343e82f-493a-42cb-9252-7072684a4cab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"user_name\": \"John Smith\",\n  \"role_id\": 10,\n  \"branch_id\": 0,\n  \"date_of_birth\": \"1979-01-01\",\n  \"email_address\": \"support@mttltd.com\",\n  \"is_active\": true\n}"},"url":"{{url}}/users/50","description":"<p>Get suumarised list of suppliers</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["users","50"],"host":["{{url}}"],"query":[{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"supplier_type_id","value":"156"},{"disabled":true,"key":"supplier_code","value":"PART1001"},{"disabled":true,"key":"offset","value":""}],"variable":[]}},"response":[{"id":"266bad4f-28b0-4182-88d0-c652c03905eb","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"1343e82f-493a-42cb-9252-7072684a4cab"},{"name":"Get User By Email","id":"d551e4d4-48a2-402f-bb49-1127016f10b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/users/test@mttltd.com","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["users","test@mttltd.com"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d551e4d4-48a2-402f-bb49-1127016f10b2"}],"id":"14605db8-7a78-4e9f-a3d0-b0a71d5a226e","description":"<p>user routes</p>\n","event":[{"listen":"prerequest","script":{"id":"6dd3dd0d-69a5-4dbe-bafb-acc4a38f71fb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a2ec18de-c1cf-436a-b9b9-6af392a7cc06","type":"text/javascript","exec":[""]}}],"_postman_id":"14605db8-7a78-4e9f-a3d0-b0a71d5a226e","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Vehicle","item":[{"name":"Vehicles","id":"b4a41c29-85c6-432c-a84c-cdd345ad829b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/vehicles?customer_id=17","description":"<p>Get all the vehicles associated with a users company</p>\n","urlObject":{"path":["vehicles"],"host":["{{url}}"],"query":[{"key":"customer_id","value":"17"}],"variable":[]}},"response":[{"id":"11983e89-075c-428e-9b86-709df6311114","name":"Vehicles","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/vehicles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1506"},{"key":"ETag","value":"W/\"5e2-sQlDlsEhVkQfpTBgXhMqSBOnTTM\""},{"key":"Date","value":"Fri, 10 May 2019 12:37:28 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"vehicles\": [\n            {\n                \"id\": \"7\",\n                \"company_id\": \"14\",\n                \"customer_id\": \"4\",\n                \"vehicle_type_id\": 115,\n                \"fuel_type_id\": 129,\n                \"transmission_type_id\": 150,\n                \"colour\": \"silver\",\n                \"engine_code\": \"\",\n                \"engine_number\": \"2342324\",\n                \"vin\": \"et444yhy\",\n                \"co2_emissions\": 99,\n                \"date_first_registered\": \"2019-04-30T11:19:50.786Z\",\n                \"year_of_manufacture\": 10,\n                \"number_of_doors\": 5,\n                \"is_active\": true,\n                \"last_updated_by\": 17,\n                \"last_updated\": \"2019-05-01T14:54:12.653Z\",\n                \"engine_capacity\": \"2000\",\n                \"make\": \"Ford\",\n                \"model\": \"Mondeo\",\n                \"model_trim\": \"ST\",\n                \"registration\": \"FK10FKK\"\n            },\n            {\n                \"id\": \"33\",\n                \"company_id\": \"14\",\n                \"customer_id\": \"4\",\n                \"vehicle_type_id\": 115,\n                \"fuel_type_id\": 129,\n                \"transmission_type_id\": 150,\n                \"colour\": \"silver\",\n                \"engine_code\": \"231ddd\",\n                \"engine_number\": \"2342324\",\n                \"vin\": \"et444yhy\",\n                \"co2_emissions\": 120,\n                \"date_first_registered\": \"2019-04-30T11:19:50.786Z\",\n                \"year_of_manufacture\": 10,\n                \"number_of_doors\": 5,\n                \"is_active\": true,\n                \"last_updated_by\": 17,\n                \"last_updated\": \"2019-05-03T09:55:06.424Z\",\n                \"engine_capacity\": \"2000\",\n                \"make\": \"VW\",\n                \"model\": \"Golf\",\n                \"model_trim\": \"\",\n                \"registration\": \"LL55LLL\"\n            },\n            {\n                \"id\": \"37\",\n                \"company_id\": \"14\",\n                \"customer_id\": \"4\",\n                \"vehicle_type_id\": 115,\n                \"fuel_type_id\": 129,\n                \"transmission_type_id\": 150,\n                \"colour\": \"silver\",\n                \"engine_code\": \"\",\n                \"engine_number\": \"2342324\",\n                \"vin\": \"et444yhy\",\n                \"co2_emissions\": 178,\n                \"date_first_registered\": \"2019-04-30T11:19:50.786Z\",\n                \"year_of_manufacture\": 2005,\n                \"number_of_doors\": 5,\n                \"is_active\": true,\n                \"last_updated_by\": 17,\n                \"last_updated\": \"2019-05-02T09:05:52.798Z\",\n                \"engine_capacity\": \"2000\",\n                \"make\": \"VW\",\n                \"model\": \"Golf\",\n                \"model_trim\": \"R32\",\n                \"registration\": \"GF05GFF\"\n            }\n        ]\n    }\n}"}],"_postman_id":"b4a41c29-85c6-432c-a84c-cdd345ad829b"},{"name":"Vehicle","id":"422aa2ae-db10-45cf-b8fe-1853f4f06ee9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/vehicles/{{id}}","description":"<p>Get vehicle information by primay key (ID)</p>\n","urlObject":{"path":["vehicles","{{id}}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"d3319abc-7ffc-4391-a5d3-91145225f18a","name":"vehicle by id","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/vehicles/33"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1190"},{"key":"ETag","value":"W/\"4a6-Wi+hAG1HsfNdlE+MLsGddf8B0xw\""},{"key":"Date","value":"Fri, 10 May 2019 10:14:05 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"vehicle\": {\n            \"id\": \"33\",\n            \"company_id\": \"14\",\n            \"customer_id\": \"4\",\n            \"vehicle_type_id\": 115,\n            \"fuel_type_id\": 129,\n            \"transmission_type_id\": 150,\n            \"colour\": \"silver\",\n            \"engine_code\": \"231ddd\",\n            \"engine_number\": \"2342324\",\n            \"vin\": \"et444yhy\",\n            \"co2_emissions\": 120,\n            \"date_first_registered\": \"2019-04-30T11:19:50.786Z\",\n            \"year_of_manufacture\": 10,\n            \"number_of_doors\": 5,\n            \"is_active\": true,\n            \"last_updated_by\": 17,\n            \"last_updated\": \"2019-05-03T09:55:06.424Z\",\n            \"engine_capacity\": \"2000\",\n            \"make\": \"VW\",\n            \"model\": \"Golf\",\n            \"model_trim\": \"\",\n            \"registration\": \"LL55LLL\",\n            \"customer\": {\n                \"id\": \"4\",\n                \"company_id\": \"14\",\n                \"customer_type_id\": 115,\n                \"name\": \"Bradley Cooper\",\n                \"vat_no\": \"12321\",\n                \"account_on_hold\": false,\n                \"is_active\": true,\n                \"last_updated_by\": 0,\n                \"last_updated\": \"2019-04-30T11:19:13.995Z\",\n                \"contact_id\": null,\n                \"customer_code\": null\n            },\n            \"custom_field_data\": [\n                {\n                    \"id\": \"1\",\n                    \"custom_field_id\": \"3\",\n                    \"company_id\": \"14\",\n                    \"reference_id\": 33,\n                    \"value\": \"hurrrr1111\",\n                    \"is_active\": true,\n                    \"last_updated_by\": 17,\n                    \"last_updated\": \"2019-05-03T09:55:06.424Z\",\n                    \"reference_type\": \"vehicle\"\n                },\n                {\n                    \"id\": \"2\",\n                    \"custom_field_id\": \"3\",\n                    \"company_id\": \"14\",\n                    \"reference_id\": 33,\n                    \"value\": \"asdased232\",\n                    \"is_active\": true,\n                    \"last_updated_by\": 17,\n                    \"last_updated\": \"2019-05-03T09:55:06.424Z\",\n                    \"reference_type\": \"vehicle\"\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"422aa2ae-db10-45cf-b8fe-1853f4f06ee9"},{"name":"Delete vehicle","id":"2f790d51-d91f-4d65-ac02-311c774d79d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{url}}/vehicles/268","description":"<p>Delete vehicle information by primay key (ID)</p>\n","urlObject":{"path":["vehicles","268"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"68fbc523-2839-4500-a68a-eee296c63f2c","name":"vehicle by id","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/vehicles/33"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1190"},{"key":"ETag","value":"W/\"4a6-Wi+hAG1HsfNdlE+MLsGddf8B0xw\""},{"key":"Date","value":"Fri, 10 May 2019 10:14:05 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"vehicle\": {\n            \"id\": \"33\",\n            \"company_id\": \"14\",\n            \"customer_id\": \"4\",\n            \"vehicle_type_id\": 115,\n            \"fuel_type_id\": 129,\n            \"transmission_type_id\": 150,\n            \"colour\": \"silver\",\n            \"engine_code\": \"231ddd\",\n            \"engine_number\": \"2342324\",\n            \"vin\": \"et444yhy\",\n            \"co2_emissions\": 120,\n            \"date_first_registered\": \"2019-04-30T11:19:50.786Z\",\n            \"year_of_manufacture\": 10,\n            \"number_of_doors\": 5,\n            \"is_active\": true,\n            \"last_updated_by\": 17,\n            \"last_updated\": \"2019-05-03T09:55:06.424Z\",\n            \"engine_capacity\": \"2000\",\n            \"make\": \"VW\",\n            \"model\": \"Golf\",\n            \"model_trim\": \"\",\n            \"registration\": \"LL55LLL\",\n            \"customer\": {\n                \"id\": \"4\",\n                \"company_id\": \"14\",\n                \"customer_type_id\": 115,\n                \"name\": \"Bradley Cooper\",\n                \"vat_no\": \"12321\",\n                \"account_on_hold\": false,\n                \"is_active\": true,\n                \"last_updated_by\": 0,\n                \"last_updated\": \"2019-04-30T11:19:13.995Z\",\n                \"contact_id\": null,\n                \"customer_code\": null\n            },\n            \"custom_field_data\": [\n                {\n                    \"id\": \"1\",\n                    \"custom_field_id\": \"3\",\n                    \"company_id\": \"14\",\n                    \"reference_id\": 33,\n                    \"value\": \"hurrrr1111\",\n                    \"is_active\": true,\n                    \"last_updated_by\": 17,\n                    \"last_updated\": \"2019-05-03T09:55:06.424Z\",\n                    \"reference_type\": \"vehicle\"\n                },\n                {\n                    \"id\": \"2\",\n                    \"custom_field_id\": \"3\",\n                    \"company_id\": \"14\",\n                    \"reference_id\": 33,\n                    \"value\": \"asdased232\",\n                    \"is_active\": true,\n                    \"last_updated_by\": 17,\n                    \"last_updated\": \"2019-05-03T09:55:06.424Z\",\n                    \"reference_type\": \"vehicle\"\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"2f790d51-d91f-4d65-ac02-311c774d79d7"},{"name":"Delete vehicle cutome field value","id":"c46aeef3-5649-4521-90c5-3d304467f4dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{url}}/vehicles/268/customfield/137","description":"<p>Delete vehicle custom field value</p>\n","urlObject":{"path":["vehicles","268","customfield","137"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"c7078480-5d29-473e-8ceb-dc5ae0e6e83a","name":"vehicle by id","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/vehicles/33"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1190"},{"key":"ETag","value":"W/\"4a6-Wi+hAG1HsfNdlE+MLsGddf8B0xw\""},{"key":"Date","value":"Fri, 10 May 2019 10:14:05 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"vehicle\": {\n            \"id\": \"33\",\n            \"company_id\": \"14\",\n            \"customer_id\": \"4\",\n            \"vehicle_type_id\": 115,\n            \"fuel_type_id\": 129,\n            \"transmission_type_id\": 150,\n            \"colour\": \"silver\",\n            \"engine_code\": \"231ddd\",\n            \"engine_number\": \"2342324\",\n            \"vin\": \"et444yhy\",\n            \"co2_emissions\": 120,\n            \"date_first_registered\": \"2019-04-30T11:19:50.786Z\",\n            \"year_of_manufacture\": 10,\n            \"number_of_doors\": 5,\n            \"is_active\": true,\n            \"last_updated_by\": 17,\n            \"last_updated\": \"2019-05-03T09:55:06.424Z\",\n            \"engine_capacity\": \"2000\",\n            \"make\": \"VW\",\n            \"model\": \"Golf\",\n            \"model_trim\": \"\",\n            \"registration\": \"LL55LLL\",\n            \"customer\": {\n                \"id\": \"4\",\n                \"company_id\": \"14\",\n                \"customer_type_id\": 115,\n                \"name\": \"Bradley Cooper\",\n                \"vat_no\": \"12321\",\n                \"account_on_hold\": false,\n                \"is_active\": true,\n                \"last_updated_by\": 0,\n                \"last_updated\": \"2019-04-30T11:19:13.995Z\",\n                \"contact_id\": null,\n                \"customer_code\": null\n            },\n            \"custom_field_data\": [\n                {\n                    \"id\": \"1\",\n                    \"custom_field_id\": \"3\",\n                    \"company_id\": \"14\",\n                    \"reference_id\": 33,\n                    \"value\": \"hurrrr1111\",\n                    \"is_active\": true,\n                    \"last_updated_by\": 17,\n                    \"last_updated\": \"2019-05-03T09:55:06.424Z\",\n                    \"reference_type\": \"vehicle\"\n                },\n                {\n                    \"id\": \"2\",\n                    \"custom_field_id\": \"3\",\n                    \"company_id\": \"14\",\n                    \"reference_id\": 33,\n                    \"value\": \"asdased232\",\n                    \"is_active\": true,\n                    \"last_updated_by\": 17,\n                    \"last_updated\": \"2019-05-03T09:55:06.424Z\",\n                    \"reference_type\": \"vehicle\"\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"c46aeef3-5649-4521-90c5-3d304467f4dd"},{"name":"Delete vehicle reminder event","id":"1cc49152-df9f-4bd7-80df-c122cb913117","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{url}}/vehicles/268/reminder/59","description":"<p>Delete vehicle reminder event</p>\n","urlObject":{"path":["vehicles","268","reminder","59"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"e9feca30-e01d-48cc-8d67-4e676c8ada34","name":"vehicle by id","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/vehicles/33"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1190"},{"key":"ETag","value":"W/\"4a6-Wi+hAG1HsfNdlE+MLsGddf8B0xw\""},{"key":"Date","value":"Fri, 10 May 2019 10:14:05 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"vehicle\": {\n            \"id\": \"33\",\n            \"company_id\": \"14\",\n            \"customer_id\": \"4\",\n            \"vehicle_type_id\": 115,\n            \"fuel_type_id\": 129,\n            \"transmission_type_id\": 150,\n            \"colour\": \"silver\",\n            \"engine_code\": \"231ddd\",\n            \"engine_number\": \"2342324\",\n            \"vin\": \"et444yhy\",\n            \"co2_emissions\": 120,\n            \"date_first_registered\": \"2019-04-30T11:19:50.786Z\",\n            \"year_of_manufacture\": 10,\n            \"number_of_doors\": 5,\n            \"is_active\": true,\n            \"last_updated_by\": 17,\n            \"last_updated\": \"2019-05-03T09:55:06.424Z\",\n            \"engine_capacity\": \"2000\",\n            \"make\": \"VW\",\n            \"model\": \"Golf\",\n            \"model_trim\": \"\",\n            \"registration\": \"LL55LLL\",\n            \"customer\": {\n                \"id\": \"4\",\n                \"company_id\": \"14\",\n                \"customer_type_id\": 115,\n                \"name\": \"Bradley Cooper\",\n                \"vat_no\": \"12321\",\n                \"account_on_hold\": false,\n                \"is_active\": true,\n                \"last_updated_by\": 0,\n                \"last_updated\": \"2019-04-30T11:19:13.995Z\",\n                \"contact_id\": null,\n                \"customer_code\": null\n            },\n            \"custom_field_data\": [\n                {\n                    \"id\": \"1\",\n                    \"custom_field_id\": \"3\",\n                    \"company_id\": \"14\",\n                    \"reference_id\": 33,\n                    \"value\": \"hurrrr1111\",\n                    \"is_active\": true,\n                    \"last_updated_by\": 17,\n                    \"last_updated\": \"2019-05-03T09:55:06.424Z\",\n                    \"reference_type\": \"vehicle\"\n                },\n                {\n                    \"id\": \"2\",\n                    \"custom_field_id\": \"3\",\n                    \"company_id\": \"14\",\n                    \"reference_id\": 33,\n                    \"value\": \"asdased232\",\n                    \"is_active\": true,\n                    \"last_updated_by\": 17,\n                    \"last_updated\": \"2019-05-03T09:55:06.424Z\",\n                    \"reference_type\": \"vehicle\"\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"1cc49152-df9f-4bd7-80df-c122cb913117"},{"name":"Delete vehicle note","id":"b2eb6063-c216-40a2-9b7f-eb6627a1c23d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{url}}/vehicles/268/note/116","description":"<p>Delete vehicle note</p>\n","urlObject":{"path":["vehicles","268","note","116"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"0ec7cd4e-b2ea-43e7-9403-ba0917cad0b6","name":"vehicle by id","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/vehicles/33"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1190"},{"key":"ETag","value":"W/\"4a6-Wi+hAG1HsfNdlE+MLsGddf8B0xw\""},{"key":"Date","value":"Fri, 10 May 2019 10:14:05 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"vehicle\": {\n            \"id\": \"33\",\n            \"company_id\": \"14\",\n            \"customer_id\": \"4\",\n            \"vehicle_type_id\": 115,\n            \"fuel_type_id\": 129,\n            \"transmission_type_id\": 150,\n            \"colour\": \"silver\",\n            \"engine_code\": \"231ddd\",\n            \"engine_number\": \"2342324\",\n            \"vin\": \"et444yhy\",\n            \"co2_emissions\": 120,\n            \"date_first_registered\": \"2019-04-30T11:19:50.786Z\",\n            \"year_of_manufacture\": 10,\n            \"number_of_doors\": 5,\n            \"is_active\": true,\n            \"last_updated_by\": 17,\n            \"last_updated\": \"2019-05-03T09:55:06.424Z\",\n            \"engine_capacity\": \"2000\",\n            \"make\": \"VW\",\n            \"model\": \"Golf\",\n            \"model_trim\": \"\",\n            \"registration\": \"LL55LLL\",\n            \"customer\": {\n                \"id\": \"4\",\n                \"company_id\": \"14\",\n                \"customer_type_id\": 115,\n                \"name\": \"Bradley Cooper\",\n                \"vat_no\": \"12321\",\n                \"account_on_hold\": false,\n                \"is_active\": true,\n                \"last_updated_by\": 0,\n                \"last_updated\": \"2019-04-30T11:19:13.995Z\",\n                \"contact_id\": null,\n                \"customer_code\": null\n            },\n            \"custom_field_data\": [\n                {\n                    \"id\": \"1\",\n                    \"custom_field_id\": \"3\",\n                    \"company_id\": \"14\",\n                    \"reference_id\": 33,\n                    \"value\": \"hurrrr1111\",\n                    \"is_active\": true,\n                    \"last_updated_by\": 17,\n                    \"last_updated\": \"2019-05-03T09:55:06.424Z\",\n                    \"reference_type\": \"vehicle\"\n                },\n                {\n                    \"id\": \"2\",\n                    \"custom_field_id\": \"3\",\n                    \"company_id\": \"14\",\n                    \"reference_id\": 33,\n                    \"value\": \"asdased232\",\n                    \"is_active\": true,\n                    \"last_updated_by\": 17,\n                    \"last_updated\": \"2019-05-03T09:55:06.424Z\",\n                    \"reference_type\": \"vehicle\"\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"b2eb6063-c216-40a2-9b7f-eb6627a1c23d"},{"name":"Vehicle History","id":"3a2219ef-207d-43f0-bbad-ccc2ee9f5241","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/vehicles/{{id}}","description":"<p>GET a list of changes to a vehicle</p>\n","urlObject":{"path":["vehicles","{{id}}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"7a82546f-642d-450c-ba11-dca957c21585","name":"vehicle by id","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/vehicles/33"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1190"},{"key":"ETag","value":"W/\"4a6-Wi+hAG1HsfNdlE+MLsGddf8B0xw\""},{"key":"Date","value":"Fri, 10 May 2019 10:14:05 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"vehicle\": {\n            \"id\": \"33\",\n            \"company_id\": \"14\",\n            \"customer_id\": \"4\",\n            \"vehicle_type_id\": 115,\n            \"fuel_type_id\": 129,\n            \"transmission_type_id\": 150,\n            \"colour\": \"silver\",\n            \"engine_code\": \"231ddd\",\n            \"engine_number\": \"2342324\",\n            \"vin\": \"et444yhy\",\n            \"co2_emissions\": 120,\n            \"date_first_registered\": \"2019-04-30T11:19:50.786Z\",\n            \"year_of_manufacture\": 10,\n            \"number_of_doors\": 5,\n            \"is_active\": true,\n            \"last_updated_by\": 17,\n            \"last_updated\": \"2019-05-03T09:55:06.424Z\",\n            \"engine_capacity\": \"2000\",\n            \"make\": \"VW\",\n            \"model\": \"Golf\",\n            \"model_trim\": \"\",\n            \"registration\": \"LL55LLL\",\n            \"customer\": {\n                \"id\": \"4\",\n                \"company_id\": \"14\",\n                \"customer_type_id\": 115,\n                \"name\": \"Bradley Cooper\",\n                \"vat_no\": \"12321\",\n                \"account_on_hold\": false,\n                \"is_active\": true,\n                \"last_updated_by\": 0,\n                \"last_updated\": \"2019-04-30T11:19:13.995Z\",\n                \"contact_id\": null,\n                \"customer_code\": null\n            },\n            \"custom_field_data\": [\n                {\n                    \"id\": \"1\",\n                    \"custom_field_id\": \"3\",\n                    \"company_id\": \"14\",\n                    \"reference_id\": 33,\n                    \"value\": \"hurrrr1111\",\n                    \"is_active\": true,\n                    \"last_updated_by\": 17,\n                    \"last_updated\": \"2019-05-03T09:55:06.424Z\",\n                    \"reference_type\": \"vehicle\"\n                },\n                {\n                    \"id\": \"2\",\n                    \"custom_field_id\": \"3\",\n                    \"company_id\": \"14\",\n                    \"reference_id\": 33,\n                    \"value\": \"asdased232\",\n                    \"is_active\": true,\n                    \"last_updated_by\": 17,\n                    \"last_updated\": \"2019-05-03T09:55:06.424Z\",\n                    \"reference_type\": \"vehicle\"\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"3a2219ef-207d-43f0-bbad-ccc2ee9f5241"},{"name":"Create Vehicle","id":"7436483b-f846-451b-9635-e75ac9fe5e9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"customer_id\": \"4\",\n    \"vehicle_type_id\": 115,\n    \"fuel_type_id\": 129,\n    \"transmission_type_id\": 150,\n    \"colour\": \"silver\",\n    \"engine_code\": \"\",\n    \"engine_number\": \"2342324\",\n    \"vin\": \"et444yhy\",\n    \"co2_emissions\": 178,\n    \"date_first_registered\": \"2019-04-30T11:19:50.786Z\",\n    \"year_of_manufacture\": 2005,\n    \"number_of_doors\": 5,\n    \"is_active\": true,\n    \"engine_capacity\": \"2000\",\n    \"make\": \"VW\",\n    \"model\": \"Golf\",\n    \"model_trim\": \"R32\",\n    \"registration\": \"GF05GFF\"\n}"},"url":"{{url}}/vehicles","description":"<p>Creates a new vehicle. Returns the vehicle object  </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>registration</td>\n<td>required</td>\n<td>Vehicle registration</td>\n</tr>\n<tr>\n<td>customer_id</td>\n<td>required</td>\n<td>Owner customer id</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["vehicles"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7436483b-f846-451b-9635-e75ac9fe5e9e"},{"name":"Create Remider On Vehicle","id":"a7b59bcc-6934-4a3f-8780-0a52a905ac6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"reminder_item_id\": 2,\n  \"last_date\": \"2019-06-15T00:00:00+01:00\",\n  \"next_date\": \"2020-06-15T00:00:00+01:00\",\n  \"is_active\": true\n}"},"url":"{{url}}/vehicles/9/reminder","description":"<p>Creates a new vehicle. Returns the reminder object</p>\n","urlObject":{"path":["vehicles","9","reminder"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a7b59bcc-6934-4a3f-8780-0a52a905ac6d"},{"name":"Update Remider On Vehicle","id":"35a3c2cf-be67-4255-9388-6c7677e83291","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"reminder_item_id\": 2,\n  \"last_date\": \"2019-06-15T00:00:00+01:00\",\n  \"next_date\": \"2020-06-23T00:00:00+01:00\",\n  \"is_active\": true\n}"},"url":"{{url}}/vehicles/9/reminder/10","description":"<p>Updates a reminder on a vehicle. Returns the reminder object</p>\n","urlObject":{"path":["vehicles","9","reminder","10"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"35a3c2cf-be67-4255-9388-6c7677e83291"},{"name":"Update Vehicle","id":"b2444ccc-85af-439c-b784-676ad6b9b488","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"customer_id\": \"4\",\n    \"vehicle_type_id\": 115,\n    \"fuel_type_id\": 129,\n    \"transmission_type_id\": 150,\n    \"colour\": \"silver\",\n    \"engine_code\": \"231ddd\",\n    \"engine_number\": \"2342324\",\n    \"vin\": \"et444yhy\",\n    \"co2_emissions\": 120,\n    \"date_first_registered\": \"2019-04-30T11:19:50.786Z\",\n    \"year_of_manufacture\": 10,\n    \"number_of_doors\": 5,\n    \"is_active\": true,\n    \"engine_capacity\": \"2000\",\n    \"registration\": \"LL55LLL\",\n    \"make\": \"VW\",\n    \"model\": \"Golf\",\n    \"model_trim\": \"\"\n}"},"url":"{{url}}/vehicles/33","description":"<p>Updates a vehicle by ID</p>\n","urlObject":{"path":["vehicles","33"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"551dd114-d954-45c5-b98c-42fcf6aa54e0","name":"Update Vehicle Example","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"customer_id\": \"4\",\n    \"vehicle_type_id\": 115,\n    \"fuel_type_id\": 129,\n    \"transmission_type_id\": 150,\n    \"colour\": \"silver\",\n    \"engine_code\": \"231ddd\",\n    \"engine_number\": \"2342324\",\n    \"vin\": \"et444yhy\",\n    \"co2_emissions\": 120,\n    \"date_first_registered\": \"2019-04-30T11:19:50.786Z\",\n    \"year_of_manufacture\": 10,\n    \"number_of_doors\": 5,\n    \"is_active\": true,\n    \"engine_capacity\": \"2000\",\n    \"registration\": \"LL55LLL\",\n    \"make\": \"VW\",\n    \"model\": \"Golf\",\n    \"model_trim\": \"\"\n}"},"url":"localhost:3000/vehicles/33"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"528"},{"key":"ETag","value":"W/\"210-+HljTU+0aC5swJXZJE3BHxXiEiw\""},{"key":"Date","value":"Fri, 10 May 2019 14:26:29 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"vehicle\": {\n            \"id\": \"33\",\n            \"company_id\": \"14\",\n            \"customer_id\": \"4\",\n            \"vehicle_type_id\": 115,\n            \"fuel_type_id\": 129,\n            \"transmission_type_id\": 150,\n            \"colour\": \"silver\",\n            \"engine_code\": \"231ddd\",\n            \"engine_number\": \"2342324\",\n            \"vin\": \"et444yhy\",\n            \"co2_emissions\": 120,\n            \"date_first_registered\": \"2019-04-30T11:19:50.786Z\",\n            \"year_of_manufacture\": 10,\n            \"number_of_doors\": 5,\n            \"is_active\": true,\n            \"last_updated_by\": 17,\n            \"last_updated\": \"2019-05-10T14:26:28.226Z\",\n            \"engine_capacity\": \"2000\",\n            \"make\": \"VW\",\n            \"model\": \"Golf\",\n            \"model_trim\": \"\",\n            \"registration\": \"LL55LLL\"\n        }\n    }\n}"}],"_postman_id":"b2444ccc-85af-439c-b784-676ad6b9b488"},{"name":"Create Vehicle Note","id":"28c18210-5288-482a-abd0-5b622d038b73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"reference_id\": 33,\n    \"note\": \"im another note that should be posted\",\n    \"severity\": \"medium\",\n    \"is_active\": true\n}"},"url":"{{url}}/vehicles/33/note","description":"<p>Creates a note object against a vehicle returning the note object</p>\n","urlObject":{"path":["vehicles","33","note"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"28c18210-5288-482a-abd0-5b622d038b73"},{"name":"Update Vehicle Note","id":"2f3a819f-9977-4578-bcbf-3d20f56548d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"reference_id\": 33,\n\t\"note\": \"im a test note 1111\",\n\t\"severity\": \"low\",\n\t\"is_active\": true\n}"},"url":"{{url}}/vehicles/33/note/1","description":"<p>Updates a vehicle note by ID</p>\n","urlObject":{"path":["vehicles","33","note","1"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2f3a819f-9977-4578-bcbf-3d20f56548d7"},{"name":"Create Vehicle Custom Field","id":"68d8b9f6-a8d0-4dc6-8873-ec8f6e573ede","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"custom_field_id\": 3,\r\n   \"value\": \"testtesttest\",\r\n   \"is_active\": \"true\"\r\n}"},"url":"{{url}}/vehicles/33/customfield","description":"<p>Creates a custom field value against a vehicle</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"31dfd6ff-1b80-4d5c-a498-9ff3b26ac55e","id":"31dfd6ff-1b80-4d5c-a498-9ff3b26ac55e","name":"Vehicle","type":"folder"}},"urlObject":{"path":["vehicles","33","customfield"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"59976e75-c754-46cf-a460-e453fc0e3a94","name":"Example Create Vehicle Custom Field","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"custom_field_id\": 3,\r\n   \"value\": \"sdfsdfsdfsdfsdf\",\r\n   \"is_active\": \"true\"\r\n}"},"url":"localhost:3000/vehicles/33/customfield"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"246"},{"key":"ETag","value":"W/\"f6-2/Cags5NPYYPrI7W0ns3G7DCP2s\""},{"key":"Date","value":"Fri, 10 May 2019 14:39:57 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"custom_value\": {\n            \"id\": \"5\",\n            \"custom_field_id\": \"3\",\n            \"company_id\": \"14\",\n            \"reference_id\": 33,\n            \"value\": \"sdfsdfsdfsdfsdf\",\n            \"is_active\": true,\n            \"last_updated_by\": 17,\n            \"last_updated\": \"2019-05-10T14:39:56.270Z\",\n            \"reference_type\": \"vehicle\"\n        }\n    }\n}"}],"_postman_id":"68d8b9f6-a8d0-4dc6-8873-ec8f6e573ede"},{"name":"Update Vehicle Custom Field Value","id":"a2ab16f7-e173-4a69-b1de-1260aef6f076","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n   \"custom_field_id\": 3,\r\n   \"value\": \"blahblahblah\",\r\n   \"is_active\": \"true\"\r\n}"},"url":"{{url}}/vehicles/33/customfield/5","description":"<p>Updates custom field value belonging to vehicle and returns custom field object</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"31dfd6ff-1b80-4d5c-a498-9ff3b26ac55e","id":"31dfd6ff-1b80-4d5c-a498-9ff3b26ac55e","name":"Vehicle","type":"folder"}},"urlObject":{"path":["vehicles","33","customfield","5"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a2ab16f7-e173-4a69-b1de-1260aef6f076"},{"name":"Create Mileage","id":"f83ed412-bc98-474e-97f8-04353cca04a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\"mileage_out\" : 56000\n}"},"url":"{{url}}/vehicles/52/mileage","description":"<p>Saves mileage to the vehicle</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"31dfd6ff-1b80-4d5c-a498-9ff3b26ac55e","id":"31dfd6ff-1b80-4d5c-a498-9ff3b26ac55e","name":"Vehicle","type":"folder"}},"urlObject":{"path":["vehicles","52","mileage"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"2a950cf3-2eb3-4348-b7e9-fb1587f531ed","name":"Create Mileage","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"mileage_out\" : 56000\n}"},"url":"{{url}}/vehicles/53/mileage"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"167"},{"key":"ETag","value":"W/\"a7-398Xm459ZkP7ihC1Oo6flUPuJDY\""},{"key":"Date","value":"Wed, 31 Jul 2019 15:30:05 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"mileage\": {\n            \"id\": \"1\",\n            \"document_id\": null,\n            \"vehicle_id\": \"53\",\n            \"mileage_in\": null,\n            \"mileage_out\": 56000,\n            \"last_updated\": \"2019-07-31T15:30:05.393Z\"\n        }\n    }\n}"}],"_postman_id":"f83ed412-bc98-474e-97f8-04353cca04a8"}],"id":"31dfd6ff-1b80-4d5c-a498-9ff3b26ac55e","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"ce62bbe0-1c42-4988-bf28-ecf5f6cf069c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f2ed8bd5-7b63-4e38-b521-a1253a5ef077","type":"text/javascript","exec":[""]}}],"_postman_id":"31dfd6ff-1b80-4d5c-a498-9ff3b26ac55e","description":""},{"name":"Vehicle Models","item":[{"name":"Get Engine Details","id":"9c8768be-e2c7-4e26-bf75-55b97b37c7f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/vehiclemodels/engines/ford/focus","description":"<p>Get engine deatils for make &amp; model</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["vehiclemodels","engines","ford","focus"],"host":["{{url}}"],"query":[{"disabled":true,"key":"search","value":"123"},{"disabled":true,"key":"offset","value":"1"}],"variable":[]}},"response":[{"id":"bbf080a7-2b50-4cb5-a341-12c12f169c61","name":"Search All","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/search?search=147&search=parts&limit=10","host":["{{url}}"],"path":["search"],"query":[{"key":"search","value":"147"},{"key":"search","value":"parts"},{"key":"limit","value":"10"},{"key":"offset","value":"1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"403"},{"key":"ETag","value":"W/\"193-UP1dFfkH+/hPA5GSd9LZYeY5uOk\""},{"key":"Date","value":"Thu, 23 May 2019 14:07:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"customers\": [\n            {\n                \"id\": \"65\",\n                \"customer_code\": \"PART0001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"0123456147\",\n                \"contact_name\": \"Jim White\",\n                \"email_address\": \"jwhite@example.com\",\n                \"customer_type_id\": 100\n            }\n        ],\n        \"documents\": {\n            \"document\": 1\n        },\n        \"itens\": {\n            \"item\": 1\n        },\n        \"suppliers\": {},\n        \"vehicles\": {\n            \"vehicle\": 1\n        }\n    }\n}"}],"_postman_id":"9c8768be-e2c7-4e26-bf75-55b97b37c7f9"}],"id":"07c25cfd-9c4c-4094-839d-c5ee3668237d","description":"<p>Item routes</p>\n","event":[{"listen":"prerequest","script":{"id":"6dd3dd0d-69a5-4dbe-bafb-acc4a38f71fb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a2ec18de-c1cf-436a-b9b9-6af392a7cc06","type":"text/javascript","exec":[""]}}],"_postman_id":"07c25cfd-9c4c-4094-839d-c5ee3668237d","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Checksheets","item":[{"name":"Admin","item":[{"name":"Create a user","id":"f6774afc-cfc7-4de9-a627-11d5330d003e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{url}}/checksheets/admin/users/20","description":"<p>Send a request to checksheets API to create a user whom currently has an AWS user in aITOL</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["checksheets","admin","users","20"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f6774afc-cfc7-4de9-a627-11d5330d003e"},{"name":"create company and user","id":"b051dd21-14cf-430d-851e-01ba91b4dc6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{url}}/checksheets/admin/company/194","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["checksheets","admin","company","194"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"c8bbd657-81d9-46db-b759-2d3400c470b6","name":"create company and user","originalRequest":{"method":"POST","header":[],"url":"{{url}}/checksheets/admin/company/194"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"870"},{"key":"ETag","value":"W/\"366-pg3FcXeyVQTNaHXWpwzLapq4/N4\""},{"key":"Date","value":"Thu, 26 Nov 2020 16:38:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"result\": {\n            \"insertedCompany\": {\n                \"id\": \"35\",\n                \"call_log_account_id\": \"11148\",\n                \"api_key\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb21wYW55X2lkIjoiMzUiLCJjYWxsX2xvZ19hY2NvdW50X2lkIjoiMTExNDgiLCJuYW1lIjoiNDQgVGVzdCBjb21wYW55IDIxMDk4IiwiaWF0IjoxNjA2NDA4NzI0fQ.UKliBTT_BRyr4Omm6qtA-zmPKLp1vN4E87bznZIE1Gs\",\n                \"company_name\": \"44 Test company 21098\",\n                \"address\": {\n                    \"city\": \"Weston super Maree\",\n                    \"county\": \"tests\",\n                    \"address1\": \"Unit 8 Morston Courtt\",\n                    \"address2\": \"2\",\n                    \"address3\": \"3\",\n                    \"postcode\": \"bs228nggg\"\n                },\n                \"vat_number\": \"1111\",\n                \"last_updated_by\": null,\n                \"last_updated\": null\n            },\n            \"insertedBranch\": {\n                \"id\": \"15\",\n                \"company_id\": \"35\",\n                \"branch_name\": \"44 Test company 21098\",\n                \"is_active\": true,\n                \"last_updated_by\": \"0\",\n                \"last_updated\": \"2020-11-26T16:38:44.041Z\",\n                \"address1\": \"Unit 8 Morston Courtt\",\n                \"address2\": \"2\",\n                \"address3\": \"3\",\n                \"city\": \"Weston super Maree\",\n                \"county\": \"tests\",\n                \"postcode\": \"bs228nggg\"\n            }\n        }\n    }\n}"}],"_postman_id":"b051dd21-14cf-430d-851e-01ba91b4dc6d"}],"id":"02f59cb8-d9ca-4c04-9a5e-c26954ec960c","event":[{"listen":"prerequest","script":{"id":"4729ff7a-52d3-47c1-96c5-806f8231919e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7acb0cf8-b4d4-405c-9079-0a8b4f2bbaad","type":"text/javascript","exec":[""]}}],"_postman_id":"02f59cb8-d9ca-4c04-9a5e-c26954ec960c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Workshop","item":[{"name":"(Workshop) List axle configurations","id":"b21b1a36-8089-4cfb-b57a-41f8803f2420","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/checksheets/workshop/axle-configs","description":"<p>Calls the checksheets API to get a list of the current companies axle configurations. The axle config ID is stored against the vehicle to be sent in the payload when an inspection for a vehicle is created</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["checksheets","workshop","axle-configs"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b21b1a36-8089-4cfb-b57a-41f8803f2420"},{"name":"(Workshop) List users","id":"63ff6375-f193-4b0b-bdff-4e2cf26b74cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/checksheets/workshop/users","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["checksheets","workshop","users"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"63ff6375-f193-4b0b-bdff-4e2cf26b74cc"},{"name":"(Workshop) List Checksheets","id":"999d6f1d-3f8f-4659-9a06-341180ef0e80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/checksheets/workshop/checksheets","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["checksheets","workshop","checksheets"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"999d6f1d-3f8f-4659-9a06-341180ef0e80"},{"name":"(workshop) Create an inspection","id":"ec8cfbd1-336e-4ddd-a438-53b05a079849","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\r\n\t\"customer_name\":\"Red's Commercials\",\r\n\t\"vehicle_reference\": \"VA15TGY\",\r\n\t\"make\": \"Volvo\",\r\n\t\"model\": \"FH13 6x2 500 Tractor\",\r\n\t\"mileage\": 17400,\r\n\t\"due_at\": \"2020-01-25\",\r\n\t\"checksheet_id\": 18,\r\n\t\"axle_configuration_id\": 4,\r\n    \"branch_id\": 15,\r\n    \"user_id\": 31,\r\n    \"job_data\": {\r\n        \"document_id\": 123456,\r\n        \"customer_ref\": \"SMI001\",\r\n        \"vehicle_id\": 752\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/checksheets/workshop/inspections","description":"<p>Sends a payload to the checksheets API to create an inspection</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["checksheets","workshop","inspections"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec8cfbd1-336e-4ddd-a438-53b05a079849"},{"name":"(workshop) Create a user","id":"e8330d63-3e8f-44b8-b543-697edd223826","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{url}}/checksheets/workshop/users/209","description":"<p>Sends a request to the checksheets api to create a user</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["checksheets","workshop","users","209"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e8330d63-3e8f-44b8-b543-697edd223826"}],"id":"583dc097-b5c0-4793-ba2a-40c9478134e7","description":"<p>Client application routes to call the checksheet API </p>\n","_postman_id":"583dc097-b5c0-4793-ba2a-40c9478134e7","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}}],"id":"16384555-4fc8-46e4-884b-edff21c25c1e","_postman_id":"16384555-4fc8-46e4-884b-edff21c25c1e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"JSReports","item":[{"name":"Get Report Tree","id":"d5f25ebe-9757-4326-ba9c-3a4188c0d4ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/jsreport/reportTree","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["jsreport","reportTree"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d5f25ebe-9757-4326-ba9c-3a4188c0d4ee"},{"name":"Hidden Report Tree","id":"95380e0c-e39b-425a-957c-6a10f4d82808","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/jsreport/hiddenReportTree","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["jsreport","hiddenReportTree"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"95380e0c-e39b-425a-957c-6a10f4d82808"},{"name":"Build Template","id":"2656f190-a9df-450b-9e6b-39681e31c603","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{url}}/jsreport/buildTemplate","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["jsreport","buildTemplate"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2656f190-a9df-450b-9e6b-39681e31c603"}],"id":"e63f4bd2-7049-48f5-a941-ef6476ac266a","_postman_id":"e63f4bd2-7049-48f5-a941-ef6476ac266a","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"Websocket","item":[{"name":"WS Token","id":"83a8a1ff-205c-40fa-bf92-e8199b07b48f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/websocket/token","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["websocket","token"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"83a8a1ff-205c-40fa-bf92-e8199b07b48f"}],"id":"0e82bce0-e3a7-4e5e-8eae-47c3cfb29217","_postman_id":"0e82bce0-e3a7-4e5e-8eae-47c3cfb29217","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"stock","item":[{"name":"Create movement","id":"db067a56-3c2b-4355-b12d-c19487408fd0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"item_id\": 17677,\n  \"branch_id\": 326,\n  \"movement_type\": \"receipt\",\n  \"movement_quantity\": 10\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/movements","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["movements"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"db067a56-3c2b-4355-b12d-c19487408fd0"}],"id":"04a1b9bd-037f-4c34-90ee-c1851f469776","_postman_id":"04a1b9bd-037f-4c34-90ee-c1851f469776","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}}},{"name":"My Dashboard","id":"6637972a-1be0-4c22-960c-62820b604002","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/users/mydashboard","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"path":["users","mydashboard"],"host":["{{url}}"],"query":[{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"supplier_type_id","value":"156"},{"disabled":true,"key":"supplier_code","value":"PART1001"},{"disabled":true,"key":"offset","value":""}],"variable":[]}},"response":[{"id":"600a081d-b95c-439e-bedd-6823c756485e","name":"Supplier List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/supplier?limit=3&offset=0","host":["{{url}}"],"path":["supplier"],"query":[{"key":"limit","value":"3"},{"key":"offset","value":"0"},{"key":"supplier_type_id","value":"156","type":"text","disabled":true},{"key":"supplier_code","value":"PART1001","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-gqIvPiDzIYGyUqJsJKsDWjgC1YI\""},{"key":"Date","value":"Mon, 20 May 2019 10:23:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"suppliers\": [\n            {\n                \"id\": \"150\",\n                \"supplier_code\": \"PART1001\",\n                \"name\": \"Parts R Us\",\n                \"address\": \"Unit 8,Morston Court,Aisecome Way\",\n                \"city\": \"WSM\",\n                \"county\": \"North Somerset\",\n                \"postcode\": \"BS22 8NG\",\n                \"phone\": \"\",\n                \"contact_name\": \"\",\n                \"email_address\": \"parts@example.com\"\n            }\n        ]\n    }\n}"}],"_postman_id":"6637972a-1be0-4c22-960c-62820b604002"},{"name":"New Request","id":"634863bd-f6ff-49cd-8cf6-cd3f53d4b098","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","id":"50ff81b4-ccb4-44c1-b936-ca3e81da6416","name":"AutoInTouch Online","type":"collection"}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"634863bd-f6ff-49cd-8cf6-cd3f53d4b098"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]}},"event":[{"listen":"prerequest","script":{"id":"7d6942df-10de-4d6b-bc28-7a71039bc5dc","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"3db021c2-42e6-4c68-9f96-03fc20a72c1b","type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"key":"vehicle","value":"{}"},{"key":"vehicleid","value":"{{id}}"},{"key":"docid","value":"{{id}}"},{"key":"itemId","value":"{{itemId}}"},{"key":"assemblyItemId","value":"{{assemblyItemId}}"},{"key":"assemblyId","value":"{{assemblyId}}"},{"key":"branchId","value":""}]}