Skip to main content
Avalara Help Center

Can I use a location in the Admin Console to supply the address on a transaction using the API?

Overview

You want to populate the origin address in tax calculations by listing a location code in the address fields.

Environment

Avalara API

Resolution

  • List the Location code in the Line1 field of the address and leave all other values blank except the AddressCode :

<Addresses>

      <BaseAddress>

         <AddressCode>1</AddressCode>

         <Line1>LocationCodeA</Line1>

         <City></City>

         <Region></Region>

         <PostalCode></PostalCode>

         <Country></Country>

         <TaxRegionId>0</TaxRegionId>

      </BaseAddress>

      <BaseAddress>

         <AddressCode>2</AddressCode>

         <Line1>LoactionCodeB</Line1>

         <City></City>

         <Region></Region>

         <PostalCode></PostalCode>

         <TaxRegionId>0</TaxRegionId>

      </BaseAddress>

   </Addresses>

  • The location must be in the admin console under the company profile (Organization > Locations

 

Note: The location code can populate the address for the origin or destination address, you can list a full address for the other address.

 

 

  • Was this article helpful?