Provided below is an example of an Avalara request and the corresponding response.
Avalara Request and Response
Overview
Avalara Request and Response
Request
"tax_request" : "<GetTaxRequest><DocDate>2019-11-16</DocDate><CustomerCode>11366771</CustomerCode>
<CompanyCode>12345</CompanyCode><BusinessIdentificationNo/><Client>Aria Systems AvaTax Processer</Client>
<DocCode>21088436</DocCode><Addresses><Address><AddressCode>2215748</AddressCode><Line1>575 Market
St</Line1><City>San Francisco</City><Region>CA</Region><PostalCode>94101</PostalCode><Country>US</Country>
</Address></Addresses><Lines><Line><LineNo>1</LineNo><DestinationCode>2215748</DestinationCode>
<OriginCode>2215748</OriginCode><ItemCode/><TaxCode/><Description>Domain</Description><Qty>1</Qty>
<Amount>100</Amount></Line><Line><LineNo>2</LineNo><DestinationCode>2215748</DestinationCode>
<OriginCode>2215748</OriginCode><ItemCode/><TaxCode/><Description>Email</Description><Qty>1</Qty>
<Amount>250</Amount></Line></Lines></GetTaxRequest>",
Response
"tax_response" : "<GetTaxResult><ResultCode>Success</ResultCode><DocCode>21088436</DocCode>
<DocDate>2019-11-16</DocDate><Timestamp>2016-01-20T17:50:36.3680923Z</Timestamp>
<TotalAmount>350</TotalAmount><TotalDiscount>0</TotalDiscount><TotalExemption>0</TotalExemption>
<TotalTaxable>350</TotalTaxable><TotalTax>26.25</TotalTax><TotalTaxCalculated>26.25</TotalTaxCalculated><TaxLines>
<TaxLine><LineNo>1</LineNo><TaxCode>P0000000</TaxCode><Taxability>true</Taxability>
<BoundaryLevel>Address</BoundaryLevel><Exemption>0</Exemption><Discount>0</Discount><Taxable>100</Taxable>
<Rate>0.075000</Rate><Tax>7.5</Tax><TaxCalculated>7.5</TaxCalculated><TaxDetails><TaxDetail>
<Country>US</Country><Region>CA</Region><JurisType>State</JurisType><JurisCode>06</JurisCode>
<Taxable>100</Taxable><Rate>0.065000</Rate><Tax>6.5</Tax><JurisName>CALIFORNIA</JurisName><TaxName>CA
STATE TAX</TaxName></TaxDetail><TaxDetail><Country>US</Country><Region>CA</Region>
<JurisType>County</JurisType><JurisCode>075</JurisCode><Taxable>100</Taxable><Rate>0.010000</Rate>
<Tax>1</Tax><JurisName>SAN FRANCISCO</JurisName><TaxName>CA COUNTY TAX</TaxName></TaxDetail>
</TaxDetails></TaxLine><TaxLine><LineNo>2</LineNo><TaxCode>P0000000</TaxCode><Taxability>true</Taxability>
<BoundaryLevel>Address</BoundaryLevel><Exemption>0</Exemption><Discount>0</Discount><Taxable>250</Taxable>
<Rate>0.075000</Rate><Tax>18.75</Tax><TaxCalculated>18.75</TaxCalculated><TaxDetails><TaxDetail>
<Country>US</Country><Region>CA</Region><JurisType>State</JurisType><JurisCode>06</JurisCode>
<Taxable>250</Taxable><Rate>0.065000</Rate><Tax>16.25</Tax><JurisName>CALIFORNIA</JurisName>
<TaxName>CA STATE TAX</TaxName></TaxDetail><TaxDetail><Country>US</Country><Region>CA</Region>
<JurisType>County</JurisType><JurisCode>075</JurisCode><Taxable>250</Taxable><Rate>0.010000</Rate>
<Tax>2.5</Tax><JurisName>SAN FRANCISCO</JurisName><TaxName>CA COUNTY TAX</TaxName></TaxDetail>
</TaxDetails></TaxLine></TaxLines><TaxAddresses><TaxAddress><Address>575 Market St</Address>
<AddressCode>2215748</AddressCode><City>San Francisco</City><Country>US</Country>
<PostalCode>94101</PostalCode><Region>CA</Region><TaxRegionId>2124190</TaxRegionId>
<JurisCode>0607500000</JurisCode></TaxAddress></TaxAddresses><TaxDate>2019-11-16</TaxDate></GetTaxResult>" &;