AvaTax for Communications REST v2 supports basic access authentication. Use a Base64 encoded username:password to authenticate.
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 |
first.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:first.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.