Skip to content

Paychex.Companies

Brian Tully edited this page Nov 29, 2017 · 5 revisions

Paychex.Companies.List()

Returns an array of Company objects that your application has been granted with some level of access

Paychex.Companies.list().then(function(companies){
  console.log(companies);
});

Paychex.Companies.get(companyId)

Get a company by companyId
Returns an instance of a Company

Paychex.Companies.get('XXXXXX').then(function(company){
  console.log(company);
});

Paychex.Companies.getByDisplayId(displayId)

Get a company by displayId
Returns an instance of a Company

Paychex.Companies.getByDisplayId('XXXXXX').then(function(company){
  console.log(company);
});

Clone this wiki locally