Configuring Avalara AvaTax Service for Salesforce B2B Commerce Cloud

A Step by Step Guide to Integrate Avalara into a

B2B eCommerce CloudCraze Solution


CloudCraze (CC) offers a B2B eCommerce implementation for Salesforce. Even though CloudCraze is an unrivaled product within the Salesforce ecosystem, and very complete out of the box, there are always external components that an eCommerce package needs to integrate with. Most often a B2B eCommerce system requires external payment processors or tax calculation services, along with shipping services like UPS and Fedex.

Avalara is a premier sales tax automation service. While its portfolio of products and services covers the spectrum from VAT calculations to sales tax to compliance across all states, it offers integrations with numerous eCommerce platforms and technologies. These integrations boil down to a specific client side connector on a given platform to the Avalara service. Usually a platform vendor will produce its own plug-in for Avalara.  Occasionally Avalara itself may create a plug in, if needed. For many client side integrations Avalara offers a marketplace of connectors that are produced by 3rd parties. (Side-note: XCentium has created an Avalara plug-in for Sitecore)

This article describes the steps necessary to connect CloudCraze to the Avalara tax service via a CloudCraze managed package.  


  1. Accesss to CloudCraze wiki and documentation (i.e. dev account with CloudCraze)
  2. Create an Avalara developer account - , make note of the account id and company code issued by Avalara. This step also creates a sandbox for your dev account (screenshot below) where the account id and company code will be needed. 

Setting up an Avalara Tax development account

Screenshot Fig 1.0: Shows the Avalara sandbox account’s CompanyCode and Account ID, critical information for AvaTax setup


CloudCraze Setup:

Given that you have established a CloudCraze developers account to obtain access to the dev docs as part of the pre-requisites, the CC setup consists of

  • Installing the CC managed package for Avalara (AvaTax Svs.)
  • Configuring the installation

Installation of Avalara on CloudCraze

Step Step 1

Step Step 2

Step Step 3
- Go to CCAdmin
- Select the specific store you are working on in CloudCraze 
- Edit the Configuration Setting section of the store
- In the Module drop down select CC Avalara
- Click on 'Override' link of 'Avalara CompanyCode' and add the previously saved CompanyCode


Avalara Tax Company Module within CloudCraze


Screenshot Fig 1.1: Shows CC Avalara Module’s CompanyCode being set


-Finally rebuild the Configuration Cache of CloudCraze. 


Rebuilding the Configuration Cache within CloudCraze


Screenshot Fig 1.2 Shows Rebuilding cache step


The last screenshot below illustrates that CloudCraze calculates and renders the taxes for a given order.


CloudCraze computes tax with Avalara Tax Service integration


Screenshot Fig 1.3: Shows that AvaTax installed in Cloudcraze SF org calculates Tax


Every commerce implementation has to calculate taxes. By being able to integrate very easily with Avalara AvaTax services, CloudCraze gives developers a slam dunk solution that can be rolled out very quickly. 


For information on more CloudCraze Services,

please click here



Sitecore 144
Commerce 100
Web Development 100
Sitecore Commerce 83
Sitecore Experience Commerce 9 64
Sitecore Experience Commerce 59
Content Management 55
eCommerce 48
B2B eCommerce 42
Sitecore Experience Platform 39
Sitecore Platinum Partner 39
Architecture 34
Insite 29
User Experience 26
Strategy 22
B2C eCommerce 21
B2B Commerce Blogs 21
commerceconnect 21
CloudCraze 20
SaaS (Software as a Service) 20
Cloud 17
Commerce Server 17
Salesforce B2B Commerce Cloud 16
Mobile 13
Search 13
Plugins 12
Analytics 12
Application Development 12
Digital Transformation 11
Sitecore Symposium 11
Helix 10
Social 8
Business Process 7
Authentication 7
5 Reasons 7
BI and Big Data 6
Data Visualization 6
Sitecore Presentation 6
Coveo 6
NET Development 5
Microsoft Azure 5
Automation 5
Front-End Development 4
SaaS (Software as a Service) 4
Digital Strategy 4
Brightcove 4
Press Release 4
Avalara Tax 3
Sitecore Experience Accelerator (SXA) 3
Sitecore Layouts 3
Video 3
Multi-site 3
Multi-lingual 3
Accessibility 3
Habitat 3
Vault 3
Identity 2
Managed Services 2
Cryptocurrency 2
Sitecore Forms 2
Sitecore Experience Commerce 9 Promotions 2
Uncategorized 2
Conversational Commerce 2
Sitecore SaaS 2
Security 2
Unit Testing 2
Headless Architecture 2
Sitecore Experience Awards 2
Google 1
Content Delivery Network 1
Configure Price Quote 1
Blockchain 1
Coupons 1
Sitecore Rss 1
Artificial Intelligence 1
Machine Learning 1
Okta 1
RFP Process 1
Flex Accelerator for Sitecore 1
Reviews 1
Page Labels 1