Webhook delivery and API examples.

Sends registration notifications to configured webhook URLs with event and attendee details. Includes example payloads for the public JSON API.

Functions

f
buildWebhookPayload

Build a consolidated webhook payload from registration entries

f
logAndNotifyMultiRegistration

Log and send consolidated webhook for multi-event registrations

f
logAndNotifyRegistration

Log attendee registration and send consolidated webhook Used for single-event registrations

f
sendRegistrationWebhooks

Send consolidated webhook to all unique webhook URLs for the given entries

f
sendWebhook

Send a webhook payload to a URL Fires and forgets - errors are logged but don't block registration

Type Aliases

T
RegistrationEntry

Registration entry: event + attendee pair

T
WebhookAttendee

Attendee data needed for webhook notifications

T
WebhookPayload

Consolidated payload sent to webhook endpoints

Variables

v
API_AVAILABILITY_EXAMPLE_JSON

Example availability response JSON

v
API_BOOK_FREE_EXAMPLE_JSON

Example free booking response JSON

v
API_BOOK_PAID_EXAMPLE_JSON

Example paid booking response JSON

v
API_BOOK_REQUEST_JSON

Example booking request body

v
API_EXAMPLE_EVENT

Example event matching the webhook example data

v
API_EXAMPLE_PUBLIC_EVENT

The example PublicEvent, produced by toPublicEvent

v
API_LIST_EXAMPLE_JSON

Example list response JSON

v
API_SINGLE_EXAMPLE_JSON

Example single-event response JSON

v
EXAMPLE_BUSINESS_EMAIL
No documentation available
v
EXAMPLE_CURRENCY
No documentation available
v
EXAMPLE_EVENT

Example inputs used by both the fixture and the test

v
WEBHOOK_EXAMPLE_JSON

Pretty-printed JSON for embedding in documentation

v
WEBHOOK_EXAMPLE_PAYLOAD

The example payload, matching what buildWebhookPayload would produce