# Company code

Source: https://developer.avalara.com/vat-ecom/designing/company-code/

**Element type:** Required

**Endpoints/models used:** [QueryCompanies](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Companies/QueryCompanies/)

Your integration must provide users with a way to designate the company within their account that's linked to this integration. This is done using the [QueryCompanies](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Companies/QueryCompanies/) API. This API is another also way to test your connection and is required if a Test connection button isn't provided. The response will return either the single company that you configured and adds that to the form in your UI, or if you have multiple, it will return a dropdown list of all of your configured companies.

![A screenshot showing an example AvaTax configuration window.](https://avalara-devdocs-prod.mcoutput.com/vat-ecom/Resources/Images/DevDot/avatax_settings_504x305.png)  

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

```
curl  -X GET  -H 'Accept: application/json'  -H 'Authorization: Basic aHR0cHdhdGNoOmY='  'https://sandbox-rest.avatax.com/api/v2/companies' 
```