companyContactUpdate
mutation
需要 write_customers 权限点。
接口访问需要令牌,具体如何获取令牌参考:身份认证。
公司联系人更新
Example
更新公司联系人信息
Code
{
"companyContactId": "gid://shopline/CompanyContact/4600093512",
"input": {
"email": "*******@example.com",
"firstName": "S*****",
"lastName": "T*****",
"locale": "en",
"phone": "0086139****5903"
}
}
Response
{
"data": {
"companyContactUpdate": {
"companyContact": {
"isMainContact": false,
"updatedAt": "2023-12-21T10:41:17.580Z",
"company": {
"id": "gid://shopline/Company/6254924101557166237",
"name": "test2"
},
"createdAt": "2023-12-21T10:25:42.374Z",
"customer": {
"phone": "0086139****5903",
"addresses": [],
"email": "*******@example.com",
"firstName": "S*****",
"id": "gid://shopline/Customer/gid://shopline/Customer/4600093512",
"lastName": "T*****"
},
"id": "gid://shopline/CompanyContact/gid://shopline/CompanyContact/4600093512"
},
"userErrors": []
}
}
}
这篇文章对你有帮助吗?