1. Home
  2. Docs
  3. Schedule Enforcement
  4. Check for Scheduled Shifts
  5. Putting it all together

Putting it all together

Now that the structure of the request and the concept of grace period has been covered, it’s time to put it all together.

These requests will need to be made to the 7shifts API at the of a user clocking in. This is what a simple flow would look like, for example, if an employee is clocking in exactly at the scheduled shift start time:

  1. User clocks in on your system
  2. Your system makes a request to the /shifts/scheduled endpoint
  3. The response you receive contains a shift
  4. Employee’s clock-in action is completed on your system

You may also want to build failure logic for times when your system isn’t able to reach the 7shifts API, as this schedule enforcement integration won’t be effective in that event.

For such cases, you may want to mark any clock-ins that happened with an incomplete schedule enforcement in some way within your system to denote the admin/manager that schedule enforcement did not take place for that clock-in.