GET api/Department/{employeeNo}/{startDate}
Get a specific department record for an employee. The key is the StartDate
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| employeeNo |
Employee Number |
string |
Required |
| startDate |
Start Date |
date |
Required |
Body Parameters
None.
Response Information
Resource Description
Department
DepartmentDetail| Name | Description | Type | Additional 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
{
"StartDate": "2025-10-26T01:54:23.5047716+01:00",
"EndDate": "2025-10-26T01:54:23.5047716+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
<DepartmentDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebServicesRESTful.Models"> <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-10-26T01:54:23.5047716+01:00</EndDate> <HomeDepartment>sample string 3</HomeDepartment> <Location>sample string 4</Location> <StartDate>2025-10-26T01:54:23.5047716+01:00</StartDate> </DepartmentDetail>