The GET Departments XRefCodes request allows the consuming application to retrieve a list of XRefCodes for departments. This request returns only a list of XRefCodes and is the first step in a two-step process that includes a GET Departments By XRefCodes request. See RESTful Get Department Details.
Overview
The base URL used to retrieve a list of XRefCodes for departments is:
https://www.dayforcehcm.com/api/[CompanyName]/V1/Departments
This query returns a list of XRefCodes for all of the departments configured in your organization. You can use these XRefCodes to retrieve more information about the departments using the Get Departments by XRefCode request. See RESTful Get Department Details.
Response
This call returns a list of XRefCodes for departments. It is returned in a JSON format.
Available Data
Zero, one, or many XRefCodes. The request doesn't return any departments that don’t have XRefCodes.
Security and Data Returned
No additional access control is applied to the results of this web services call.