Avalara Developer Network Developer

TaxCodeAssociatedTaxRule

Summary

This tax code cannot be deleted because it is in use.

Example

{
  "code": "TaxCodeAssociatedTaxRule",
  "target": "Unknown",
  "details": [
    {
      "code": "TaxCodeAssociatedTaxRule",
      "number": 165,
      "message": "Cannot delete tax code associated to tax rule.",
      "description": "The Tax Code '-0-' is associated with a tax rule and cannot be deleted.",
      "faultCode": "Client",
      "helpLink": "http://developer.avalara.com/avatax/errors/TaxCodeAssociatedTaxRule",
      "severity": "Error"
    }
  ]
}

Explanation

A TaxCode can be associated with a TaxRule.

When a TaxCode is associated with a TaxRule, the TaxCode cannot be deleted.