Webhook delivery and API examples.

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

Functions

f
buildWebhookPayload

Build a consolidated webhook payload from registration entries

f
logAndNotifyRegistration

Log attendee registration and send consolidated webhook Used for single-listing 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: listing + 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_LISTING

Example listing matching the webhook example data

v
API_EXAMPLE_PACKAGE

The bundle both package examples describe: browsing lists it, and the package endpoint documents the same one in full.

v
API_EXAMPLE_PUBLIC_LISTING

The example PublicListing, produced by toPublicListing

v
API_LIST_EXAMPLE_JSON

Example list response JSON

v
API_SINGLE_EXAMPLE_JSON

Example single-listing response JSON

v
EXAMPLE_BUSINESS_EMAIL
No documentation available
v
EXAMPLE_CURRENCY
No documentation available
v
EXAMPLE_LISTING

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