pointRedemptionRule
query
接口访问需要令牌,具体如何获取令牌参考:身份认证。
分页查询店铺内生效中的积分兑换规则列表。
Example
查询积分兑换规则列表
Code
query {
pointRedemptionRule(first:1) {
edges{
cursor
node{
id
name
customisedDescription
icon
allowRevokeRedemption
point {
cashbackPoint
cashbackAmount
couponCodePoint
couponCodePercentage
couponPoint
couponAmount
freeShippingPoint
freeProductPoint
freeProductId }
pointsAutoDeduct
disablePointsRefund
ruleType
cashbackbenefitsUsageThreshold{
minPurchaseAmountEnabled
minPurchaseAmount
minPointsEnabled
minPoints
maxPointsEnabled
maxPoints
maxDeductAmountEnabled
maxDeductAmount }
benefitRedemptionCondition{
benefitRedemptionConditionType
minPurchaseAmountValue
minItemQuantityValue }
couponUsageScope
productsApplicableType
autoStackLimit
codeStackLimit
channel
allowRevokeRedemption
specificCategoryIds
expiryRule
specificProductIds
redemptionLimit{
type
period
count}
}
}
pageInfo{
hasNextPage
hasPreviousPage
endCursor
startCursor}
}
}
Response
{
"data": {
"pointRedemptionRule": {
"edges": [
{
"cursor": "4C04ED4B4B70D849A6EDE3DF4AFAD2872B0AB19E47EF82F37DC4C3F337AD1FC6",
"node": {
"id": "gid://shopline/Membership/PRI*************552879",
"pointsAutoDeduct": null,
"productsApplicableType": "ALL",
"redemptionLimit": {
"count": 5,
"period": 30,
"type": "LIMITED"
},
"specificProductIds": [],
"benefitRedemptionCondition": null,
"codeStackLimit": true,
"expiryRule": 30,
"icon": "https://img.myshopline.com/image/member/*********4596/**********************2595c901ad.png?w=846&h=372",
"name": "free",
"point": {
"freeProductId": "gid://shopline/Product/******************51381124",
"freeShippingPoint": null,
"cashbackAmount": null,
"cashbackPoint": null,
"couponAmount": null,
"couponCodePoint": null,
"freeProductPoint": 11,
"couponCodePercentage": null,
"couponPoint": null
},
"ruleType": "FREE_PRODUCT",
"specificCategoryIds": [],
"allowRevokeRedemption": false,
"autoStackLimit": true,
"cashbackbenefitsUsageThreshold": {
"maxPointsEnabled": false,
"minPoints": null,
"minPointsEnabled": false,
"minPurchaseAmount": null,
"minPurchaseAmountEnabled": false,
"maxDeductAmount": null,
"maxDeductAmountEnabled": false,
"maxPoints": null
},
"channel": "ONLINE_STORE",
"couponUsageScope": "FOR_ALL",
"customisedDescription": "desc",
"disablePointsRefund": null
}
}
],
"pageInfo": {
"endCursor": "4C04ED4B4B70D849A6EDE3DF4AFAD2872B0AB19E47EF82F37DC4C3F337AD1FC6",
"hasNextPage": true,
"hasPreviousPage": false,
"startCursor": "4C04ED4B4B70D849A6EDE3DF4AFAD2872B0AB19E47EF82F37DC4C3F337AD1FC6"
}
}
},
"extensions": {
"cost": {
"throttleStatus": {
"maximumAvailable": 100000,
"restoreRate": 100000,
"currentlyAvailable": 99989
},
"actualQueryCost": 11,
"requestedQueryCost": 11
}
}
}
这篇文章对你有帮助吗?