Accept Invoice Deletions
Authorizations
Service API key. Required on every endpoint except /api/v1/health.
Headers
Unique key for this webhook delivery, used for request tracing (max 36 chars). Each delivery is scheduled as its own Cloud Task rather than deduplicated by this key -- see the response's task_id for why.
Identifier of the organization/tenant that owns the invoice data.
Body
Collection of invoice-level deletions. When provided, all invoice lines for the invoice will also be marked as deleted.
Collection of individual invoice line deletions. May be supplied without invoice-level deletions or alongside them.
Response
Successful Response
Scheduling outcome for this deletion webhook delivery; semantics mirror WebhookInvoicesResponse (with 'completed' reserved for future use).
scheduled, duplicate, completed, error Cloud Tasks identifier for this delivery. Includes the organization and Idempotency-Key for traceability, but is suffixed with a random value per call -- it is not deterministic, so reusing the same Idempotency-Key across deliveries produces a different task_id each time and does not collide with (or get silently dropped in favor of) an earlier delivery.
UTC timestamp when the deletion task is scheduled to run.
Opaque key supplied via the Idempotency-Key header, echoed back for correlation (max 36 chars). Does not deduplicate deliveries -- see task_id.
1 - 36Number of invoice records included in the deletion payload.
Number of invoice-line records included in the deletion payload.
UTC timestamp when the webhook was received by the service.