General process description
#General-process-description
This section contains the general flow description and diagrams of how API works (in the context of 1. “production batch” / or 2. “production document”).
Production process within production batch
The following endpoints are used for production within a production batch: 2.1.16 – 2.1.20 (/make_batch/, /gen_batch_codes/, /get_batch_codes/, /close_batch/, /make_aggregation/).
Process description: in the system creates a production batch (certain amount of products that are planned to be produced in a certain period of time (e.g., in 1-2 weeks) according to the company's production plan) for the category/group of products that will be produced (/*make_batch*/). Codes are generated entirely for this production batch (/*gen_batch_codes*/), then the generated codes must be received (/*get_batch_codes*/). Next, the production/aggregation results are sent to the system (/*make_aggregation*/). Upon completion of production, the batch is closed (/*close_batch*/).
Production process within production/packaging document
The following endpoints are used for production within specific production/packaging document: 2.1.21 – 2.1.25 (/make_production/, /gen_product_codes/, /get_product_codes/, /close_production/, /make_aggregation/).
Process description: in the system creates a production/packaging document which usually corresponds to a specific production task for the current day, in the document indicates the necessary information (product, type of packaging, quantity) (/*make_production*/). Codes are generated for this specific production document (/*gen_product_codes*/), then the generated codes must be received (/*get_product_codes*/). Next, the production/aggregation results are sent to the system (/*make_aggregation*/). Upon completion of production process, production document is closed (/*close_production*/).