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.
- Prepare customers
- Import an order
- Monitor the import
- Review the order
- Release the order
- Track production status
Each step is described in detail below.
Note: orderManager assigns
orderNumberandcustomerNumberitself. You cannot set them externally. Pass your system's numbers asorderNumberExternalandcustomerNumberExternal. If an import contains anorderNumber, orderManager stores it asorderNumberExternal.
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.
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.
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);
POST /api/orderManager/customers
Authorization: Basic <base64(subscriptionId:authorizationKey)>
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). This is supported but is not the standard method. The response contains a correlationId for the next step. See Use Case: Import Orders.
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;
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.
// 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);
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.
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);
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.
await orderManager.ReleaseOrder(orderId);
// If the order needs to be corrected before production starts
await orderManager.ResetReleaseOrder(orderId);
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.
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 (
POST /api/orderManager/orders/import), Get import status (GET /api/orderManager/orders/import/{correlationId}), Get an order (GET /api/orderManager/orders/{id}), Release an order (PATCH /api/orderManager/orders/{orderId}/release), and Reset an order's release (PATCH /api/orderManager/orders/{orderId}/resetRelease).
