TaxDocumentCommitted
Published by this service. Tax committed (reportable). Invoices and credits both raise this; check
Document.Kind.GlCategory/GlAccounttell the ERP sync where the tax posts.
When
A document (invoice, bill or credit) became reportable: committed straight away, committed later through POST .../commit, or committed by the recalculation job when a PendingTax document with commit: true calculates.
What to do with it
This is the event the future Sage sync consumes. Post totalTax (or totalTaxFunctional) to the GL account in glAccount under glCategory. Credits arrive with kind Credit and negative amounts (lines and totals), so summing invoices and credits per period nets out, the same as in the sales-tax report.
Routing
Exchange pvc.integrations.tax-document-committed (fanout). Bind your own queue to it. The JSON envelope's messageType is urn:message:Integrations.Contracts.Events:TaxDocumentCommitted.
Fields
| Field | Type | Meaning |
|---|---|---|
document | TaxDocumentDto | The committed document. |
glCategory | GlCategory | Sales tax payable (AR) or use tax accrual (AP). |
glAccount | string? | The entity's GL account for that category, if configured. |
occurredAt | DateTimeOffset | When it was committed. |