To retrieve an employee’s pay statement for a specific date range, you can make a POST request to the appropriate endpoint. Below is an example of how to make this request using curl:
Replace YOUR_API_KEY, YOUR_CLIENT_ID, YOUR_ENCODED_CREDENTIALS, YOUR_COMPANY_ID, and YOUR_PAY_GROUP with your actual API key, client ID, encoded credentials, company identifier, and pay group, respectively. The startDate and endDate should be adjusted to the desired date range for the pay statements.
This request will return an array of pay statement documents for the specified company or pay group within the given date range. The response will include detailed information such as earnings, deductions, taxes, and net pay.