# companyId vs. companyCode

Source: https://developer.avalara.com/products/ecm/integration-guides/document-management/vwa1885786130108/

Guide: Exemption Certificate Management (ECM)

# companyId vs. companyCode

Understand the difference between companyId and companyCode for AvaTax and ECM integrations.

If you’re an active AvaTax user, you may be accustomed to including the `companyCode` in request URLs. For ECM integrations, the APIs require your `companyId` in the request URLs. If you don't know your `companyId`, you can retrieve it using the [QueryCompanies](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Companies/QueryCompanies/) API. The response will include the `companyId` for each company in your account.