GET api/Department/{employeeNo}

Get a list of all departments for an employee

Request Information

URI Parameters

NameDescriptionTypeAdditional information
employeeNo

Employee Number

string

Required

Body Parameters

None.

Response Information

Resource Description

All Department Details

Collection of DepartmentDetail
NameDescriptionTypeAdditional information
StartDate

date

Required

EndDate

Must be after StartDate if present

date

None.

Division

string

None.

HomeDepartment

string

None.

Location

string

None.

Department1

For use in department splits.

string

None.

Department1Percentage

For use in department splits. Must add up to 100 if declared

decimal number

None.

Department2

For use in department splits.

string

None.

Department2Percentage

For use in department splits. Must add up to 100 if declared

decimal number

None.

Department3

For use in department splits.

string

None.

Department3Percentage

For use in department splits. Must add up to 100 if declared

decimal number

None.

CostCentre1

For use in cost centre splits.

string

None.

CostCentre1Percentage

For use in cost centre splits. Must add up to 100 if declared

decimal number

None.

CostCentre2

For use in cost centre splits.

string

None.

CostCentre2Percentage

For use in cost centre splits. Must add up to 100 if declared

decimal number

None.

CostCentre3

For use in cost centre splits.

string

None.

CostCentre3Percentage

For use in cost centre splits. Must add up to 100 if declared

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "StartDate": "2025-09-10T07:51:47.4022164+01:00",
    "EndDate": "2025-09-10T07:51:47.4022164+01:00",
    "Division": "sample string 2",
    "HomeDepartment": "sample string 3",
    "Location": "sample string 4",
    "Department1": "sample string 5",
    "Department1Percentage": 1.0,
    "Department2": "sample string 6",
    "Department2Percentage": 1.0,
    "Department3": "sample string 7",
    "Department3Percentage": 1.0,
    "CostCentre1": "sample string 8",
    "CostCentre1Percentage": 1.0,
    "CostCentre2": "sample string 9",
    "CostCentre2Percentage": 1.0,
    "CostCentre3": "sample string 10",
    "CostCentre3Percentage": 1.0
  },
  {
    "StartDate": "2025-09-10T07:51:47.4022164+01:00",
    "EndDate": "2025-09-10T07:51:47.4022164+01:00",
    "Division": "sample string 2",
    "HomeDepartment": "sample string 3",
    "Location": "sample string 4",
    "Department1": "sample string 5",
    "Department1Percentage": 1.0,
    "Department2": "sample string 6",
    "Department2Percentage": 1.0,
    "Department3": "sample string 7",
    "Department3Percentage": 1.0,
    "CostCentre1": "sample string 8",
    "CostCentre1Percentage": 1.0,
    "CostCentre2": "sample string 9",
    "CostCentre2Percentage": 1.0,
    "CostCentre3": "sample string 10",
    "CostCentre3Percentage": 1.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfDepartmentDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebServicesRESTful.Models">
  <DepartmentDetail>
    <CostCentre1>sample string 8</CostCentre1>
    <CostCentre1Percentage>1</CostCentre1Percentage>
    <CostCentre2>sample string 9</CostCentre2>
    <CostCentre2Percentage>1</CostCentre2Percentage>
    <CostCentre3>sample string 10</CostCentre3>
    <CostCentre3Percentage>1</CostCentre3Percentage>
    <Department1>sample string 5</Department1>
    <Department1Percentage>1</Department1Percentage>
    <Department2>sample string 6</Department2>
    <Department2Percentage>1</Department2Percentage>
    <Department3>sample string 7</Department3>
    <Department3Percentage>1</Department3Percentage>
    <Division>sample string 2</Division>
    <EndDate>2025-09-10T07:51:47.4022164+01:00</EndDate>
    <HomeDepartment>sample string 3</HomeDepartment>
    <Location>sample string 4</Location>
    <StartDate>2025-09-10T07:51:47.4022164+01:00</StartDate>
  </DepartmentDetail>
  <DepartmentDetail>
    <CostCentre1>sample string 8</CostCentre1>
    <CostCentre1Percentage>1</CostCentre1Percentage>
    <CostCentre2>sample string 9</CostCentre2>
    <CostCentre2Percentage>1</CostCentre2Percentage>
    <CostCentre3>sample string 10</CostCentre3>
    <CostCentre3Percentage>1</CostCentre3Percentage>
    <Department1>sample string 5</Department1>
    <Department1Percentage>1</Department1Percentage>
    <Department2>sample string 6</Department2>
    <Department2Percentage>1</Department2Percentage>
    <Department3>sample string 7</Department3>
    <Department3Percentage>1</Department3Percentage>
    <Division>sample string 2</Division>
    <EndDate>2025-09-10T07:51:47.4022164+01:00</EndDate>
    <HomeDepartment>sample string 3</HomeDepartment>
    <Location>sample string 4</Location>
    <StartDate>2025-09-10T07:51:47.4022164+01:00</StartDate>
  </DepartmentDetail>
</ArrayOfDepartmentDetail>