Webhooks API Documentation
Event occurrence
Core API resource payload url:
Resource Attributes
| data.event_occurrences[0] | ||||||||
|---|---|---|---|---|---|---|---|---|
| id | integer | Event occurrence's ID. | ||||||
| event_id | integer | Event's ID. | ||||||
| name | string | Event's name. | ||||||
| description | string | Event's description. | ||||||
| duration_in_minutes | string | Event occurrence's length of duration in minutes. | ||||||
| service_id | integer | Service's ID. | ||||||
| service_type | string | Service's Type. One of [GroupClass, Appointment, Course]. | ||||||
| service_name | string | Service's Name. | ||||||
| location_id | integer | Location's ID. | ||||||
| room_id | integer | Event's Room ID. | ||||||
| room_name | string | Event's Room Name. | ||||||
| start_at | timestamp | Timestamp for when the event occurrence starts. | ||||||
| end_at | timestamp | Timestamp for when the event occurrence ends. | ||||||
| created_at | timestamp | Timestamp for when the event occurrence was created. | ||||||
| updated_at | timestamp | Timestamp for when the event occurrence was last updated. | ||||||
| updating | boolean | Boolean value of whether event is in the process of updating its underlying iCal object. | ||||||
| timezone | string | Event occurrence's timezone. | ||||||
| attendance_complete | boolean | Boolean value of whether event occurrence has had its attendance confirmed. | ||||||
| visits_count | integer | Integer value of the total amount of clients enrolled. | ||||||
| state | string | Event occurrence's state. One of [active, canceled, deleted, reserved]. | ||||||
| full | boolean | Boolean value of whether event occurrence is at max capacity. | ||||||
| visitors_can_view | boolean | Boolean value of whether visitors (without an account) can see the event. | ||||||
| clients_can_view | boolean | Boolean value of whether clients can see the event. | ||||||
| members_can_view | boolean | Boolean value of whether members can see the event. | ||||||
| clients_can_book | boolean | Boolean value of whether clients can enroll online for the event. | ||||||
| members_can_book | boolean | Boolean value of whether members can enroll online for the event. | ||||||
| capacity_remaining | integer | Event occurrence's remaining capacity. | ||||||
| anonymous_staff | boolean | Boolean value of whether the names of instructors are shown in the event. | ||||||
| staff_members | array | Array of people objects who are instructing this event occurrence. Empty if no instructor is currently assigned.
| ||||||
| people | array | Array of people objects who are attending this event occurrence. Empty if no person is currently enrolled.
| ||||||
event_occurrence.upcoming
Triggers services.reminder_period_in_hours + 1 hours before event starts. If reminder_period_in_hours is not set, then this triggers 24 hours before event starts.
Payload Example
EventOccurrence Upcoming Webhook Payload
{
"topic": "event_occurrence.upcoming",
"webhook_id": 1,
"business_id": 2,
"data": {
"event_occurrences": [
{
"id": 3,
"event_id": 4,
"name": "Class with Makeups",
"description": null,
"duration_in_minutes": 60.0,
"service_id": 5,
"service_type": "GroupClass",
"location_id": 6,
"room_id": 1,
"room_name": "Main Room",
"start_at": "2020-05-29 16:00:00 -0700",
"end_at": "2020-05-29 17:00:00 -0700",
"created_at": "2020-05-28 14:00:00 -0700",
"updated_at": "2020-05-28 16:00:00 -0700",
"updating": false,
"timezone": "Pacific Time (US & Canada)",
"attendance_complete": false,
"visits_count": 4,
"state": "active",
"full": false,
"visitors_can_view": false,
"clients_can_view": true,
"members_can_view": true,
"clients_can_book": true,
"members_can_book": true,
"capacity_remaining": 18,
"anonymous_staff": false,
"staff_members": [
{
"id": 7,
"name": "Nathan Doe"
}
],
"people": [
{
"id": 4,
"name": "Kacie Dach"
}
]
}
]
}
}
event_occurrence.created
Triggers whenever a new event occurrence is created.
Payload Example
EventOccurrence Created Webhook Payload
{
"topic": "event_occurrence.created",
"webhook_id": 1,
"business_id": 2,
"data": {
"event_occurrences": [
{
"id": 3,
"event_id": 4,
"name": "Class with Makeups",
"description": null,
"duration_in_minutes": 60.0,
"service_id": 5,
"service_type": "GroupClass",
"location_id": 6,
"room_id": 1,
"room_name": "Main Room",
"start_at": "2020-05-29 16:00:00 -0700",
"end_at": "2020-05-29 17:00:00 -0700",
"created_at": "2020-05-28 14:00:00 -0700",
"updated_at": "2020-05-28 16:00:00 -0700",
"updating": false,
"timezone": "Pacific Time (US & Canada)",
"attendance_complete": false,
"visits_count": 0,
"state": "active",
"full": false,
"visitors_can_view": false,
"clients_can_view": true,
"members_can_view": true,
"clients_can_book": true,
"members_can_book": true,
"capacity_remaining": 18,
"anonymous_staff": false,
"staff_members": [
{
"id": 7,
"name": "Nathan Doe"
}
],
"people": []
}
]
}
}
event_occurrence.updated
Triggers whenever an event occurrence is updated.
The specifc list of fields that trigger an update are:
| Changes to these fields trigger a notification |
|---|
| location_id |
| start_at |
| end_at |
| attendance_complete |
| visits_count |
| state |
This topic supports
| data | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| event_occurrences | array | Array of one event occurrence. | ||||||||||||||||||
| previous | object | Previous values of the resource. The following are supported:
| ||||||||||||||||||
Payload Example
EventOccurrence Updated Webhook Payload
{
"topic": "event_occurrence.updated",
"webhook_id": 1,
"business_id": 2,
"data": {
"event_occurrences": [
{
"id": 3,
"event_id": 4,
"name": "Class with Makeups",
"description": null,
"duration_in_minutes": 60.0,
"service_id": 5,
"service_type": "GroupClass",
"location_id": 6,
"room_id": 1,
"room_name": "Main Room",
"start_at": "2020-05-29 16:00:00 -0700",
"end_at": "2020-05-29 17:00:00 -0700",
"created_at": "2020-05-28 14:00:00 -0700",
"updated_at": "2020-05-28 16:00:00 -0700",
"updating": false,
"timezone": "Pacific Time (US & Canada)",
"attendance_complete": false,
"visits_count": 6,
"state": "active",
"full": false,
"visitors_can_view": false,
"clients_can_view": true,
"members_can_view": true,
"clients_can_book": true,
"members_can_book": true,
"capacity_remaining": 18,
"anonymous_staff": false,
"staff_members": [
{
"id": 7,
"name": "Nathan Doe"
}
],
"people": [
{
"id": 4,
"name": "Kacie Dach"
}
]
}
],
"previous": {
"start_at": "2020-05-29 18:00:00 -0700",
"visits_count": 5,
"updated_at": "2020-05-28 17:00:00 -0700"
}
}
}
event_occurrence.staff_member_updated
Triggers whenever an instructor is added, removed or changed.
This topic supports
| data | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| event_occurrences | array | Array of one event occurrence. | |||||||||
| previous | object | Previous values of the resource. The following are supported:
| |||||||||
Payload Example
EventOccurrence Staff Member Updated Webhook Payload
{
"topic": "event_occurrence.staff_member_updated",
"webhook_id": 1,
"business_id": 2,
"data": {
"event_occurrences": [
{
"id": 3,
"event_id": 4,
"name": "Class with Makeups",
"description": null,
"duration_in_minutes": 60.0,
"service_id": 5,
"service_type": "GroupClass",
"location_id": 6,
"room_id": 1,
"room_name": "Main Room",
"start_at": "2020-05-29 16:00:00 -0700",
"end_at": "2020-05-29 17:00:00 -0700",
"created_at": "2020-05-28 14:00:00 -0700",
"updated_at": "2020-05-28 16:00:00 -0700",
"updating": false,
"timezone": "Pacific Time (US & Canada)",
"attendance_complete": false,
"visits_count": 6,
"state": "active",
"full": false,
"visitors_can_view": false,
"clients_can_view": true,
"members_can_view": true,
"clients_can_book": true,
"members_can_book": true,
"capacity_remaining": 18,
"anonymous_staff": false,
"staff_members": [
{
"id": 5,
"name": "Nathan Doe"
}
]
}
],
"previous": {
"staff_members": [
{
"id": 7,
"name": "Kacie Dach"
}
]
}
}
}