Originally written by John Hardwick, last updated Oct 24, 2023, on the Swan Retail knowledge base (FRS).
This document is based on SwanFRS release 1201
To use this feature you will need to have a contract with Avalara Software.
Primarily for the US market, this guide details how to configure and use the Avalara Tax calculation interface. You will need an valid / active Avalara account to use this feature.Overview
SwanFRS can link to Avalara AvaTax which is a cloud-based solution automating transaction tax calculations and the tax filing process. Ava Tax provides real-time tax calculation using tax content from more than 12,000 US taxing jurisdictions and over 200 countries, ensuring your transaction tax is calculated based on the most current tax rules.
Please consult your Account Manager, Projects team if you wish to embed Avalara AvaTax calculation software within SwanFRS.
Configuration
Swan Configuration
Once the connection details are known Swan staff will set up your system with the following data elements.
Application settings configuration files needs the following lines adding.
<add key="AvalaraTaxAPI" value="username=xxxx;password=yyyyy;xavalaraclient=zzzz" /> “AvaTaxUpdate URL:” field is the hyperlink field to access Avalara https://sandbox.integrations.avalara.com/#/
SwanFRS will require connection details to configure the communication protocols.
Application Parameters
Menu Location: System Admin > Admin > Set Up Application Parameters
|
TAX_CALCULATOR |
Specify Avalara from the pick list Choose from
|
|
TAX_COUNTRY |
Specify the country of Operation For example: US |
|
ADDRESS_VERIFICATION |
Set to the address look up software used Choose from
|
Ensure the application changes have been Updated once changed.
Company Controls
Menu Location: System Admin > Sales > Set Up Company
See Set Up Company
For AvaTax to operate, a company must be set up.
Avalara AvaTax Configuration
Menu Location: System Admin > Sales > Set Up Avalara Tax Configuration
To enable AvaTax to generate taxes, it is necessary to configure the interface.
Certain elements of this page must be configured by SwanFRS.
|
Field |
Details |
|
Tax Calculator |
This field is controlled by the TAX_CALCULATOR application parameter and is not user amendable. |
|
Account ID |
Specify your accounts ID. Provided during your AvaTax account activation process. |
|
Account Type |
Specify your Account Type. Provided during your AvaTax account activation process. There are two fields on the AvalaraTaxConfig table called SandboxURL and ProductionURL, only one of these is displayed depending on “Use Production URL:” on the config screen. |
|
License Key |
Specify your licence key as provided by Avalara |
|
Use Production URL |
Tick to record transactions on the ‘live’ Avalara system. Leave unticked when testing the connection and data interchange. |
|
Sandbox / Production URL |
The URL use to communicate with Avalara. The screen with show the URL to the Sandbox if the Use Production URL is unchecked or the Production system if ticked. This field is configured by Swan and not operator amendable. Clicking this link allows access to AvaTax’s transaction log (subject to successfully logging in) where it is possible to view transactions posted to the sandbox or production system. |
|
Company Code |
Autopopulated once the connection data has been verified. This field is set when the company is selected and not directly modifiable by the operator. |
|
User Name and Password |
Autopopulated once the connection data has been verified. This field is configured by Swan and not operator amendable. |
|
Disable Address Validation |
Reference only, not amendable. This field is configured by Swan and not operator amendable. |
|
Disable AvalaraTax Calculation |
Reference only, not amendable. This field is configured by Swan and not user amendable. |
|
Request Timeout (Seconds) |
Timeout for HTTP Web Request (Default 30 seconds) |
|
Debug Level |
Select from
|
|
Commit Invoice Transactions |
Enables tax document submission to Avalara’s AvaTax service for record keeping. With this setting enabled, transactions will be posted and committed to the AvaTax Admin Console. Swan sends Sales Order, Sales Invoice, Return Order and Return Invoice transaction types to AvaTax. The “Invoice” types are when the goods have been delivered and these are the transactions that can be committed. “Order” types are not committed, these are sent to AvaTax when items are added or amended to the sales order. |
|
Disable Logging |
Tick to switch off AvaTax Audit |
Once configured use the PING PRODUCTION / PING SANDBOX button to test connection to AvaTax.
Successful connections will result in the Reply: status showing OK and sets Authentication to True
Having established connection click the COMPANY CODE LOOKUP button, this will list the account IDs linked to the connection data.
To finalize the configuration, Click the appropriate Company Code this populates the Company Code, user, and password in the configuration list.
SwanFRS is not configured ready for operation.
Tax Exempt
It is possible to mark the customer as Tax Exempt, this is achieved by setting the appropriate pre-specified Exempt Reason and a reference when creating / amending the customer record.
Changing the tax status can be optionally applied to all ‘open’ orders and all future orders.
AvaTax provide the following list of Exempt Reasons.
A - Federal government (United States)
B - State government (United States)
C - Tribe / Status Indian / Indian Band (both)
D - Foreign diplomat (both)
E - Charitable or benevolent org (both)
F - Religious or educational org (both)
G - Resale (both)
H - Commercial agricultural production (both)
I - Industrial production / manufacturer (both)
J - Direct pay permit (United States)
K - Direct mail (United States)
L - Other (both)
M - Not Used
N - Local government (United States)
O - Not Used
P - Commercial aquaculture (Canada)
Q - Commercial Fishery (Canada)
R - Non-resident (Canada)
Tax Codes
It is possible to set tax rates against specific products groups or assign to a specific SKU or set via an attribute.
Instructions re setting tax rates are covered in the SwanFRS Implementation Guide, however it may be necessary to set specific tax rates against the SKU. This is achieved either in the product import spreadsheet or within Set Up Product Pricing.
Where using attributes, the Attribute Name must be ExternalTaxCode with the appropriate value set.
A list of available AvaTax system tax codes can be viewed at the following site.
https://taxcode.avatax.avalara.com/
For household goods, the following URL may be useful.
https://taxcode.avatax.avalara.com/tree?tree=household-products&tab=interactive
Operation
Once configured, SwanFRS will automatically calculate taxes for sales once the customer has linked to the sale.
It is possible to identify the purchase of products prior to allocating the customer. SwanFRS will produce the following message in these circumstances, but will allow the sale to proceed.
In these situations, SwanFRS will calculate taxes once the customer has been added to the sale.
SwanFRS will recalculate taxes if –
The method of final delivery changes
The customer’s delivery address changes
SwanFRS also recalculates taxes at the point of confirming the delivery / Finalizing the sale. i.e., At the point when the goods are ‘delivered’ to the customer. This action forms the tax point date and is the stage when Ava Tax records the sale activity.
There are no variances to the sequence or controls applied to the sales order progression operating with Ava Tax beyond confirming the customer’s address.
It is not possible to confirm delivery of a sales order where taxes are not calculated.
Validating the Customer’s Address
When adding new customers, or changing addresses, is it necessary to validate the customers address.
Having specified the customer’s address, click the VERIFY ZIP CODE button. This will either return a warning message, should the address be incorrect or missing relevant detail (The message will advise as to the issue), or the screen will display a list of matching addresses (at the foot of the page)
Click Select to confirm the address, followed by the ACCEPT button.
Failure to follow this procedure will result in the ‘unable to calculate taxes’ warning displaying whenever the sales order is processed.
Files from the Confluence page
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article