--- title: companyAssignCustomerAsContact - GraphQL Admin description: Assigns the customer as a company contact. api_version: 2025-10 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/companyassigncustomerascontact md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/companyassigncustomerascontact.md --- # company​Assign​Customer​As​Contact mutation Requires `write_customers` access scope or `write_companies` access scope. Also: The API client must be installed on a Shopify Plus store. Assigns the customer as a company contact. ## Arguments * company​Id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the company to assign the contact to. * customer​Id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the customer to assign as the contact. *** ## Company​Assign​Customer​As​Contact​Payload returns * company​Contact [Company​Contact](https://shopify.dev/docs/api/admin-graphql/latest/objects/CompanyContact) The created company contact. * user​Errors [\[Business​Customer​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/BusinessCustomerUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### companyAssignCustomerAsContact reference ## Mutation Reference ```graphql mutation companyAssignCustomerAsContact($companyId: ID!, $customerId: ID!) { companyAssignCustomerAsContact(companyId: $companyId, customerId: $customerId) { companyContact { # CompanyContact fields } userErrors { field message } } } ``` ## Input ##### Variables ```json { "companyId": "gid://shopify//10079785100", "customerId": "gid://shopify//10079785100" } ```