companyRevokeMainContact
mutation
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.
Void the company's primary contact
Arguments
Company id
Return
Company information
Error message
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
Revoke the company's main contact
Code
{
"companyId": "gid://shopline/Company/6254924101557166237"
}
Response
{
"data": {
"companyRevokeMainContact": {
"company": {
"id": "gid://shopline/Company/6254924101557166237",
"mainContact": null,
"name": "test2"
},
"userErrors": []
}
}
}
Was this article helpful to you?