{"info":{"_postman_id":"313c40ed-ee92-497e-b5d5-91c5fe09070c","name":"Epoptia API Version 3.04","description":"<html><head></head><body><p>API Version 3.04</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"21083814","collectionId":"313c40ed-ee92-497e-b5d5-91c5fe09070c","publishedId":"2s9YeLX8sc","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-12-05T11:41:05.000Z"},"item":[{"name":"Work orders & Work order lines","item":[{"name":"Create work orders & work order lines","item":[{"name":"Create WOLs with routing. Boms & Custom fields inside Routing","id":"10ec103b-9c50-47f6-928b-f71c0c68de19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Auth-Token"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"data\": [\r\n    {\r\n      \"workorderline_id\": \"131319\",\r\n      \"workorderline_code\": \"KL9899\",\r\n      \"production_status\": \"production\",\r\n      \"description\": \"Wooden Table 1200X800\",\r\n     //\"overUnderPercentage\": \"50\",     \r\n      \"quantity\": \"200\",\r\n      \"target_day\": \"2021-11-27\",\r\n      \"comments\": \"taking care in transportation\",\r\n      \"wol_tag\" : [{\r\n          \"id\": \"3445\",\r\n          \"name\": \"wooden series\"\r\n      }],\r\n      \"files\": [{\r\n             \"id\": \"1515\",\r\n             \"name\": \"image_at_workorderline\",\r\n             \"type\": \"jpg\",\r\n             \"path\": \"https://epoptia.com/wp-content/uploads/2022/02/JPEG-Epopteia-04.jpg\"\r\n           }],\r\n      \"workorder\":{\r\n            \"id\":\"121233\",\r\n            \"code\":\"019580\",\r\n            \"comments\": \"Call client before shipment\",\r\n           \"files\": [{\r\n                \"id\": \"1616\",\r\n                \"name\": \"image_at_workorder\",\r\n                \"type\": \"jpg\",\r\n                \"path\": \"https://epoptia.com/wp-content/uploads/2021/12/welder-gb18d05173_1280.jpg\"\r\n           }]\r\n         },\r\n      \"erp_routing\": [\r\n        {\r\n         \"workstationId\": \"457\", \r\n         \"workstationName\": \"Workstation 1\",\r\n          \"elementId\": \"457\",\r\n          \"previous\": [],\r\n          \"next\": [204],\r\n          \"pass\": \"Str\",\r\n          \"target\": \"7\",\r\n          \"job_tag\": {\r\n                \"remoteId\": \"233\",\r\n                \"name\": \"JobTag1\"\r\n          },\r\n          \"files\": [{\r\n             \"id\": \"1515\",\r\n             \"name\": \"image_at_workorderline\",\r\n             \"type\": \"jpg\",\r\n             \"path\": \"https://epoptia.com/wp-content/uploads/2022/02/JPEG-Epopteia-04.jpg\"\r\n           }],\r\n        \"customFields\": [{\r\n            \"id\": \"501234\",\r\n            \"name\": \"Width\",\r\n            \"value\": \"2mm\",\r\n            \"notUpdate\": true,\r\n            \"type\": \"text\",\r\n            \"rule\": {\r\n                    \"mandatory_editable\": true,\r\n                    \"editable\": true,\r\n                    \"is_check\":false\r\n                    }\r\n            },\r\n            {\r\n              \"id\":\"9841108\",\r\n              \"name\": \"material selection\",\r\n              \"value\":\"Option 1\",\r\n              \"type\": \"dropdown\",\r\n              \"dropdown_options\": [\r\n                  \"Option 2\",\r\n                  \"Option 3\"\r\n              ],\r\n            \"rule\": {\r\n                    \"mandatory_editable\": true,\r\n                    \"editable\": true,\r\n                    \"is_check\":false\r\n                    }\r\n            },\r\n            {\r\n            \"id\": \"123013\",\r\n            \"name\": \"Diameter calculation\",\r\n            \"value\": null,\r\n            \"type\": \"equation\",\r\n            \"code\": \"DAH13\",\r\n            \"equation_form\": \"(4*(((x**2)-(54**2))/7)* 789 *887*345)/800\",\r\n            \"rule\": {\r\n                    \"mandatory_editable\": true,\r\n                    \"editable\": true,\r\n                    \"is_check\":false\r\n                    }\r\n            },\r\n            {\r\n          \"id\": \"123016\",\r\n          \"name\": \"Diameter measurement\",\r\n          \"value\": null,\r\n          \"type\": \"limit\",\r\n          \"code\": \"DIAM\",\r\n          \"limit_up\": \"250\",\r\n          \"limit_down\": \"260\",\r\n            \"rule\": {\r\n                    \"mandatory_editable\": true,\r\n                    \"editable\": true,\r\n                    \"is_check\":false,\r\n                    \"strict_comparison\": false\r\n                    }\r\n            }\r\n            ],\r\n        \"bom\": [{\r\n            \"id\": \"23234\",\r\n            \"name\": \"drawer\",\r\n            \"code\": \"23234\",\r\n            \"notUpdate\": true,\r\n            \"rule\": {\r\n                    \"mandatory_editable\": true,\r\n                    \"editable\": false,\r\n                    \"is_check\": false\r\n                    },\r\n            \"attribute\": [{\r\n                    \"initial\": \"1\",\r\n                    \"friendlyName\": \"name1\",\r\n                    \"friedlyCode\": \"code1\",\r\n                    \"comments\": \"comment1\"\r\n                    },\r\n                    {\r\n                    \"initial\": \"2\",\r\n                    \"friendlyName\": \"name2\",\r\n                    \"friedlyCode\": \"code2\",\r\n                    \"comments\": \"comment2\"\r\n                    },\r\n                    {\r\n                    \"initial\": \"3\",\r\n                    \"friendlyName\": \"name3\",\r\n                    \"friedlyCode\": \"code3\",\r\n                    \"comments\": \"comment3\"\r\n                    }\r\n                    ]\r\n                }]\r\n        },\r\n        {\r\n         \"workstationId\": \"204\",\r\n         \"workstationName\": \"Workstation 2\",\r\n          \"elementId\": \"204\",\r\n          \"previous\": [457],\r\n          \"next\": [43,700],\r\n          \"pass\": \"Str\",  \r\n          \"target\": \"7\",\r\n          \"job_tag\": {\r\n                \"remoteId\": \"222\",\r\n                \"name\": \"JobTag2\"\r\n          },\r\n          \"files\": [{\r\n             \"id\": \"1515\",\r\n             \"name\": \"image_at_workorderline\",\r\n             \"type\": \"jpg\",\r\n             \"path\": \"https://epoptia.com/wp-content/uploads/2022/02/JPEG-Epopteia-04.jpg\"\r\n           }]\r\n        },\r\n        {\r\n         \"workstationId\": \"43\",\r\n         \"workstationName\": \"Workstation 3\",\r\n          \"elementId\": \"43\",\r\n          \"previous\": [204],\r\n          \"next\": [],\r\n          \"pass\": \"Str\",\r\n          \"target\": \"7\",\r\n          \"job_tag\": {\r\n                \"remoteId\": \"999\",\r\n                \"name\": \"JobTag3\" \r\n          }\r\n        },\r\n        {\r\n         \"workstationId\": \"700\",\r\n         \"workstationName\": \"Workstation 4\",\r\n          \"elementId\": \"700\",\r\n          \"previous\": [204],\r\n          \"next\": [],\r\n          \"pass\": \"Str\",\r\n          \"target\": \"7\",\r\n          \"job_tag\": {\r\n                \"remoteId\": \"1000\",\r\n                \"name\": \"JobTag4\"\r\n          }\r\n        }\r\n      ],\r\n      \"product\":{\r\n            \"id\":\"5294\",\r\n            \"name\":\"Wooden Table\",\r\n            \"code\":\"01180\",\r\n            \"category_tag\" : [{\r\n                \"id\": \"4444\",\r\n                \"name\": \"wood_category\"\r\n            }],\r\n           \"files\": [{\r\n                \"id\": \"1717\",\r\n                \"name\": \"product_design\",\r\n                \"type\": \"jpg\",\r\n                \"path\": \"https://epoptia.com/wp-content/uploads/2021/07/workstation3.jpg\"\r\n           }],\r\n           \"thumbnail\": {\r\n                \"id\": \"123\",\r\n                \"name\": \"product_thumbnail\",\r\n                \"type\": \"jpg\",\r\n                \"path\": \"https://epoptia.com/wp-content/uploads/2021/12/laser-ga5579cbb5_1280.jpg\"\r\n             }\r\n         },\r\n      \"client\":{\r\n            \"id\":\"320\",\r\n            \"name\":\"John Bravos\",\r\n            \"email\": \"jbravos@gmail.com\",\r\n            \"phone_number\": \"003367876939\",\r\n            \"code\":\"560307\",\r\n            \"thumbnail\": {\r\n                \"id\": \"1818\",\r\n                \"name\": \"client_logo\",\r\n                \"type\": \"jpg\",\r\n                \"path\": \"https://epoptia.com/wp-content/uploads/2022/02/epoptia_logo_4.png\"\r\n           }\r\n         }\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{baseUrl}}/api/3.04/synchronize","description":"<p><strong>Create work order lines with ERP Routing, BOMs &amp; Custom Fields</strong></p>\n<p>This method will create a specific workflow for the specific work order line, and if the product does not have any workflow assigned, it will assign the workflow to the product for future use.</p>\n<p>Job_tasks can be used for providing separate tasks at the same workstation.</p>\n<p><strong>Important notes</strong></p>\n<p>If the WOL (Work Order Line) has not started, then if it is sent again, whatever exists will be replaced.</p>\n<p>If WOL has started, then the flow will not change from this particular link request. As for the BOMs (Bill of Materials) &amp; custom fields, those that did not exist will be added.</p>\n<p>If the workstation name is not sent, an automated name will be created that can be edited from the workstation settings.</p>\n<p>If the job_task name is not sent, an automated name will be created that can be edited from the tag settings.</p>\n<p>Different job tasks are required, if the same workstation is sent more than one time at the same routing.</p>\n<p>\"erp_routing\" &amp; \"workflow_id\", cannot be used at the same time</p>\n<p>previous &amp; next must exist. For null values, an empty array must be provided.</p>\n<hr />\n<p><strong>Responses</strong></p>\n<ul>\n<li><p>workorderline_id is missing</p>\n</li>\n<li><p>invalid value for workorderline_id</p>\n</li>\n<li><p>id is missing from wol_tag</p>\n</li>\n<li><p>name is missing from wol_tag</p>\n</li>\n<li><p>invalid value for workorder_line target_day</p>\n</li>\n<li><p>target_day is missing</p>\n</li>\n<li><p>invalid value for production_status (must be<br />  production or standby)</p>\n</li>\n<li><p>quantity is missing</p>\n</li>\n<li><p>invalid value for quantity</p>\n</li>\n<li><p>choose erp_routing or workflow_id</p>\n</li>\n<li><p>invalid value for workflow_id</p>\n</li>\n<li><p>invalid erp_routing</p>\n</li>\n<li><p>remoteId is missing from job_tag</p>\n</li>\n<li><p>The same workstation can be used more than one,<br />  only if job tasks are assigned</p>\n</li>\n<li><p>elementId is missing</p>\n</li>\n<li><p>erp routing has cycle</p>\n</li>\n<li><p>workorder id is missing</p>\n</li>\n<li><p>invalid value for workorder id</p>\n</li>\n<li><p>workorder code is missing</p>\n</li>\n<li><p>invalid value for workorder code</p>\n</li>\n<li><p>invalid value for workorder</p>\n</li>\n<li><p>product id is missing</p>\n</li>\n<li><p>invalid value for product id</p>\n</li>\n<li><p>product name is missing</p>\n</li>\n<li><p>invalid value for product name</p>\n</li>\n<li><p>product is missing</p>\n</li>\n<li><p>id is missing from category_tag</p>\n</li>\n<li><p>name is missing from category_tag</p>\n</li>\n<li><p>invalid value for client id</p>\n</li>\n<li><p>client id is missing</p>\n</li>\n<li><p>client name is missing</p>\n</li>\n<li><p>invalid value for client name</p>\n</li>\n<li><p>client is missing</p>\n</li>\n<li><p>id is missing at product thumbnail</p>\n</li>\n<li><p>name is missing at product thumbnail</p>\n</li>\n<li><p>type is missing at product thumbnail</p>\n</li>\n<li><p>path is missing at product thumbnail</p>\n</li>\n<li><p>type is invalid at product thumbnail<br />  (png,jpg,jpeg,pdf are accepted)</p>\n</li>\n<li><p>id is missing at client thumbnail</p>\n</li>\n<li><p>name is missing at client thumbnail</p>\n</li>\n<li><p>type is missing at client thumbnail</p>\n</li>\n<li><p>path is missing at client thumbnail</p>\n</li>\n<li><p>type is invalid at client thumbnail<br />  (png,jpg,jpeg,pdf are accepted)</p>\n</li>\n<li><p>For workorder_line_files, workorder_files &amp; product_files</p>\n<ul>\n<li>id is missing</li>\n<li>name is missing</li>\n<li>type is missing</li>\n<li>type is invalid (png,jpg,jpeg,pdf are<br />  accepted)</li>\n<li>path is missing</li>\n</ul>\n</li>\n<li><p>For customFields &amp; bom</p>\n<ul>\n<li>invalid value for $cb id</li>\n<li>$cb name is missing</li>\n<li>invalid value for $cb name</li>\n<li>invalid value for $cb notUpdate (must be only<br />  true or ignored)</li>\n<li>dropdown_options for $cb must be non empty<br />  array</li>\n<li>equation equation_form is invalid</li>\n<li>invalid type for $cb (text, dropdown only<br />  accepted)</li>\n<li>invalid type for $cb (type for custom field<br />  $cb is &gt;type) // In case of other type sent</li>\n</ul>\n</li>\n<li><p>Erp route cannot change</p>\n</li>\n<li><p>400 success</p>\n</li>\n<li><p>Workorder line has started,</p>\n</li>\n<li><p>Erp route cannot change</p>\n</li>\n<li><p>choose erp_routing or workflow_id</p>\n</li>\n<li><p>invalid erp_routing</p>\n</li>\n<li><p>invalid erp_routing, no information for element_id xxxxx</p>\n</li>\n<li><p>remoteId is missing from job_tag</p>\n</li>\n<li><p>The same workstation can be used more than one,<br />  only if job tasks are assigned</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","3.04","synchronize"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"10ec103b-9c50-47f6-928b-f71c0c68de19"}],"id":"1fddc3ac-5208-4e96-80be-929325af7532","_postman_id":"1fddc3ac-5208-4e96-80be-929325af7532","description":""}],"id":"f269a88a-6f73-4510-8ad9-23ec51a8fe13","description":"<p>All available API requests for creation, update and management of Work Order Lines &amp; Work Orders</p>\n","_postman_id":"f269a88a-6f73-4510-8ad9-23ec51a8fe13"}]}