Set up a connection to Avalara
Learn how to set up a connection to Avalara, including necessary credentials and configuration steps, to ensure seamless integration with Zuora.
Before you begin the setup process, you should have the following information:
Avalara Account Number: - This is a 10-digit number used to authenticate the API call to Avalara. It is not the Avatax Admin Console user name. You can find your Account Number at the top right of the window when you log in to the AvaTax Admin Console.
- Avalara License Key:- This is a 13-character or 16-character string used to authenticate the API call to Avalara. If you ever reset your license key, you must update it in Zuora too, or else calls to Avalara will fail. See License keys for more information on how to find or reset your license key.
- Avalara User Name and Password: - These are the credentials you use to log in to the AvaTax Admin Console. This user must have the correct permissions required, for example, Account Admin, in order for the Zuora/Avalara integration to function correctly. See the Avalara documentation for detailed information on user permissions. To avoid duplicate records in Avalara, you must use different Avalara credentials for your Zuora Production and API Sandbox environments. For instance, invoices with the same invoice number in Zuora Production and API Sandbox map to the same document in Avalara.
- Company Code: - This is a unique code that identifies the company in the AvaTax account where the document should be posted. The maximum length allowed is 50 characters. You must have at least one of these for calls to Avalara to succeed. While the majority of users only need one Company Code, you can use multiple Company Codes in Zuora. Currently, up to 40 Company Codes defined in Avalara can be used for integration between Zuora and Avalara. Every Company Code defined in Avalara and used to post billing documents (invoices, credit, and debit memos) must be configured in Zuora. See the Company Code Identification for more information.
If an account has a Tax Company Code, that company code will be sent to Avalara instead of the one configured in the Tax Engine, potentially resulting in an error such as: The Zuora GetTax call to Avalara returned the following error(s): Company not found. Verify the CompanyCode. For example, if the company code in the Avalara tax engine is DEFAULT and the account's Tax Company Code is ABCD , then ABCD will be sent to Avalara instead of DEFAULT .
You must ensure that the account’s Company Code matches the one configured in the tax engine to avoid such errors.
- Company Id: - This is a unique identifier for the company in the Avalara database. It is a 6-digit number in Avalara production but could be a 7-digit number in the Avalara sandbox. To find your company ID, log in to the AvaTax Admin Console. Within your AvaTax account, click the Settings tab and select Company details. The Company ID can be found in the URL. You can confirm your Company ID with Avalara Support before reaching out to the Zuora team.
You can only create an Avalara tax engine from the Zuora UI. There is no API support for creating tax engines or modifying connection details. To create tax engines using APIs, see Tax Engine Settings.
To set up Avalara as a new tax engine in Zuora, perform the following steps: