--- title: "Typical Workflow" slug: "datenaustausch-connect-api-uc-om-ablauf" updated: 2026-12-02T08:12:49Z published: 2026-12-02T08:12:49Z canonical: "docs.homag.cloud/datenaustausch-connect-api-uc-om-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 orderManager integrations follow the same sequence: an order is created or imported, orderManager releases it, and the released order is distributed to the target systems. This page explains the purpose of each step. For the exact request and response contents, see the linked endpoint pages. 1. Prepare customers 2. Import an order 3. Monitor the import 4. Review the order 5. Release the order 6. Track production status Each step is described in detail below. > **Note:** orderManager assigns `orderNumber` and `customerNumber` itself. You cannot set them externally. Pass your system's numbers as `orderNumberExternal` and `customerNumberExternal`. If an import contains an `orderNumber`, orderManager stores it as `orderNumberExternal`. ## 1. Prepare Customers An order references its customer using the `customerNumber` assigned to the customer by orderManager. Make sure the customer exists in orderManager before importing their orders. Customers can be created manually in the app, through registration in the sales portal, or through HOMAG Connect orderManager. When creating a customer through the API, pass your own customer number as `customerNumberExternal` and store the returned `customerNumber` in your system. See [Use Case: Manage Customers](/docs/en/datenaustausch-connect-api-uc-om-kunden). > **Note:** Currently, an import automatically creates a missing customer. This behavior will be removed in a future version. Create customers explicitly to ensure your integration continues to work. **C#** ```csharp var orderManager = new OrderManagerClient(subscriptionId, authorizationKey); var customer = await orderManager.CreateCustomer(new CreateCustomerRequest {    CustomerNumberExternal = "ERP-C-10045",    CustomerName = "Müller & Co.",    Email = "orders@mueller.example",    Locale = Locale.deDE }); // Store the customer number assigned by orderManager erp.StoreOrderManagerCustomerNumber("ERP-C-10045", customer.CustomerNumber); ``` **REST** ```http POST /api/orderManager/customers Authorization: Basic Content-Type: application/json {  "customerNumberExternal": "ERP-C-10045",  "customerName": "Müller & Co.",  "email": "orders@mueller.example",  "locale": "deDE" } 201 Created {  "id": "5b0c2f0e-3c7d-4c49-9a1e-7f1d1e2a9b40",  "customerNumber": "462642",  "customerNumberExternal": "ERP-C-10045",  "customerName": "Müller & Co.",  ... } ``` ## 2. Import an Order The standard import method is an `OrderDetails` object in JSON, sent to `POST /api/orderManager/orders/import`. It contains the order header and the hierarchy of groups, positions, and prices. If the order references files that cannot be accessed through a URI, such as images, send the JSON as a `multipart/form-data` part named `order`, together with one part for each file. Alternatively, you can import a project archive (a ZIP file containing a `project.xml` that follows the [HOMAG Import Specification](https://github.com/HomagGroup/HOMAG-Connect/blob/main/DataExchange/ImportSpecification.md)). This is supported but is not the standard method. The response contains a `correlationId` for the next step. See [Use Case: Import Orders](/docs/en/datenaustausch-connect-api-uc-om-import). **C#** ```csharp var order = new OrderDetails {    OrderNumberExternal = "ERP-2026-001284",    OrderName = "Bedroom & bathroom 01",    CustomerNumber = customer.CustomerNumber, // assigned by orderManager    Source = "OrderConfigurator",    OrderDate = DateTime.Today,    DeliveryDatePlanned = DateTime.Today.AddDays(14) }; var response = await orderManager.ImportOrderRequest(order); var correlationId = response.CorrelationId; ``` **REST** ```http POST /api/orderManager/orders/import Content-Type: application/json {  "orderNumberExternal": "ERP-2026-001284",  "orderName": "Bedroom & bathroom 01",  "customerNumber": "462642",  "source": "OrderConfigurator",  "orderDate": "2026-11-19T00:00:00Z",  "deliveryDatePlanned": "2026-12-03T00:00:00Z",  "items": [ ... ] } 200 OK {  "correlationId": "0e4ea3b8-d1ce-4d16-a18f-9ea8f2e7d55c" } ``` ## 3. Monitor the Import The import runs asynchronously. Check the import status using the `correlationId` until `state` is `Succeeded` or `Error`. Possible values are `Queued`, `InProgress`, `Succeeded`, and `Error`. If an error occurs, `errorDetails` explains why the import failed. On success, the response contains the `orderId` and a `link` to the order in the app. Store the `orderId` with the order in your system. You need it to read, release, or delete the order. **C#** ```csharp // Wait for the import to complete and return the created order var importedOrder = await orderManager.WaitForImportOrderCompletion(correlationId, TimeSpan.FromMinutes(1)); var orderId = importedOrder.Id; // Alternatively, query the status yourself var importState = await orderManager.GetImportOrderState(correlationId); ``` **REST** ```http GET /api/orderManager/orders/import/0e4ea3b8-d1ce-4d16-a18f-9ea8f2e7d55c 200 OK {  "orderId": "1f5d1f4d-2ab9-487a-8a17-2d6fd84fe228",  "state": "Succeeded",  "errorDetails": null,  "link": "https://..." } ``` ## 4. Review the Order Read the order details using the `orderId` or the order number. The response contains the order header, for example the `orderNumber` assigned by orderManager, your `orderNumberExternal`, `state`, `customerNumber`, and planned dates. The `items` property contains the hierarchy of groups, positions, and prices. A newly imported order has the status `New`, or `NewInCalculation` while its data is still being generated. Set `configurationData=true` if you also need the configuration data for the positions. **C#** ```csharp var orderDetails = await orderManager.GetOrder(orderId); // Or read by the order number assigned by orderManager, including configuration data var orderWithConfiguration = await orderManager.GetOrder(orderDetails.OrderNumber, configurationData: true); ``` **REST** ```http GET /api/orderManager/orders/1f5d1f4d-2ab9-487a-8a17-2d6fd84fe228?configurationData=false 200 OK {  "id": "1f5d1f4d-2ab9-487a-8a17-2d6fd84fe228",  "state": "New",  "type": "CustomerOrder",  "orderNumber": "736362",  "orderNumberExternal": "ERP-2026-001284",  "orderName": "Bedroom & bathroom 01",  "customerNumber": "462642",  "deliveryDatePlanned": "2026-12-03T00:00:00Z",  "items": [ ... ] } ``` ## 5. Release the Order Release is the central gate in orderManager: only released orders are forwarded to downstream systems such as productionManager or an ERP system. After release, orderManager distributes the order or parts of it through the configured distribution channels to the production sites or production systems. The order status changes from `New` to `ReadyForProduction`. If the order needs to be corrected before production begins, reset its release using `PATCH /api/orderManager/orders/{orderId}/resetRelease`. Both calls return `204 No Content` on success and `422 Unprocessable Entity` if the order cannot be released or its release cannot be reset in its current state. **C#** ```csharp await orderManager.ReleaseOrder(orderId); // If the order needs to be corrected before production starts await orderManager.ResetReleaseOrder(orderId); ``` **REST** ```http PATCH /api/orderManager/orders/1f5d1f4d-2ab9-487a-8a17-2d6fd84fe228/release 204 No Content PATCH /api/orderManager/orders/1f5d1f4d-2ab9-487a-8a17-2d6fd84fe228/resetRelease 204 No Content ``` ## 6. Track Production Status Production systems report their status back to orderManager. Once production begins, the order status changes to `InProgress`, and the order can no longer be changed. When production is complete, the status changes to `Completed`. Read changed orders regularly using `changedSince` and transfer their status and dates to your system. See [Use Case: Synchronize Orders with the ERP System](/docs/en/datenaustausch-connect-api-uc-om-sync). ## Why This Sequence Matters - The customer must exist before the order is imported so the order can be assigned to the right customer. - An order can only be released after its import has succeeded. Checking the import status prevents you from working with incomplete orders. - Release is the gate to production: only released orders are distributed, and orders in production are protected from changes. > **API reference:** See Endpoints → HOMAG Connect orderManager → Orders: [Import an order](https://docs.homag.cloud/apidocs/api-ordermanager-orders-import) ([`POST /api/orderManager/orders/import`](https://connect.homag.cloud/ordermanager/#v1/tag/homag-connect-ordermanager-orders/POST/api/orderManager/orders/import)), [Get import status](https://docs.homag.cloud/apidocs/api-ordermanager-orders-import-correlationid) ([`GET /api/orderManager/orders/import/{correlationId}`](https://connect.homag.cloud/ordermanager/#v1/tag/homag-connect-ordermanager-orders/GET/api/orderManager/orders/import/{correlationId})), [Get an order](https://docs.homag.cloud/apidocs/api-ordermanager-orders-id) ([`GET /api/orderManager/orders/{id}`](https://connect.homag.cloud/ordermanager/#v1/tag/homag-connect-ordermanager-orders/GET/api/orderManager/orders/{id})), [Release an order](https://docs.homag.cloud/apidocs/api-ordermanager-orders-orderid-release) ([`PATCH /api/orderManager/orders/{orderId}/release`](https://connect.homag.cloud/ordermanager/#v1/tag/homag-connect-ordermanager-orders/PATCH/api/orderManager/orders/{orderId}/release)), and [Reset an order's release](https://docs.homag.cloud/apidocs/api-ordermanager-orders-orderid-resetrelease) ([`PATCH /api/orderManager/orders/{orderId}/resetRelease`](https://connect.homag.cloud/ordermanager/#v1/tag/homag-connect-ordermanager-orders/PATCH/api/orderManager/orders/{orderId}/resetRelease)).