Skip to main content
Avalara Help Center

How can AvaTax for Salesforce be modified to use line level addresses?


Our Apex developer needs to alter the AvaTax for Salesforce integration to calculate tax with each product using a different ship to address. Can this be done by extending classes, or does the AvaTax Apex SDK need to be used?




  • This can be done by extending the classes in AvaTax for Salesforce, or by using the Apex SDK. 
    • It is a matter of how you want to model it.
  • We recommend adding custom fields to the OpportunityLine class, then extending the method that generates the GetTaxRequest object to use those addresses in the Line class.

Note: This is simply the general approach we recommend. Our development team will be providing some sample code in the future.