Staff Deleted

Notifying when a staff member is deleted

The event is triggered when a staff member is deleted

Webhook authorization: using a business or directory token.

Subscribing to the Staff Deleted webhook:

curl --location --request POST '/platform/v1/webhook/subscribe' \
--header 'Authorization: "Bearer API_TOKEN"'\
--header 'Content-Type: application/json' \
--data-raw '{
"event": "staff/deleted",
"target_url": "URL"
}'

Staff Deleted Payload Example:

{
  "entity_name": "staff",
  "event_type": "deleted",
  "data": {
    "business_id": "9i87qbjv6kec4kua",
    "staff_id": "h8hfrzuiac4e2uad"
  }
}