AvaTax for Communications
Communications REST v2 Dev Guide
Getting Started
Calculate Taxes
Commit/Uncommit
Customizing Transactions
Account Customizations
Transaction Use Cases
- Simple Request
- Multi-line Request
- Jurisdiction Determination
- Interstate/Intrastate Determination
- Tax Override
- Safe Harbor Override
- Private Line
- Proration
- Transaction Information
- Exclusions
- Transaction-Level Commit/Uncommit
- Invoice Date
- Invoice Mode
- Optional Fields
- Adjustments
- Tax Inclusive
- Displaying Tax Results
- Quantity
- Request Config
Exemptions
Sales and Use
Jurisdiction Determination Use Cases
Reference
Calculating Tax Offline
AvaTax for Communications Use Cases
FAQ
Chapter 1.2 - Authentication
AvaTax for Communications REST v2 supports basic access authentication. Use a Base64 encoded username:password to authenticate.
Required Headers
These items must appear in your request header:
| Key | Value |
|---|---|
Authorization | Basic "{encoded username:password}" |
client_id | Unique identifier for your company. Avalara provides this during account creation. Your Client ID is the same across all environments. |
Content-Type | application/json |
Encode your Username and Password
Your Customer Portal "{encoded username:password}" is encoded in Base64. For example, if your username isfirst.last@avalara.com and your password is secretpassword!, use Zmlyc3QubGFzdEBhdmFsYXJhLmNvbTpzZWNyZXRwYXNzd29yZCE= for basic authentication.You can encode a plaintext string to Base64 in Windows Powershell using the following script:# Encode a string to Base64[System.Convert]::ToBase64String( [System.Text.Encoding]::UTF8.GetBytes("first.last@avalara.com:secretpassword!"));Note
Different factors can impact your "{encoded username:password}", namely different username capitalization. Usernames are not case sensitive, but passwords are. Base64 encoded values for usernamesfirst.last@avalara.com and First.Last@avalara.com are different but are treated as being identical behind the scenes during authentication. Base64 encoded values for passwords secretpassword! and SecretPassword! are different and cause authentication to fail because the password is not what is expected.