Organization structure

Get Department

GET
/departments/{id}

Returns a single department by ID. The response includes the full parent hierarchy: organization → company → division → business unit → department.

Access control: Returns 404 if the department does not exist or it belongs to a company your integration does not have access to.

Error Details:

  • 404 Not Found — department does not exist or belongs to a company your integration does not have access to
X-API-KEY<token>

Your API key.

In: header

Path Parameters

id*integer

The unique identifier of the department to retrieve.

Formatint64

Query Parameters

api-version*string

API version

Default"3.0"
Value in"3.0"

Response Body

curl -X GET "https://external-app-prod.netchexonline.net/departments/0?api-version=3.0"
{
  "id": 0,
  "name": "string",
  "code": "string",
  "businessUnitId": 0,
  "businessUnitName": "string",
  "businessUnitCode": "string",
  "divisionId": 0,
  "divisionName": "string",
  "divisionCode": "string",
  "companyId": 0,
  "companyName": "string",
  "companyCode": "string",
  "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  "organizationName": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}