Api doc


SDK's


Api Modules

staff.positions



Supported Methods:

GET
Params
  • token (Required): valid token
  • employee_id (Required): varchar


Documentation

In Humanity, individual work schedules are labeled by ‘Positions’ that are grouped by ‘Locations'. For more about Positions and Locations please visit our Help Center.

The staff.positions module lists out all of the positions that are assigned to a specific employee and his/hers payroll information. Level 5 is required in order to fetch this data meaning that even employees within your store will be able to use this module.

--

Parameters:

  1. "employee_id": required //Unique employee id (integer)
  2. "token": "xxxxxxx" //Valid token is required

You can read here how to get your token.

Example Request:

  1. {
  2. "method":"GET",
  3. "module":"staff.positions",
  4. "request":{
  5. "employee_id":"2982006"
  6. }
  7. }

Example Response:

  1. {
  2. "status":1,
  3. "data":[
  4. {
  5. "id":37946718,
  6. "employee_id":2982006,
  7. "position_id":1411080,
  8. "created_by":2829173,
  9. "date":1478614186,
  10. "payroll_ratecard_id":null,
  11. "payroll_wage":null
  12. },
  13. {
  14. "id":38023410,
  15. "employee_id":2982006,
  16. "position_id":1419216,
  17. "created_by":2829173,
  18. "date":1479207991,
  19. "payroll_ratecard_id":null,
  20. "payroll_wage":null
  21. },
  22. {
  23. "id":38023419,
  24. "employee_id":2982006,
  25. "position_id":1419217,
  26. "created_by":2829173,
  27. "date":1479208086,
  28. "payroll_ratecard_id":null,
  29. "payroll_wage":null
  30. }
  31. ],
  32. "token":"xxxx"
  33. }
  34. }