# companyId vs. companyCode

Source: https://developer.avalara.com/avatax-dm-combined-erp/about-this-guide/companyid-vs-companycode/

# companyId vs. companyCode

Document Management APIs require you to specify your `companyId` in the request URLs. If you don't know your `companyId`, you can retrieve it using one of the following methods:

-   Run the [QueryCompanies API](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Companies/QueryCompanies/). The response includes the `companyId` for each company in your account.
-   Select your company in the AvaTax UI. The `companyId` will be the second set of digits in the URL. For example: https://admin.avalara.com/cup/a/{accountId}/s/{companyId}/

[Previous](/avatax-dm-combined-erp/about-this-guide/dm-requirements)

[Next](/avatax-dm-combined-erp/about-this-guide/additional-resources)