Worker self managed profile

Enable workers to view and update their payroll setup information with this experience.

Available as:
Employer onboarding

Worker self managed profile experience

This worker facing experience provides a worker user with the ability to view and edit their payroll setup data, from a single profile. The profile is organized such that relevant pieces of information are grouped together into independent sections:

  • Personal - personal details about the worker (e.g. name, date of birth, home address).
  • Taxes setup - information pertaining to tax calculation and filing (e.g. filing status, allowances, withholding amounts). Note: taxes setup is only applicable to some workers, based on their classification, so for others this section is omitted (e.g. Contractor aka "1099" workers in the United States have no taxes setup).
  • Pay distributions - specifies how/where the worker chooses to receive their pay (e.g. direct deposit to bank account).

Options

NameTypeDescription
userTokenStringRequired. A User Token with WORKER_USER access role for the specified Worker.
workerIdStringRequired. The id of the Worker.
includeCardsString[]An array of the names of the cards which are to be included in the profile. If omitted, all cards will be included by default. Available cards are: pay-distributions, personal, and taxes-setup.

Refer to the reference on creating elements for the additional options that are available to all elements.

Embedded usage

Element name: worker-self-managed-profile

Refer to the guide on how to embed an Element with Salsa.js for more detailed instructions.

Example

salsa.elements.create('worker-self-managed-profile', {
  userToken: 'eyJhbGciO...ajs0Wqw', 
  workerId: 'wr_deb6f260-fa58-4aa8-a827-3ae7787f9650'
});