RESTful Get Department Details

Dayforce RESTful Web Services Developer Guide

Version
R2025.2.1
RESTful Get Department Details

The consuming application can use the department XRefCodes it has retrieved using the Get Department XRefCodes request to retrieve further information about departments using a series of Get Department Detail by XRefCode requests.

The consuming application will need to make one request for each XRefCode. The XRefCode is added to the base URL as shown here:

https://www.dayforcehcm.com/api/CompanyName/V1/Departments/[XRefCode]

Response

The response of the RESTful Get Department Detail by XRefCode request is returned in a JSON format. You can see an example of the response on the Dayforce Developer Network.

Security

To retrieve department data, the web service user's primary role must have the HCM Anywhere > Web Services > Read Data checkbox selected in the Features tab of System Admin > Roles.