companyLocationAssignAddress
mutation
需要 write_customers 权限点。
接口访问需要令牌,具体如何获取令牌请参考:身份认证
Example
保存公司地址信息
Code
{
"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": []
}
}
}
这篇文章对你有帮助吗?