Requires write_customers access scope.
An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Set up the company's primary contacts
Arguments
companyContactId ● ID!non-null
Company contact id
companyId ● ID!non-null
Company id
Return
company ● Company
Company information
More
userErrors ● [BusinessCustomerUserError!]!non-null
Error message
More
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
Set up the company's main contact
{
"companyContactId": "gid://shopline/CompanyContact/4217281771",
"companyId": "gid://shopline/Company/6254924101557166237"
}
Response
{
"data": {
"companyAssignMainContact": {
"company": {
"name": "test2",
"id": "gid://shopline/Company/6254924101557166237",
"mainContact": {
"customer": {
"updatedAt": "2023-12-21T10:34:54.575Z",
"createdAt": "2023-11-07T10:13:38.117Z",
"email": "******@example.com",
"firstName": "S*****",
"lastName": "T*****",
"phone": null,
"state": "ENABLED",
"displayName": "S***** T*****",
"id": "gid://shopline/Customer/4217281771",
"locale": null
},
"id": "gid://shopline/CompanyContact/gid://shopline/CompanyContact/4217281771",
"updatedAt": "2023-12-21T10:34:54.575Z",
"createdAt": "2023-11-07T10:13:38.117Z"
}
},
"userErrors": []
}
}
}
Was this article helpful to you?