Skip to main content
mutation

Requires write_customers access scope or write_companies access scope. Also: The shop must have access to B2B. Some operations may require additional plan capabilities.

Creates a Company for B2B commerce. This mutation creates the company and can optionally create an initial CompanyContact and CompanyLocation in a single operation. Company contacts are people who place orders on behalf of the company. Company locations are branches or offices with their own billing and shipping addresses.


Note

Creating a company without a name returns an error.


Learn more about creating companies for B2B.

•CompanyCreateInput!
required

The fields to use when creating the company.

Show input fields

Was this section helpful?

Anchor to CompanyCreatePayload returnsCompanyCreatePayload returns

•Company

The created company.

Show fields
•[BusinessCustomerUserError!]!
non-null

The list of errors that occurred from executing the mutation.

Show fields

Was this section helpful?