Labor shift updated
EVENT
labor.shift.updated
Published when a Shift is updated.
Permissions
TIMECARDS_READ
Name | Description |
---|---|
merchant_
|
The ID of the target merchant associated with the event. |
type
|
The type of event this represents. |
event_
|
A unique ID for the webhook event. |
created_
|
Read only Timestamp of when the webhook event was created, in RFC 3339 format. Examples for January 25th, 2020 6:25:34pm Pacific Standard Time: UTC: 2020-01-26T02:25:34Z Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00 |
data
|
Data associated with the event. |
Examples
Example payload
{
"merchant_id": "6SSW7HV8K2ST5",
"type": "labor.shift.updated",
"event_id": "aeaaa5f6-c4fd-4e93-b688-71b50706266f",
"created_at": "2019-10-29T17:26:16.808603647Z",
"data": {
"type": "labor",
"id": "PY4YSMVKXFY9E",
"object": {
"shift": {
"id": "PY4YSMVKXFY9E",
"employee_id": "AnuhZhsN95oT8f-eCn9D",
"team_member_id": "AnuhZhsN95oT8f-eCn9D",
"location_id": "NAQ1FHV6ZJ8YV",
"timezone": "Etc/UTC",
"start_at": "2019-01-25T08:11:00Z",
"end_at": "2019-01-25T18:11:00Z",
"wage": {
"title": "Barista",
"hourly_rate": {
"amount": 1100,
"currency": "USD"
}
},
"breaks": [
{
"id": "0EGK74E8BJF62",
"start_at": "2019-01-25T11:11:00Z",
"end_at": "2019-01-25T11:16:00Z",
"break_type_id": "REGS1EQR1TPZ5",
"name": "Tea Break",
"expected_duration": "PT5M",
"is_paid": true
}
],
"status": "CLOSED",
"version": 1,
"created_at": "2019-11-06T19:14:55Z",
"updated_at": "2019-11-06T19:14:55Z"
}
}
}
}