需要 write_customers 权限点。
接口访问需要令牌,具体如何获取令牌请参考:身份认证
Arguments
locationId ● ID!non-null
公司地点ID
address ● CompanyAddressInput!non-null
公司地址信息
addressTypes ● [CompanyAddressType]!non-null
地址类型
Returns
addresses ● [CompanyAddress]
地址信息
userErrors ● [BusinessCustomerUserError!]!non-null
错误信息
错误码
关于更多通用错误码说明,请参考:状态码和错误码
Example
保存公司地址信息
{
"address": {
"address1": "长隆",
"address2": "奥园广场",
"city": "广州市",
"countryCode": "CN",
"phone": "008613878604673",
"zip": "514000"
},
"addressTypes": [
"BILLING","SHIPPING"
],
"locationId": "gid://shopline/CompanyLocation/6245049488106857931"
}
Response
{
"data": {
"companyLocationAssignAddress": {
"addresses": [
{
"address1": "长隆",
"address2": "奥园广场",
"city": "广州市",
"country": null,
"countryCode": "CN",
"createdAt": "2023-12-14T13:54:25.605Z",
"id": "gid://shopline/CompanyAddress/6245049491713959373",
"province": null,
"updatedAt": "2023-12-21T11:23:01.228Z",
"zip": "514000"
},
{
"address1": "长隆",
"address2": "奥园广场",
"city": "广州市",
"country": null,
"countryCode": "CN",
"createdAt": "2023-12-14T13:54:25.706Z",
"id": "gid://shopline/CompanyAddress/6245049493408458190",
"province": null,
"updatedAt": "2023-12-21T11:23:00.418Z",
"zip": "514000"
}
],
"userErrors": []
}
}
}
这篇文章对你有帮助吗?