Skip to main content
Anchor to companyAssignCustomerAsContact

companyAssignCustomerAsContact

mutation

Requires write_customers access scope or write_companies access scope. Also: The API client must be installed on a Shopify Plus store.

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.

ID!
required

The ID of the company to assign the contact to.

ID!
required

The ID of the customer to assign as the contact.


Was this section helpful?

Anchor to CompanyAssignCustomerAsContactPayload returnsCompanyAssignCustomerAsContactPayload returns

CompanyContact

The created company contact.

[BusinessCustomerUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?