API and Documentation

Our API is a JSON REST API with Oauth2.

API

https://api.zenegy.com/docs/index

 

Roles

Zenegy uses roles to determine access to modules and views.

 

  • Owner
  • Employee
  • Admin - Limited Access
  • Admin - Full Access
  • Accountant - Limited Access
  • Accountant - Full Access
  • Department Manager

 

Scope

To decide access for each role you'll need to indicate scope for each module.

  • Reading permissions
  • Read and write permissions

 

Modules

  • scope:mileage
  • scope:companyDetails
  • scope:absence
  • scope:payroll
  • scope:employee
  • scope:applicationMarket

 

Webhooks

Webhooks is not available just yet. But they will be. 

 

Status

0 = Pending
1 = Approved
2 = Rejected
3 = Archived

Nets Agreement Status

1 = Approved
2 = Pending 
3 = Inactive

Absence

0 = Vacation
1 = Illness 
2 = Vacation freeday
3 = Care day 
4 = Child ill 
5 = Maternity without salary 
6 = Maternity with salary
7 = Training and education