# Override a transaction

Source: https://developer.avalara.com/avatax-for-ap/pqp6192206528280/

# Override a transaction

Learn how to use the TaxOverride method in AvaTax to override calculated tax at the document or line level.

AvaTax provides a [TaxOverride](https://developer.avalara.com/api-reference/avatax/rest/v2/models/TaxOverrideModel/) method for overriding calculated tax. This method can be specified at either the document level or line level of a transaction.

When creating transactions that will calculate Use Tax, use a `taxAmount` override and specify the `type` as `VendorChargedTax`. This setting determines how AvaTax will handle vendor-charged tax. Usually, this override is done at the document level. It's possible to specify a vendor-charged tax override at the line level. If you specify a vendor charged tax for at the line level, then you must specify this for all line items. You'll receive an error if you have multiple line items but only specify a vendor-charged tax override for 1 line. If your additional lines don't require an override, pass a vendor-charged tax override with a tax amount of $0.00.

## Example

```
...,
  "taxOverride": {
    "type": "VendorChargedTax",
    "reason": "VCT Reason",
    "taxAmount": "42"
  },
  ...
```