接口访问需要令牌,具体如何获取令牌参考:身份认证
查询店铺内当前使用的会员机制中,所有已创建的等级的会员类型,及对应的升级门槛、有效期等。
Arguments
levelCode ● String
等级的编码。 最大长度限制:25
Return
benefitsInfo ● [BenefitsInfo]
会员等级下权益的基本信息
More
customPrivileges ● [CustomPrivilege]
会员等级下特殊权益的基本信息
More
错误码
关于更多通用错误码说明,参考:状态码和错误码
Example
查询单个会员等级下的权益
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": []
}
}
}
这篇文章对你有帮助吗?