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.
- Import an order
- Monitor the import
- Review the order
- Release the order
- Plan production in lots
- 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 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.
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;
POST /api/productionManager/orders/import
Authorization: Basic <base64(subscriptionId:authorizationKey)>
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
<binary content>
--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.
// 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);
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.
var orderDetails = await productionManager.GetOrder(orderId);
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.
await productionManager.ReleaseOrder(orderId);
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.
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.
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 withPATCHuntil production starts.
API reference: See Endpoints → HOMAG Connect productionManager → Managing Orders and Imports (API reference) and Managing Lots (API reference).
