time_punch.edited

đŸ“˜

NOTE

To get access and subscribe to our webhooks, email [email protected].

This webhook will be triggered when a time_punch entry is modified (not including deletion). For each time_punch modified, 7shifts will send the webhook with a time_punch payload to the registered subscription endpoint.

Below is an example time_punch.edited payload. For the time_punch.edited topic, notice the created and modified timestamp will be different.

{
  "id": 1,
  "company_id": 123,
  "shift_id": 1,
  "user_id": 12345,
  "editable_punch": true,
  "role_id": 1,
  "location_id": 1,
  "department_id": 1,
  "hourly_wage": 10.00,
  "approved": false,
  "clocked_in": "2022-01-01 12:00:00",
  "clocked_out": null,
  "notes": "",
  "auto_clocked_out": false,
  "clocked_in_offline": false,
  "clocked_out_offline": false,
  "tips": 0,
  "created": "2022-01-01 15:15:00",
  "modified": "2022-01-01 16:00:0",
  "deleted": false,
  "pos_type": "web",
  "clocked_in_iso": "2022-01-01T06:00:00-06:00",
  "clocked_out_iso": null,
  "time_punch_breaks": [
      {
        "id": 100,
      	"user_id": 12345,
      	"custom_break_id": 0,
      	"paid": false,
      	"in": "2022-01-01 14:15:00",
      	"out": "2022-01-01 14:30:00",
      	"in_iso": "2022-10-01T10:15:00-04:00",
      	"out_iso": "2022-10-01T10:30:00-04:00",
      	"deleted": false
    },
  ]
}