Skip to main content
Anchor to BusinessCustomerUserError

BusinessCustomerUserError

object

Requires read_customers access scope or read_companies access scope.

An error that happens during the execution of a business customer mutation.

•BusinessCustomerErrorCode

The error code.

•[String!]

The path to the input field that caused the error.

•String!
non-null

The error message.


Was this section helpful?

•mutation

Deletes a list of companies.

•mutation

Deletes a company address.

•mutation

Adds an existing Customer as a contact to a Company. Companies are business entities that make purchases from the merchant's store. Use this mutation when you have a customer who needs to be associated with a B2B company to make purchases on behalf of that company.

The mutation returns the newly created CompanyContact that links the customer to the company. After assignment, the customer becomes a company contact who can place orders on behalf of the company with access to any catalogs, pricing, and payment terms configured for the company's locations.

•mutation

Assigns the main contact for the company.

•mutation

Assigns a role to a contact for a location.

•mutation

Assigns roles on a company contact.

•mutation

Creates a company contact and the associated customer.

•mutation

Deletes a company contact.

•mutation

Removes a company contact from a Company.

•mutation

Revokes a role on a company contact.

•mutation

Revokes roles on a company contact.

•mutation

Deletes one or more company contacts.

•mutation

Updates a company contact.

•mutation

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.

•mutation

Deletes a company.

•mutation

Updates an address on a company location.

•mutation

Assigns roles on a company location.

•mutation

Creates one or more mappings between a staff member at a shop and a company location.

•mutation

Creates a new location for a Company. Company locations are branches or offices where B2B customers can place orders with specific pricing, catalogs, and payment terms.

Creates a company location. Each location can have its own billing and shipping addresses, tax settings, and buyer experience configuration. You can assign staff members and CompanyContact objects to manage the location.

•mutation

Deletes a company location.

•mutation

Deletes one or more existing mappings between a staff member at a shop and a company location.

•mutation

Revokes roles on a company location.

•mutation

Deletes a list of company locations.

•mutation

Sets the tax settings for a company location.

•mutation

Updates a company location's information and B2B checkout settings. Company locations are branches or offices where CompanyContact members place orders on behalf of the company. Contacts must be assigned to a location through roleAssignments to place orders.

The mutation modifies details such as the location's name, contact information, preferred locale, and internal notes. You can also configure the B2B checkout experience through BuyerExperienceConfiguration settings that control whether orders require merchant review, PaymentTermsTemplate settings, shipping address editing permissions, and DepositConfiguration requirements.

Learn more about managing company locations.

•mutation

Revokes the main contact from the company.

•mutation

Updates a Company with new information. Companies represent business customers that can have multiple contacts and locations with specific pricing, payment terms, and checkout settings.

The mutation accepts the company's ID and an input object containing the fields to update. You can modify the company name, add or update internal notes, set an external ID for integration with other systems, or adjust the customer relationship start date.

Learn more about building B2B features.

Deprecated mutations


Was this section helpful?


Was this section helpful?