--- title: "Typical workflow" slug: "datenaustausch-connect-api-uc-pm-ablauf" updated: 2026-12-02T08:12:39Z published: 2026-12-02T08:12:39Z canonical: "docs.homag.cloud/datenaustausch-connect-api-uc-pm-ablauf" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.homag.cloud/llms.txt > Use this file to discover all available pages before exploring further. # Typical workflow **For:** Customers · Partners · Integrators Most productionManager integrations follow the same sequence, from transferring an order to reporting back to the ERP system. This page explains the purpose of each step. The exact requests and responses are described on the linked endpoint pages. 1. Import an order 2. Monitor the import 3. Review the order 4. Release the order 5. Plan production in lots 6. Report status and dates Each step is described in detail below. ## 1. Import an order Usually, you transfer an order as a **project archive**: a ZIP file with a `project.xml` file in the root folder and the files it references, such as images and CNC programs. The `project.xml` follows the [HOMAG import specification](https://github.com/HomagGroup/HOMAG-Connect/blob/main/DataExchange/ImportSpecification.md) and describes the complete order, including header data and the hierarchy of articles, assemblies, and parts. Send the archive as `multipart/form-data` with a JSON part named `importOrderRequest` and a file part. The response contains a `correlationId` for the next step. If your source system can only export a flat part list, for example an Excel or CSV file, import it using an import template instead. To update an order that has not yet been released, import it again using the same `ExternalSystemId`. See [Use case: Import orders](/docs/en/datenaustausch-connect-api-uc-auftrag-anlegen). **C#** ```csharp var productionManager = new ProductionManagerClient(subscriptionId, authorizationKey); var projectFile = new FileInfo(@"C:\Exports\Project.zip"); var request = new ImportOrderRequest {    Action = ImportOrderRequestAction.ImportOnly }; var response = await productionManager.ImportOrderRequest(request, projectFile); var correlationId = response.CorrelationId; ``` **REST** ```http POST /api/productionManager/orders/import Authorization: Basic Content-Type: multipart/form-data; boundary=boundary --boundary Content-Disposition: form-data; name="importOrderRequest" { "action": "ImportOnly" } --boundary Content-Disposition: form-data; name="Project.zip"; filename="Project.zip" Content-Type: application/zip --boundary-- 200 OK Content-Type: application/json {  "correlationId": "0e4ea3b8-d1ce-4d16-a18f-9ea8f2e7d55c" } ``` ## 2. Monitor the import The import runs asynchronously. Query the import status using the `correlationId` until `state` is `Succeeded` or `Error`. Possible states are `Queued`, `InProgress`, `Succeeded`, and `Error`. If an error occurs, `errorDetails` explains why the import failed. If successful, the response contains the order's `orderId`. Store it in your system with the order. You need it for all subsequent steps to read, release, update, or delete the order. **C#** ```csharp // Wait for the import to complete and return the created order var order = await productionManager.WaitForImportOrderCompletion(correlationId, TimeSpan.FromMinutes(5)); var orderId = order.Id; // Alternatively, query the status directly var importState = await productionManager.GetImportOrderState(correlationId); ``` **REST** ```http GET /api/productionManager/orders/import/0e4ea3b8-d1ce-4d16-a18f-9ea8f2e7d55c 200 OK Content-Type: application/json {  "orderId": "1f5d1f4d-2ab9-487a-8a17-2d6fd84fe228",  "state": "Succeeded",  "link": "https://productionmanager.homag.cloud#/..." } ``` ## 3. Review the order Read the order details using the `orderId`. The response contains the order header, for example `orderNumber`, `externalSystemId`, `orderStatus`, and planned dates, as well as the hierarchy of production items in `items`. A newly imported order has the `New` status. Check that the order is complete before releasing it. **C#** ```csharp var orderDetails = await productionManager.GetOrder(orderId); ``` **REST** ```http GET /api/productionManager/orders/1f5d1f4d-2ab9-487a-8a17-2d6fd84fe228 200 OK Content-Type: application/json {  "id": "1f5d1f4d-2ab9-487a-8a17-2d6fd84fe228",  "orderNumber": "PM-2026-001284",  "orderName": "Kitchen Block A",  "externalSystemId": "ERP-2026-001284",  "orderStatus": "New",  "deliveryDatePlanned": "2026-12-04T00:00:00Z",  "quantityOfParts": 9,  "items": [ ... ] } ``` ## 4. Release the order Releasing the order makes it available for production. The order status changes from `New` to `ReadyForProduction`. If planning data needs to be corrected afterward, reset the release using `PATCH /api/productionManager/orders/{id}/resetRelease`. **C#** ```csharp await productionManager.ReleaseOrder(orderId); ``` **REST** ```http PATCH /api/productionManager/orders/1f5d1f4d-2ab9-487a-8a17-2d6fd84fe228/release 200 OK ``` ## 5. Plan production in lots A lot groups parts from one or more orders that will be produced together, for example parts made from the same material or planned for the same production day. Each lot has its own planned start and completion dates. See [Use case: Create lots](/docs/en/datenaustausch-connect-api-uc-pm-lose). ## 6. Report status and dates During production, the order status changes to `InProduction` and then `Completed`. Read the order regularly using its `orderId` and transfer the status and planned completion date to the ERP system. See [Use case: Synchronize orders with the ERP system](/docs/en/datenaustausch-connect-api-uc-auftrag-status). ## Why this sequence matters - An order can only be released after its import succeeds. Querying the import status prevents you from working with incomplete orders. - An order can only be overwritten by re-importing while its status is `New`. Transfer changes to parts before release. Header data can still be changed with `PATCH` until production starts. > **API reference:** See Endpoints → HOMAG Connect productionManager → [Managing Orders and Imports](https://docs.homag.cloud/apidocs/importproductionmanagerorderusingprojectfile) ([API reference](https://connect.homag.cloud/productionmanager/#v1/tag/b01-managing-orders-and-imports)) and [Managing Lots](https://docs.homag.cloud/apidocs/createlot) ([API reference](https://connect.homag.cloud/productionmanager/#v1/tag/b02-managing-lots)).