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.
Specify users become company contacts
Arguments
companyId ● ID!non-null
Company id
customerId ● ID!non-null
Customer id
Return
userErrors ● [BusinessCustomerUserError!]!non-null
Error message
More
companyContact ● CompanyContact
Company contact
More
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
Assign users as company contact
{
"companyId": "gid://shopline/Company/6254924101557166237",
"customerId": "gid://shopline/Customer/4217281771"
}
Response
{
"data": {
"companyAssignCustomerAsContact": {
"companyContact": {
"company": {
"id": "gid://shopline/Company/6254924101557166237",
"name": "test2"
},
"createdAt": "2023-11-07T10:13:38.117Z",
"customer": {
"addresses": [],
"email": "********@example.com",
"firstName": "S*****",
"id": "gid://shopline/Customer/4217281771",
"lastName": "T*****",
"phone": null
},
"id": "gid://shopline/CompanyContact/4217281771",
"isMainContact": false,
"updatedAt": "2023-11-07T10:13:38.610Z"
},
"userErrors": []
}
}
}
Was this article helpful to you?