BookingWebhookHandler
Component Detail
Infrastructure
medium complexity
backend
0
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
The serverless function or static-site API route that receives booking form payloads and forwards them to the sales team. It validates the incoming request, sanitizes fields, and relays the data via email or a third-party notification service. Requires no persistent database and runs without authentication.
booking-webhook-handler
Sources & reasoning
Line 337 explicitly names the demo booking form as a Sales Website MVP deliverable, specifying email/webhook submission with no login. Line 335 confirms it is in the Sales Website MVP scope. The blueprint marks this feature [MVP]. Target release MVP is directly evidenced by the phase 1 scope section.
-
docs/source/likeperson.md · line 337Enkelt demo-booking-skjema (sender til e-post/webhook, ingen pålogging)
-
docs/source/likeperson.md · line 223Demo booking form
-
docs/source/likeperson.md · line 335Product Sales Website (MVP scope):
Responsibilities
- Accept POST requests containing booking form payloads
- Validate and sanitize incoming fields to prevent abuse
- Forward the booking details to the configured email address or notification service
- Return structured HTTP responses indicating delivery success or failure
- Log submission events for basic operational observability
Interfaces
POST /api/booking: (req: BookingRequest) => BookingResponse
forwardToEmail(payload: BookingPayload): Promise<void>
sanitizePayload(raw: unknown): BookingPayload