--- title: "Read a production order" slug: "datenaustausch-connect-api-bsp-pm-auftrag-lesen" updated: 2026-12-02T10:11:18Z published: 2026-12-02T10:11:18Z canonical: "docs.homag.cloud/datenaustausch-connect-api-bsp-pm-auftrag-lesen" --- > ## 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. # Read a production order **Purpose:** Retrieve the status, number of parts, and production line items for a known order. **Prerequisites:** productionManager with the Connect interface, [ProductionManagerClient configured](/docs/de/datenaustausch-connect-api-bsp-productionmanager), and the productionManager order ID (`id`), not the order number. ## Code **C#** ```csharp var orderId = Guid.Parse("1f5d1f4d-2ab9-487a-8a17-2d6fd84fe228"); var order = await client.GetOrder(orderId); if (order is null) {    Console.WriteLine("Fertigungsauftrag nicht gefunden."); } else {    Console.WriteLine($"{order.OrderNumber}: {order.OrderStatus}, {order.QuantityOfParts} Teile"); } ``` **REST** ```http GET https://connect.homag.cloud/api/productionManager/orders/1f5d1f4d-2ab9-487a-8a17-2d6fd84fe228 Authorization: Basic Accept: application/json ``` `200 OK` (excerpt): ```json {  "id": "1f5d1f4d-2ab9-487a-8a17-2d6fd84fe228",  "orderNumber": "ERP-4711",  "orderStatus": "ReadyForProduction",  "quantityOfParts": 9 } ``` Parts can be nested under `items`. When planning a lot, search the entire hierarchy rather than only the top level. ## Contracts used | Contract | Usage | | --- | --- | | [`OrderDetails`](/docs/en/datenaustausch-connect-api-ct-productionmanager-orders-orderdetails) | Output: order data, including status, number of parts, and line-item hierarchy. | ## Common errors | REST status | What to check | | --- | --- | | `404 Not Found` | The ID must come from the same subscription and must not be the number from the ERP. | | `401 Unauthorized` | Check the SubscriptionId, authorization key, and app access. | **Next:** [Synchronize orders with the ERP](/docs/de/datenaustausch-connect-api-uc-auftrag-status) · [Create a lot](/docs/en/datenaustausch-connect-api-bsp-pm-los-anlegen) · [View and test endpoint](https://connect.homag.cloud/productionmanager/#v1/tag/b01-managing-orders-and-imports/GET/api/productionManager/orders/{id})