# Location code

Source: https://developer.avalara.com/avatax-for-vat/zcy8011126655322/

# Location code

Understand how to use location codes in place of full addresses for marketplace integrations.

This topic is specific to the VAT marketplace solution.

**Element type:** Conditional

**Endpoints/models used:** [AddressLocationInfo](https://developer.avalara.com/api-reference/avatax/rest/v2/models/AddressLocationInfo/), [LocationModel](https://developer.avalara.com/api-reference/avatax/rest/v2/models/LocationModel/)

If your application supports specifying marketplace location codes in place of full addresses, then your integration must also provide this. This can be specified at the company level using the `IsMarketplace` parameter. Otherwise, the company's location code can be included in the address of a transaction using the `locationCode` field. This field allows you to quickly use the address of an existing [LocationModel](https://developer.avalara.com/api-reference/avatax/rest/v2/models/LocationModel/) object instead of having to retype the address completely. When using this field, be sure that the company's location code was created using `"AddressTypeId": "Marketplace"`.

This field doesn’t affect the behavior of transactions that must be filed on location-based tax returns. To specify how a transaction will be reported on location-based tax returns, use the `reportingLocationCode` field.

**Example**

```
...,
"addresses": {
  "shipFrom":{
    "locationCode":"UK-Marketplace"
  },
...
```