As soon as an employee clocks in on your system, you will need to create a new time punch object in 7shifts using the above request.
This newly created punch will need to be updated for all subsequent break/clock out actions, so please be sure to store & map the ID from the response of the time punch that just got created. This ID will be the identifier that you will use in the next section for PUT requests to update this time punch.
Note: Please ensure that you are using the correct department_id & location_id that the role is actually associated to. This endpoint doesn’t validate whether the role_id belongs to the specified department_id & location_id or not. Failure to specify the appropriate department & location IDs will result in inaccurate reporting in 7shifts.
In the above example, the employee with user ID 246800 is clocking in for role ID 135790, which belongs to department ID 98765, which in turn belongs to location ID 12345.