Provides an employer with a listing of their completed (confirmed) payroll runs. For each, they can view more details as well as access payment records (i.e. paystubs) for all workers.
Available as:
Options
Name | Type | Description |
---|---|---|
userToken | String | Required. A User Token with EMPLOYER_ADMIN access role for the specified Employer. |
employerId | String | Required. The id of the Employer. |
Refer to the reference on creating elements for the additional options that are available to all elements.
Embedded usage
Element name: payroll-run-list
Refer to the guide on how to embed an Element with Salsa.js for more detailed instructions.
Example
salsa.elements.create('payroll-run-list', {
userToken: 'eyJhbGciO...ajs0Wqw',
employerId: 'er_e8343fc7-9d63-4cc5-81ed-c573fc666d37'
});