Skip to main content

TaxDocumentCommitted

Published by this service. Tax committed (reportable). Invoices and credits both raise this; check Document.Kind. GlCategory/GlAccount tell 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​

FieldTypeMeaning
documentTaxDocumentDtoThe committed document.
glCategoryGlCategorySales tax payable (AR) or use tax accrual (AP).
glAccountstring?The entity's GL account for that category, if configured.
occurredAtDateTimeOffsetWhen it was committed.