需要 write_customers 权限点。
接口访问需要令牌,具体如何获取令牌参考:身份认证
公司地点信息查询
Arguments
companyId ● ID!non-null
公司id
input ● CompanyContactInput!non-null
公司联系人输入信息
More
Return
companyContact ● CompanyContact
公司联系人
More
userErrors ● [BusinessCustomerUserError!]!non-null
错误信息
More
错误码
关于更多通用错误码说明,参考:状态码和错误码
Example
创建公司联系人
{
"companyId": "gid://shopline/Company/6254924101557166237",
"input": {
"email": "******@example.com",
"firstName": "S*****",
"lastName": "T*****",
"locale": "en",
"phone": "0086139****9732"
}
}
Response
{
"data": {
"companyContactCreate": {
"companyContact": {
"company": {
"name": "C*****",
"id": "gid://shopline/Company/6254924101557166237"
},
"createdAt": "2023-12-21T10:25:42.374Z",
"customer": {
"addresses": [],
"email": "******@example.com",
"firstName": "S*****",
"id": "gid://shopline/Customer/4600093512",
"lastName": "T*****",
"phone": "0086139****9732"
},
"id": "gid://shopline/CompanyContact/4600093512",
"isMainContact": false,
"updatedAt": "2023-12-21T10:25:42.757Z"
},
"userErrors": []
}
}
}
这篇文章对你有帮助吗?