Staff ('created', 'updated', 'deactivated', 'deleted', 'reactivated')

Supported staff events:

  • created
  • updated
  • deactivated
  • deleted
  • reactivated
curl --location --request POST '/platform/v1/webhook/subscribe' \
--header 'Authorization: "Bearer API_TOKEN"'\
--header 'Content-Type: application/json' \
--data-raw '{
"event": "staff/created",
"target_url": "URL"
}'
{
  "entity_name": "staff",
  "event_type": "created",
  "data": {
    "business_id": "9i87qbjv6kec4kua",
    "staff_id": "h8hfrzuiac4e2uad",
    "first_name": "new",
    "last_name": "staff",
    "display_name": "New Staff 2",
    "phone": 0119652201,
    "email": "[email protected]",
    "role": "user",
    "created_at": "2021-08-15T14:56:41.000+03:00"
  }
}