Reports and reconciliation
All reports take entityId, from and to, and return JSON or, with format=csv, a spreadsheet.
| Report | Endpoint | Answers |
|---|---|---|
| Sales tax by line | GET /api/v1/reports/sales-tax | The monthly return-prep export: every committed line with job site, references and state/county/city/special rates and tax. Credits are negative, so totals net out. |
| By jurisdiction | GET /api/v1/reports/sales-tax/by-jurisdiction | Collected vs remitted, per jurisdiction. |
| Vendor-charged tax | GET /api/v1/reports/vendor-tax | AP bills where the vendor charged tax, compared with what AvaTax calculated. |
| Reconciliation issues | GET /api/v1/reports/reconciliation-issues | Differences between this service and AvaTax. |
Nightly reconciliation
tax-reconciliation compares the last 3 days of committed documents with AvaTax and records issues:
| Issue | Meaning |
|---|---|
MissingInProvider | Committed here, but not committed at AvaTax |
MissingLocally | Committed at AvaTax, but unknown here (someone else writes to that company) |
TaxMismatch | Both sides have it, with different totals |
StalePending | Still PendingTax after 24 hours |
It then publishes TaxReconciliationCompleted. Resolve an issue with POST .../reconciliation-issues/{id}/resolve.