customerMembershipUpdate
mutation
接口访问需要令牌,具体如何获取令牌参考:身份认证。
修改指定客户至指定等级及对应到期时间。
Example
修改已有的单个客户的等级
Code
Query
mutation customerMembershipUpdate($input: CustomerMembershipUpdateInput!) {
customerMembershipUpdate(input: $input) {
userErrors {
field
message
}
}
}
Variables
{
"input": {
"levelCode": "gid://shopline/Membership/MLC6568224957444662294",
"customerId": "gid://shopline/Customer/4602226680"
}
}
Response
{
"data": {
"customerMembershipUpdate": {
"userErrors": []
}
}
}
这篇文章对你有帮助吗?