Skip to main content
GET
Get department

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationId
string
required

String. The organization's internal ID (32-character hex string) or its externalSourceId. When the value matches the format of an internal ID, the internal ID takes precedence.

Example:

"11adfe2a080040e3892ffb89c21ec44e"

departmentId
string
required

String. The ID of the department to retrieve (32-character hex string), as returned in the id field of the response. Lookup by externalSourceId is not supported for departments, unlike organizationId. The literal value root is reserved: GET .../departments/root always resolves to the organization's root department (see the Get departments root endpoint), so a department whose own id happens to be root cannot be retrieved through this endpoint.

Example:

"9360d03ad7294220868d67f42a2a144d"

Response

OK

id
string
required

Unique identifier of the department.

externalSourceId
string | null
required

External source identifier of the department, if set by an integration. Null when not set.

name
string
required

Display name of the department.

parentId
string | null
required

The id of the parent department. Null only for the organization's own root unit (level 0). Every other department, including a top-level one directly under the root, has this set to its parent's id.

vatType
enum<string>
required

VAT deduction handling for this department. Defaults to USE_CATEGORY when not explicitly set.

Available options:
USE_CATEGORY,
NON_DEDUCTABLE_VAT,
DEDUCTABLE_VAT
customDimensionPresetValues
object[]
required

Preset custom dimension values configured for this department. Excludes values belonging to deleted dimension definitions.

level
integer
required

Depth of the department within the organization's unit hierarchy. The organization's implicit root unit is level 0; a genuine top-level department is level 1.