--- title: "Read customers" slug: "datenaustausch-connect-api-bsp-om-kunde-lesen" updated: 2026-12-02T10:11:21Z published: 2026-12-02T10:11:21Z canonical: "docs.homag.cloud/datenaustausch-connect-api-bsp-om-kunde-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 customers **Purpose:** Read a customer by their known orderManager customer number and check the mapping to the ERP. **Prerequisites:** orderManager with the Connect interface, [OrderManagerClient configured](/docs/de/datenaustausch-connect-api-bsp-ordermanager), and the customer number from orderManager. ## Code **C#** ```csharp var customer = await client.GetCustomer("462642"); if (customer is null) {    Console.WriteLine("Kunde nicht gefunden."); } else {    Console.WriteLine($"{customer.CustomerNumber}: {customer.CustomerNumberExternal}"); } ``` **REST** ```http GET https://connect.homag.cloud/api/orderManager/customers?customerNumber=462642 Authorization: Basic Accept: application/json ``` `200 OK` (excerpt): ```json [  {    "customerNumber": "462642",    "customerNumberExternal": "ERP-C-10045",    "customerName": "Musterkunde"  } ] ``` REST returns a list. The SDK call returns the first match as a single object. Use `customerNumber` to filter; `customerNumberExternal` is the number from your ERP and is not a filter for this endpoint. ## Contracts used | Contract | Usage | | --- | --- | | [`Customer`](/docs/en/datenaustausch-connect-api-ct-ordermanager-customers-customer) | Output: customer data with the internal and, if available, external customer number. | ## Common errors | Result | What to check | | --- | --- | | No match (`[]` in REST, `null` in the SDK call) | Check that you are using the orderManager customer number for the correct subscription. | **Next:** [Create customers](/docs/en/datenaustausch-connect-api-bsp-om-kunde-anlegen) · [View and test endpoint](https://connect.homag.cloud/ordermanager/#v1/tag/homag-connect-ordermanager-orders/GET/api/orderManager/customers)