Pike13 For Developers
Get Started
Authentication
Core API
Reporting API
Webhooks API
Announcements

Webhooks API Documentation

Event occurrence

Core API resource payload url:

Desk

GET /api/v2/desk/event_occurrences/:id

See the core api doc

Resource Attributes

data.event_occurrences[0]
idintegerEvent occurrence's ID.
event_idintegerEvent's ID.
namestringEvent's name.
descriptionstringEvent's description.
duration_in_minutesstringEvent occurrence's length of duration in minutes.
service_idintegerService's ID.
service_typestringService's Type. One of [GroupClass, Appointment, Course].
service_namestringService's Name.
location_idintegerLocation's ID.
room_idintegerEvent's Room ID.
room_namestringEvent's Room Name.
start_attimestampTimestamp for when the event occurrence starts.
end_attimestampTimestamp for when the event occurrence ends.
created_attimestampTimestamp for when the event occurrence was created.
updated_attimestampTimestamp for when the event occurrence was last updated.
updatingbooleanBoolean value of whether event is in the process of updating its underlying iCal object.
timezonestringEvent occurrence's timezone.
attendance_completebooleanBoolean value of whether event occurrence has had its attendance confirmed.
visits_countintegerInteger value of the total amount of clients enrolled.
statestringEvent occurrence's state. One of [active, canceled, deleted, reserved].
fullbooleanBoolean value of whether event occurrence is at max capacity.
visitors_can_viewbooleanBoolean value of whether visitors (without an account) can see the event.
clients_can_viewbooleanBoolean value of whether clients can see the event.
members_can_viewbooleanBoolean value of whether members can see the event.
clients_can_bookbooleanBoolean value of whether clients can enroll online for the event.
members_can_bookbooleanBoolean value of whether members can enroll online for the event.
capacity_remainingintegerEvent occurrence's remaining capacity.
anonymous_staffbooleanBoolean value of whether the names of instructors are shown in the event.
staff_membersarray

Array of people objects who are instructing this event occurrence. Empty if no instructor is currently assigned.

idintegerStaff member's ID.
namestringStaff member's name.
peoplearray

Array of people objects who are attending this event occurrence. Empty if no person is currently enrolled.

idintegerPerson's ID.
namestringPerson's name.

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 previous values within data:

data
event_occurrencesarrayArray of one event occurrence.
previousobject

Previous values of the resource. The following are supported:

location_idintegerLocation's ID.
start_attimestampTimestamp for when the event occurrence starts.
end_attimestampTimestamp for when the event occurrence ends.
attendance_completebooleanBoolean value of whether event occurrence has had its attendance confirmed.
visits_countintegerInteger value of the total amount of clients enrolled.
statestringEvent occurrence's state. One of [active, canceled, deleted, reserved].

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 previous values within data:

data
event_occurrencesarrayArray of one event occurrence.
previousobject

Previous values of the resource. The following are supported:

staff_membersarray

Array of people objects who are instructing this event occurrence. Empty if no instructor is currently assigned.

idintegerStaff member's ID.
namestringStaff member's name.

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"
        }
      ]
    }
  }
}