Anchor to companyAssignCustomerAsContactcompany
companyAssignCustomerAsContact
mutation
Requires access scope or
access scope. Also: The API client must be installed on a Shopify Plus store.
Assigns the customer as a company contact.
Anchor to Arguments
Arguments
- Anchor to companyIdcompany•
Id ID!required The ID of the company to assign the contact to.
- Anchor to customerIdcustomer•
Id ID!required The ID of the customer to assign as the contact.
Was this section helpful?
Anchor to CompanyAssignCustomerAsContactPayload returnsCompanyAssignCustomerAsContactPayload returns
- Anchor to companyContactcompany•
Contact The created company contact.
- Anchor to userErrorsuser•
Errors [BusinessCustomer non-nullUser Error!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation companyAssignCustomerAsContact($companyId: ID!, $customerId: ID!) {
companyAssignCustomerAsContact(companyId: $companyId, customerId: $customerId) {
companyContact {
# CompanyContact fields
}
userErrors {
field
message
}
}
}
Input
{
"companyId": "gid://shopify/<objectName>/10079785100",
"customerId": "gid://shopify/<objectName>/10079785100"
}
{
"companyId": "gid://shopify/<objectName>/10079785100",
"customerId": "gid://shopify/<objectName>/10079785100"
}