{"swagger":"2.0","info":{"version":"1.0.0","title":"42Q ERP REST Service API","description":"This is a 42Q ERP REST API, the erp interface to integrate with the leading MES SaaS Company","termsOfService":"https://www.42-q.com/terms/","contact":{"email":"info@42-q.com"}},"host":"localhost:8290","basePath":"/erp","paths":{"/wo_create":{"post":{"consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"request","in":"body","schema":{"$ref":"#/definitions/WOCreateSimpleSchema"}}],"responses":{"202":{"description":"WO Create Request Accepted","schema":{"$ref":"#/definitions/WOCreateOut"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/WOCreateOut"}},"500":{"description":"Service Error","schema":{"$ref":"#/definitions/WOCreateOut"}},"503":{"description":"Service Temporarily Unavailable","schema":{"$ref":"#/definitions/WOCreateOut"}}}}}},"definitions":{"WOCreateSimpleSchema":{"type":"object","properties":{"MESSAGE_ID":{"type":"string","minLength":1},"TRANSACTION_ID":{"type":"integer","minLength":1},"ORGANIZATION_CODE":{"type":"string","minLength":1},"CUSTOMER_CODE":{"type":"string","minLength":1},"JOB_NUMBER":{"type":"string","minLength":1},"PART_DESCRIPTION":{"type":"string","minLength":1},"ASSEMBLY_ITEM_NUMBER":{"type":"string","minLength":1},"JOB_COMPLETION_DATE":{"type":"string","pattern":"^(([0-9])|([0-2][0-9])|([3][0-1]))\\-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\-\\d{2}$"},"START_DATE":{"type":"string","pattern":"^(([0-9])|([0-2][0-9])|([3][0-1]))\\-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\-\\d{2}$"},"QUANTITY":{"type":"number","minLength":1},"JOB_TYPE":{"type":"string"},"JOB_CLASS":{"type":"string"},"JOB_STATUS":{"type":"string","minLength":1},"ASSY_REVISION":{"type":"string"},"ASSY_REVISION_DESC":{"type":"string"},"ROUTING_REVISION":{"type":"string"},"DATE_RELEASED":{"type":"string","pattern":"^(([0-9])|([0-2][0-9])|([3][0-1]))\\-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\-\\d{2}$"},"INTERFACE_TYPE":{"type":"string"},"SCHEDULE_PRIORITY":{"type":"string"},"QUANTITY_COMPLETED":{"type":"number","minLength":1},"WIP_RELEASED_DATE":{"type":"string","pattern":"^(([0-9])|([0-2][0-9])|([3][0-1]))\\-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\-\\d{2}$"},"ROUTING_OPERATIONS":{"type":"array","items":{"type":"object","properties":{"OPERATION_SEQ_NUM":{"type":"integer","minLength":1},"OPERATION_CODE":{"type":"string","minLength":1},"DEPARTMENT_CODE":{"type":"string","minLength":1},"OPERATION_DESCRIPTION":{"type":"string","minLength":1},"RESOURCES":{"type":"array","items":{"type":"object","properties":{"RESOURCE_SEQ":{"type":"integer","minLength":1},"RESOURCE_CODE":{"type":"string","minLength":1},"RESOURCE_UOM":{"type":"string","minLength":1},"BASIS_TYPE":{"type":"string","minLength":1},"USAGE_RATE_OR_AMOUNT":{"type":"number","minLength":1}},"additionalProperties":true,"required":["RESOURCE_SEQ","RESOURCE_CODE","RESOURCE_UOM","BASIS_TYPE","USAGE_RATE_OR_AMOUNT"]}}},"additionalProperties":true,"required":["OPERATION_SEQ_NUM","OPERATION_CODE","DEPARTMENT_CODE","OPERATION_DESCRIPTION"]}},"WO_COMPONENTS":{"type":"array","items":{"type":"object","properties":{"COMPONENT_SEQUENCE_ID":{"type":"integer","minLength":1},"OPERATION_SEQ_NUM":{"type":"integer","minLength":1},"ITEM_SEQUENCE":{"type":"integer","minLength":1},"BOM_OP_SEQ_NUM":{"type":"integer","minLength":1},"COMPONENT_ITEM_NUMBER":{"type":"string"},"DEPARTMENT_CODE":{"type":"string"},"COMPONENT_DESCRIPTION":{"type":"string"},"UNIT_OF_MEASURE":{"type":"string","minLength":1},"QUANTITY_PER_ASSY":{"type":"number","minLength":1},"QUANTITY_REQUIRED":{"type":"number","minLength":1},"WIP_SUPPLY_TYPE":{"type":"string"},"ITEM_TYPE":{"type":"string"},"WO_COMP_REF_DESG":{"type":"array","items":{"type":"object","properties":{"REFERENCE_DESIGNATOR":{"type":"string","minLength":1},"REF_DESG_DESCRIPTION":{"type":"string","minLength":1}},"additionalProperties":true,"required":["REFERENCE_DESIGNATOR","REF_DESG_DESCRIPTION"]}},"WO_COMP_SUBST":{"type":"array","items":{"type":"object","properties":{"SUBSTITUTE_ITEM_NUMBER":{"type":"string","minLength":1},"UNIT_OF_MEASURE":{"type":"string","minLength":1},"QUANTITY_PER_ASSY":{"type":"number","minLength":1}},"additionalProperties":true,"required":["SUBSTITUTE_ITEM_NUMBER","UNIT_OF_MEASURE","QUANTITY_PER_ASSY"]}}},"additionalProperties":true,"required":["COMPONENT_SEQUENCE_ID","ITEM_SEQUENCE","COMPONENT_ITEM_NUMBER","UNIT_OF_MEASURE","QUANTITY_PER_ASSY"]}}},"additionalProperties":true,"required":["MESSAGE_ID","TRANSACTION_ID","ORGANIZATION_CODE","CUSTOMER_CODE","JOB_NUMBER","PART_DESCRIPTION","ASSEMBLY_ITEM_NUMBER","QUANTITY","JOB_STATUS"]},"WOCreateOut":{"type":"object","properties":{"STATUS":{"type":"string"},"MESSAGE":{"type":"string"},"REF":{"type":"string"}}}}}