1. Home
  2. Docs
  3. Labor Integration
  4. Update Time Punch Data
  5. Employee Clocking Out

Employee Clocking Out

Lastly, at the end of the shift, when the employee performs a clock out action in your system, a final PUT request needs to be made to update the punch with the clocked_out time. Before making this request, you must ensure that each of the breaks associated to the punch has a breaks.out time.

The request would look as follows:

Request URL

PUT https://api.7shifts.com/v1/time_punches/1357924680

Request body

{
	"time_punch": {
		"date": "2020-07-31",
		"clocked_in": "08:00:00",
		"clocked_out": "16:00:00"
	}
}

Response

{
    "status": "success",
    "data": {
        "time_punch": {
            "id": 1357924680
        }
    },
    "message": "Punch has been saved"
}

Here’s an explanation of the new field required in the request body:

FieldTypeExplanation
clocked_outText/TimeThe local time that the user clocked out at (format: HH:MM:SS)

Bonus

  • Do employees declare their cash tips upon clocking out of their shift in your system? You can send that cash tips data to 7shifts as well by adding a tips field (positive float value, 2 decimals) in the clock-out PUT request as follows:

Request body

{
	"time_punch": {
		"date": "2020-07-31",
		"clocked_in": "08:00:00",
		"clocked_out": "16:00:00",
		"tips": 32.50
	}
}
  • Do employees write a note upon clocking out of their shift in your system? You can send the note to 7shifts as well by adding a notes field (mediumtext field) in the clock-out PUT request as follows:

Request body

{
	"time_punch": {
		"date": "2020-07-31",
		"clocked_in": "08:00:00",
		"clocked_out": "16:00:00",
		"notes": "Lorem ipsum dolor sit amet"
	}
}