Commit and refund transactions
Move a transaction through its lifecycle so records stay filing-ready.
A recorded transaction (SalesInvoice) moves through a lifecycle: it’s created, committed for reporting, and later adjusted, voided, or refunded as orders change. Each action is a dedicated endpoint scoped to a company and transaction code.
Commit
Committing marks a transaction as final so it’s included in returns and reports.
Void
Void a transaction that should never have been recorded — a cancelled order, for example. Voided documents are excluded from reporting.
Pass a code describing why:
Refund
Issue a refund against a committed invoice. AvaTax creates a linked ReturnInvoice with the reversed tax.
Choosing the right action
The order changed before shipping
Use adjust to replace the document’s lines while keeping the same transaction code and history.
The order was cancelled
Use void with the DocVoided reason so the transaction drops out of reporting entirely.
The customer returned an item
Use refund to record the reversed tax as a linked return, preserving the original invoice.
Void and refund are not interchangeable. Voiding erases the record; refunding preserves the original invoice and books an offsetting return. Choose based on whether money actually moved.

