Skip to content

🪝 Webhook Model Pro

The Webhook model manages outgoing integration feeds. These are used to send booking data to external apps like Zapier or custom endpoints when specific events occur.

Attributes

AttributeTypeDescription
idbigintPrimary key
object_idbigintReference to the CalendarSlot ID
keyvarcharFixed as webhook_feeds
valuelongtextJSON configuration of the webhook (URL, events)

Usage Examples

Creating a new webhook feed

php
use FluentBookingPro\App\Models\Webhook;

Webhook::store($calendarSlotId, [
    'url' => 'https://api.example.com/webhook',
    'status' => 'active',
    'events' => ['booking.scheduled', 'booking.cancelled']
]);