companyAssignMainContact
mutation
需要 write_customers 权限点。
接口访问需要令牌,具体如何获取令牌参考:身份认证。
设置公司主要联系人
Return
公司信息
错误信息
错误码
关于更多通用错误码说明,参考:状态码和错误码。
Example
设置公司主要联系人
Code
{
"companyContactId": "gid://shopline/CompanyContact/4217281771",
"companyId": "gid://shopline/Company/6254924101557166237"
}
Response
{
"data": {
"companyAssignMainContact": {
"company": {
"id": "gid://shopline/Company/6254924101557166237",
"mainContact": {
"createdAt": "2023-11-07T10:13:38.117Z",
"customer": {
"firstName": "S*****",
"id": "gid://shopline/Customer/4217281771",
"state": "ENABLED",
"createdAt": "2023-11-07T10:13:38.117Z",
"displayName": "S***** T*****",
"email": "******@example.com",
"lastName": "T*****",
"locale": null,
"phone": null,
"updatedAt": "2023-12-21T10:34:54.575Z"
},
"id": "gid://shopline/CompanyContact/gid://shopline/CompanyContact/4217281771",
"updatedAt": "2023-12-21T10:34:54.575Z"
},
"name": "test2"
},
"userErrors": []
}
}
}
这篇文章对你有帮助吗?