-
Notifications
You must be signed in to change notification settings - Fork 1
Company
Brian Tully edited this page Nov 29, 2017
·
6 revisions
var company;
Paychex.Companies.get('XXXXXX').then(function(comp){
company = comp;
return company;
});Returns an array of pay periods for the company
company.payPeriods().then(function(payPeriods){
console.log(payPeriods);
});Returns an array of pay components that are configured for a company. Pay components are earnings and deductions which are used for payroll
company.payComponents().then(function(payComponents){
console.log(payComponents);
});Returns an array of organizations set up for company
company.organizations().then(function(organizations){
console.log(organizations);
});Returns an organization by organizationId
company.organization('XXXXXX').then(function(organization){
console.log(organization);
});Returns an array of job titles set up for company
company.jobTitles().then(function(jobTitles){
console.log(jobTitles);
});Returns a job title by jobTitleId
company.jobTitle('XXXXXX').then(function(jobTitle){
console.log(jobTitle);
});Returns an array of work statuses set up for company
company.workStatuses().then(function(workStatuses){
console.log(workStatuses);
});Returns a work status by workStatusId
company.workStatus('XXXXXX').then(function(workStatus){
console.log(workStatus);
});Returns an array of Worker objects for company
company.workers().then(function(workers){
console.log(workers);
});Optional query parameters
- givenName
- familyName
- legalLastFour
- searchStartDate
- searchEndDate
company.workers({familyName : 'Jones'}).then(function(workers){
console.log(workers);
});