companyUpdate
mutation
需要 write_customers 权限点。
接口访问需要令牌,具体如何获取令牌参考:身份认证。
查询公司信息
Example
更新 公司信息
Code
{
"companyId": "gid://shopline/Company/6254924101557166237",
"input": {
"name": "test2"
}
}
Response
{
"data": {
"companyUpdate": {
"userErrors": [],
"company": {
"name": "test2",
"id": "gid://shopline/Company/gid://shopline/Company/6254924101557166237",
"mainContact": {
"createdAt": "2023-12-21T09:23:57.777Z",
"customer": {
"phone": "0086139****0643",
"updatedAt": "2023-12-21T09:23:58.372Z",
"createdAt": "2023-12-21T09:23:57.777Z",
"displayName": "L*** S****",
"lastName": "S****",
"locale": "en",
"state": "NOT_INVITED",
"email": "*********@example.com",
"firstName": "L***",
"id": "gid://shopline/Customer/gid://shopline/Customer/4600093492"
},
"id": "gid://shopline/CompanyContact/gid://shopline/CompanyContact/gid://shopline/CompanyContact/gid://shopline/CompanyContact/4600093492"
}
}
}
}
}
这篇文章对你有帮助吗?