For more information, please refer to this announcement explaining best practices for getting answers to questions.
Payroll Relationships REST API
Summary:
Here is the endpoint we are calling
/hcmRestApi/resources/11.13.18.05/payrollRelationships?q=PersonNumber='10358'&onlyData=true&expand=payrollAssignments.assignedPayrolls
It is pulling up all of this employee's Pending worker and Employee Payroll relationship.
I've tried using effectiveDate as today's date. It is still pulling all of the records.
Is this because his Pending Worker Payroll relationship doesn't have any end-date (base of the JSON payload response)?
{
"items": [
{
"PayrollRelationshipId": 300000136962496,
"PayrollRelationshipNumber": "10358-1",
"StartDate": "2023-02-20",
"EndDate": "4712-12-31",
"PersonNumber": "10358",
"Country": "US",
"PartyId": 300000136875718,
"PartyNumber": "483921",
"EffectiveEndDate": "4712-12-31",
"EffectiveStartDate": "2023-02-20",
"OverridingPeriodId": null,
"payrollAssignments": [
{
"RelationshipGroupId": 300000136962501,
"AssignmentNumber": "E10358",
"EffectiveStartDate": "2023-08-24",
"EffectiveEndDate": "4712-12-31",