# Create an additional company

Source: https://developer.avalara.com/products/returns/integration-guides/managed-returns/mvk5784452617454/

Guide: Avalara Managed Returns API (U.S. and Canada)

# Create an additional company

If a client operates under multiple legal entities (for example, subsidiaries or business units with separate tax obligations), you can create additional companies under the same client account.

Each company created represents a distinct legal entity and serves as the basis for managing jurisdictional obligations, filing calendars, and return submissions.

To create a company within a client account, use the following mutation:

**View request**:

```
mutation CreateCompanies {
  createCompanies(
    input: {
      accountId: 1234567890,
      name: "Test Company",
      defaultCountry: "US",
      contacts: {
        city: "Green Bay",
        contactCode: "Default",
        title: "Test",
        line1: "1299 Main Street",
        region: "WI",
        postalCode: "54321",
        country: "US",
        email: "test@example.org",
        phone: "555-555-555"
        },
      id: 0,
      companyCode: "test-1",
      isActive: true,
      hasProfile: true,
      isReportingEntity: true,
      taxpayerIdNumber: "123654955"
    }
  ) {
    accountId
    businessIdentificationNo
    companyCode
    contacts {
      city
      email
      line1
      phone
      postalCode
      region
      title
      contactCode
      country
    }
    defaultCountry
    filingStatus
    hasProfile
    id
    inProgress
    isActive
    isDeleted
    isReportingEntity
    isTest
    mossCountry
    name
    mossId
    parentCompanyId
    roundingLevelId
    settings {
      companyId
      id
    }
    taxpayerIdNumber
    taxDependencyLevelId
    sstPid
  }
}
```

**View response**:

```
{
  "data": {
    "createCompanies": [
      {
        "accountId": 1234567890,
        "businessIdentificationNo": null,
        "companyCode": "test-1",
        "contacts": [
          {
            "city": "Green Bay",
            "email": "test@example.org",
            "line1": "1299 Main Street",
            "phone": "555-555-555",
            "postalCode": "54321",
            "region": "WI",
            "title": "Test",
            "contactCode": "Default",
            "country": "US"
          }
        ],
        "defaultCountry": "US",
        "filingStatus": null,
        "hasProfile": true,
        "id": 1234567,
        "inProgress": false,
        "isActive": true,
        "isDeleted": null,
        "isReportingEntity": true,
        "isTest": null,
        "mossCountry": null,
        "name": "Test Company",
        "mossId": null,
        "parentCompanyId": null,
        "roundingLevelId": null,
        "settings": null,
        "taxpayerIdNumber": "123654955",
        "taxDependencyLevelId": "STATE",
        "sstPid": null
      }
    ]
  }
}
```