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