The GET OrgUnit XRefCodes request allows the consuming application to retrieve a list of org unit XRefCodes. This request returns only a list of XRefCodes and is the first step in a two-step process that includes a GET OrgUnits By XRefCodes request. See RESTful Get Org Unit Details.
Overview
The base URL used to retrieve a list of org unit XRefCodes is:
https://www.dayforcehcm.com/api/[CompanyName]/V1/OrgUnits
This query returns a list of XRefCodes for all of the org units in your organization. You can use these XRefCodes to retrieve more information about the org units using the Get Org Units by XRefCode request. See RESTful Get Org Unit Details.
Response
This call returns a list of employee XRefCodes. It is returned in a JSON format, as the following example illustrates:
{
"Data": [
{
"XRefCode": "Corporate"
},
{
"XRefCode": "500Operations"
},
{
"XRefCode": "500Packaging"
},
{
"XRefCode": "Shop1"
}
]
}
Available Data
Zero, one, or many XRefCodes. The request doesn't return any org units that don’t have XRefCodes.
Security and Data Returned
No additional access control is applied to the results of this web services call.