benefitsOfMembership
query
接口访问需要令牌,具体如何获取令牌参考:身份认证。
查询店铺内当前使用的会员机制中,所有已创建的等级的会员类型,及对应的升级门槛、有效期等。
Example
查询单个会员等级下的权益
Code
query {
benefitsOfMembership(levelCode:"gid://shopline/Membership/MLC6568224957444662294") {
benefitsInfo{
benefitsDescription
benefitsIssuranceType
benefitsUsageInstructionValue
benefitsExpiryDateValue
specificDate
fixedDate
birthBenefitsReleaseType
rewardType
benefitsStatus
benefitsExpiryDateType
benefitsIcon
periodicallyMonths
usageLimitsType
daysBefore
specificProductIds
periodicallyDays
autoStackLimit
benefitsUsageInstructionType
codeStackLimit
productsApplicableType
benefitsName
usageLimitsTimes
specificCategoryList
benefitsDetails
}
customPrivileges{
privilegeDescription
benefitsIcon
privilegeName
}
}
}
Response
{
"data": {
"benefitsOfMembership": {
"benefitsInfo": [
{
"benefitsIssuranceType": null,
"benefitsName": null,
"codeStackLimit": true,
"autoStackLimit": true,
"benefitsDetails": "1000",
"benefitsExpiryDateValue": null,
"benefitsIcon": null,
"benefitsStatus": "ACTIVE",
"daysBefore": null,
"periodicallyDays": null,
"specificCategoryList": null,
"benefitsDescription": null,
"benefitsUsageInstructionType": "MIN_PURCHASE_AMOUNT",
"birthBenefitsReleaseType": null,
"periodicallyMonths": null,
"productsApplicableType": "ALL",
"specificDate": null,
"usageLimitsTimes": null,
"usageLimitsType": "UNLIMITED",
"benefitsExpiryDateType": null,
"benefitsUsageInstructionValue": "10000",
"fixedDate": null,
"rewardType": "CASH_VOUCHER",
"specificProductIds": null
},
{
"benefitsExpiryDateType": null,
"benefitsExpiryDateValue": null,
"fixedDate": null,
"periodicallyMonths": null,
"rewardType": "POINTS",
"specificDate": null,
"specificProductIds": null,
"benefitsDescription": null,
"benefitsName": null,
"benefitsUsageInstructionType": null,
"birthBenefitsReleaseType": null,
"productsApplicableType": "ALL",
"usageLimitsTimes": null,
"usageLimitsType": "UNLIMITED",
"autoStackLimit": false,
"benefitsIssuranceType": null,
"benefitsStatus": "ACTIVE",
"benefitsUsageInstructionValue": null,
"periodicallyDays": null,
"benefitsIcon": "BENEFIT_2",
"codeStackLimit": false,
"daysBefore": null,
"specificCategoryList": null,
"benefitsDetails": "10"
}
],
"customPrivileges": []
}
}
}
这篇文章对你有帮助吗?