# Company code

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

# Company code

Understand the company code element and its role in integration with Avalara APIs.

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

![avatax-settings](https://knowledge-be.avalara.com/bundle/ozz0049272407478_ozz0049272407478/page/ope4693836104636.image?_LANG=enus)

**Example**

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