Skip to content

An unofficial simple typescript sdk for datapay api (Datacom Payroll api)

Notifications You must be signed in to change notification settings

HeathLoganCampbell/SimpleDataPaySDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple DataPay API SDK

Example of usage

async function example()
{
   let client = new Client("https://www.datapaylive.com.au/api", "CLIENT_ID", "CLIENT_SECRET");
   // Get all companies a user has access to
   let companies = await client.getCompanies();
   // Gets all employees in the company
   let employees = await client.getEmployees(companies[0].Id);
   // Get PayRuns of a company
   let payruns = await client.getPayRuns(companies[0].Id);
   // Get the paygroups
   let payGroups = await client.getPayGroups(companies[0].Id);
}

useful learnings

Country => Company => PayGroup => PayRun => Employee / PayPacket

read more at https://developers.datacomdirectaccess.com.au/api/documentation

About

An unofficial simple typescript sdk for datapay api (Datacom Payroll api)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published