booking.cancelled
A booking has been cancelled. PD-115 (S178-inverse fingerprint): goodbay added as sender — Colectiva's handleBookingCancelled handler at /api/ecosystem/webhooks/+server.js:960 was wired end-to-end but no goodbay producer fired the event, surfacing as a dormant emitter in the S327 audit. Goodbay emits from /api/bookings/[id]/+server.ts after the cancel batch commits.
Senders
plenuragoodbay
Receivers
colectiva
Data schema
Each field maps to a type hint. | null indicates an optional field.
json
{
"bookingId": "string",
"propertyId": "string (goodbay) | absent (plenura)",
"propertyName": "string (goodbay) | absent (plenura)",
"guestId": "string (goodbay) | absent (plenura)",
"ownerId": "string (goodbay) | absent (plenura)",
"clientId": "string (goodbay alias for guestId — handler-shape) | absent (plenura)",
"cancelledBy": "string (user uid who triggered cancel)",
"cancelledAt": "string (ISO timestamp)",
"cancelReason": "string (policy decision label)",
"cancellationPolicy": "string ('flexible' | 'moderate' | 'strict') (goodbay)",
"priceCents": "number (original price in cents — handler-shape)",
"priceInCoins": "number (goodbay-native)",
"refundAmount": "number (cents) (plenura legacy)",
"refundAmountCents": "number (goodbay)",
"refundAmountInCoins": "number (goodbay-native)",
"refundAmountMxn": "number (goodbay)"
}Example payload
The following is a synthetic payload that matches the schema. Production payloads are signed with HMAC-SHA256 and delivered to each receiver's registered webhook endpoint.
json
{
"bookingId": "example-bookingId",
"propertyId": "goodbay",
"propertyName": "goodbay",
"guestId": "goodbay",
"ownerId": "goodbay",
"clientId": "goodbay alias for guestId — handler-shape",
"cancelledBy": "example-cancelledBy",
"cancelledAt": "example-cancelledAt",
"cancelReason": "example-cancelReason",
"cancellationPolicy": "'flexible'",
"priceCents": 10000,
"priceInCoins": 0,
"refundAmount": 10000,
"refundAmountCents": 0,
"refundAmountInCoins": 0,
"refundAmountMxn": 0
}See also
Generated from ecosystem-sdk/packages/mcp-server/src/registry/events.json. Do not edit by hand.