# New account workflow

Source: https://developer.avalara.com/account-provisioning/xcc3778598851142/

# New account workflow

![](https://knowledge-be.avalara.com/bundle/ewy1686163016249_ewy1686163016249/page/xbu1706916844847.image?_LANG=enus)

1.  Connect to AvaTax using the [RequestNewAccount](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Provisioning/RequestNewAccount/) endpoint. Upon successful completion:
    -   A new company is created with a company `code` of `DEFAULT`.
    -   A location code of `DEFAULT` is created based on the address provided.
    -   The applicable tax jurisdictions presiding over the `DEFAULT` location is enabled.

    -   A user is created based on the username or email provided.

2.  Display the details of the response, including:

    -   `accountId`
    -   `licenseKey`
    -   `accountDetailsEmailedTo`
    -   `createdDate`
    -   `emailedDate`

    Note

    This step can take several minutes. Don’t move on to the next step until you receive the account details, and then store the `accountId` and `licenseKey` values.

3.  Run [QueryCompanies](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Companies/QueryCompanies/).
4.  Run [ListNexusByCompany](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Nexus/ListNexusByCompany/) using the `companyId` returned in step 3.
5.  Display the nexus confirmation message. This confirms that the account is configured to calculate taxes in the correct jurisdiction or jurisdictions.