Overview
ADP Workforce Now requires a non-standard approach when updating employee information through the StackOne Update Employee endpoint. Instead of following the typical unified API flow, ADP WFN uses a specialized passthrough mechanism that allows direct interaction with ADP’s event-based API structure.How the Passthrough Works
When updating an employee in ADP Workforce Now, thepassthrough
parameter operates differently from other providers:
- Each key in the
passthrough
object represents a path segment that gets appended to ADP’s event API endpoint - Each value is the complete request body that gets sent as a POST request to that specific endpoint
Critical You must include the worker’s ‘associateOID’ in the ‘eventContext’ for all operations. This is required to identify which employee to update. Without it, the request will fail. This is equivalent to the unified ‘remote_id’ of the Employee being updated.
Request Structure
The passthrough data is sent to ADP WFN using the following endpoint pattern:{{path}}
is replaced by each key in your passthrough object.
Example Usage
Here’s an example of how to structure your Update Employee request with the passthrough parameter to update an employee’s organizational units and military status:- The first operation sends a POST to
/events/hr/v1/worker.work-assignment.organizational-units.change
- The second operation sends a POST to
/events/hr/v1/worker.military-status.change
- Each request body contains the complete event structure required by ADP
- The
associateOID
(G5357R8DJ46DKM8P) identifies the worker being updated in both operations
Finding the Right Operation Path and Body Structure
To determine the correct operation path and request body structure for your use case:- Visit the ADP API Explorer: https://developers.adp.com/apis/api-explorer/hcm-offrg-wfn?domain=hr
- Browse the available operations to find the specific employee update action you need
-
Note the operation path name - this becomes the key in your passthrough object
- Example: If the API Explorer shows
worker.work-assignment.organizational-units.change
, use that exact string as the key
- Example: If the API Explorer shows
- Review the request body schema - this becomes the value in your passthrough object
The ADP API Explorer provides comprehensive documentation on all available operations, required fields, and example payloads for the ADP Workforce Now HCM API.
Always validate your passthrough structure against the ADP API documentation. Incorrect paths or malformed request bodies will result in API errors.
Best Practices
- Validate your payload structure using the ADP API Explorer before implementing in production
- Test with a sandbox account first to ensure your passthrough structure is correct
- Handle errors appropriately - ADP may return specific validation errors for malformed requests