# Location code

Source: https://developer.avalara.com/vat-marketplace/transactions/certification-requirements/location-code/

**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.

[![Closed](https://avalara-devdocs-prod.mcoutput.com/vat-marketplace/Skins/Default/Stylesheets/Images/transparent.gif)View example](javascript:void\(0\);)

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