Void and Recreate a Transaction
A 3-step recipe with Avalara. We can help you get access.
Recipe · 3 steps
Void and Recreate a Transaction
with Avalara · Indirect Tax Management
Void an existing transaction and create a corrected replacement.
- Retrieve the existing transaction by code to confirm it exists before voiding it.
- Void the existing transaction with the supplied reason code so it is removed from tax reporting.
- Create a corrected SalesInvoice transaction to replace the voided one.
What you'll need to have ready
- companyCode: Company code that owns the transaction.
- transactionCode: Code of the existing transaction to void.
- voidReason: Reason code for voiding (e.g. DocVoided, AdjustmentCancelled).
- customerCode: Unique code identifying the customer for the corrected transaction.
- date: Date of the corrected transaction (YYYY-MM-DD).
- line1: Ship-to street address line 1.
- city: Ship-to city.
- region: Ship-to state or province code.
- postalCode: Ship-to postal code.
- country: Ship-to two-character ISO 3166 country code.
- amount: Corrected total amount for the line item.
- taxCode: Avalara tax code for the line item.
For your developer
Arazzo workflow avalara:void-and-recreate-transaction, 3 operations: getTransactionByCode → voidTransaction → postTransactions. Specs on APIs.io.