# Set up an Avalara client as a merchant selling on a marketplace

Source: https://developer.avalara.com/vat-marketplace/configure-avatax/set-up-avalara-client-as-a-merchant/

From July 2021, marketplaces may become the deemed supplier when they facilitate certain cross-border B2C transactions of their third-party sellers. They’ll therefore be liable to collect, report, and pay the VAT due from the consumer. While the marketplace takes on the VAT rights and obligations of the sale, they don't take on other obligations, such as product liabilities. This new rule comes into force as part of the ecommerce package of reforms to help simplify VAT compliance and tackle online VAT fraud. For more information, refer to our [2021 EU marketplaces VAT deemed supplier rules](https://www.avalara.com/vatlive/en/vat-news/2021-eu-marketplaces-vat-deemed-supplier.html) blog.

This section describes how to add an Avalara client as a merchant that sells products on a marketplace. These steps assume that you have already created and activated a [default company](https://knowledge.avalara.com/bundle/bla1700809896571_bla1700809896571/page/arg1697013691898.html).

**Important**:   
If this location will sell products within the US and/or Canada, be sure to understand how this location will handle sales tax. As the seller, will you pay tax on sales, or will the marketplace pay tax?

1.  In AvaTax, navigate to **Settings > Company Locations and Marketplaces**.

2.  Select **Add a Location**.

3.  Add the location information:

    1.  Specify a **Location Code**. This location code will be specified in transactions in the `locationCode` and `reportingLocationCode` fields. If a code already exists for this location in your business application, then it's important to enter that same code here.

    2.  Specify a user-friendly name for what you call your location.

    3.  Select **Marketplace** under **Type**.

    4.  Specify whether the company sells exclusively outside of the US and Canada.

    -   If you enable this checkbox, then skip to step 4.

    -   If you don’t enable this checkbox, then specify how this marketplace handles sales tax.

4.  Enter the date range for when you want to start creating transactions for this location and for when this marketplace should expire. **Note**: When running transactions against this location, be sure that the transaction date is within this date range.

5.  Optionally enter [attributes](https://knowledge.avalara.com/bundle/dqa1657870670369_dqa1657870670369/page/Product_service_attribute_guidelines.html) for your location.

6.  Select **Save this location**.

You now have a location set up within your company profile. When creating transactions for this location, use the `locationCode` field in the address object and the `reportingLocationCode` field at the document level, and AvaTax will automatically pull in the attributes that you included in step 5 above. In addition, using location codes allows you to create location-specific reports and to filter by location code on the **Transactions** page.