sale.cancelled
Caracol canceló una venta (CFDI cancelado o ticket). Constanza CONTRA-ASIENTA la póliza de ingreso y la de COGS de esa venta — nunca las borra ni las edita. Registrado en S827: el evento vivía en apps.json y en el despachador de Constanza (handlers/sales.ts handleSaleCancelled) desde S779b, pero nunca se dio de alta aquí. S928: hoja también lo emite (cancelar una venta cobrada que Constanza ya asentó; spec docs/superpowers/specs/2026-10-11-hoja-constanza-costura-de-venta-design.md §3.3).
Senders
caracolhoja
Receivers
constanza
Data schema
Each field maps to a type hint. | null indicates an optional field.
{
"tenantId": "string",
"saleId": "string",
"branchId": "string (optional)",
"cancelledAt": "string (ISO datetime, optional)",
"cancelledBy": "string | null (optional)",
"cancelReason": "string | null (optional) — 'cfdi_cancel_01'..'04' · 'ticket' · 'remediacion'; informativo",
"invoiceId": "string | null (optional)",
"invoiceUuid": "string | null (optional)",
"total": "number (optional)",
"subtotal": "number (optional)"
}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.
{
"tenantId": "example-tenantId",
"saleId": "example-saleId",
"branchId": "example-branchId",
"cancelledAt": "2026-04-17T12:00:00.000Z",
"cancelledBy": "example-cancelledBy",
"cancelReason": "example-cancelReason",
"invoiceId": "example-invoiceId",
"invoiceUuid": "example-invoiceUuid",
"total": 0,
"subtotal": 0
}See also
Generated from ecosystem-sdk/packages/mcp-server/src/registry/events.json. Do not edit by hand.