Loading…

Get all membership levels set in the background

```javascript WXAPI.userLevelList({ page: 1, pageSize: 10 }) ``` + page reads which page of data. If this parameter is not passed, the default value is 1. + pageSize How many pieces of data are read per page? If this parameter is not passed, the default is 50 ```json { "code": 0, "data": { "result": [ { "dateAdd": "2021-01-20 14:20:28", "dateUpdate": "2021-11-23 15:42:57", "defValidityUnit": 3, "id": 3117, "level": 0, "name": "Gold Member", "paixu": 0, "rebate": 1, "status": 0, "upgradePayNumber": 0, "upgradeScore": 0 } ], "totalRow": 3, "totalPage": 1 }, "msg": "success" } ``` + id membership level id + name Membership level name + level Membership level, the larger the number, the higher the level + rebate is the default discount for shopping. If the product does not have a separate membership price, it will be discounted according to the discount set here. 10 means 10% off (no discount), 1 means 10% off, and 0 means 0% off (free delivery) + upgradePayNumber Automatically upgrade to this membership after paying several orders + upgradeAmount The amount of consumption will automatically upgrade to this member. + upgradeScore: the accumulated total points to upgrade to this member + upgradeSendCoupons After upgrading to this member, the system will automatically give out coupons. The coupon rule ID is stored here. Multiple IDs are separated by English commas. + upgradeSendScore The number of points received after upgrade + maxUser The maximum number of users this category can accommodate + sendPerMonthCoupons gives out coupons every month. The coupon rule ID is stored here. Multiple IDs are separated by commas. + sendPerMonthScore number of points given each month + fanliPercent shopping rebate ratio Automatically upgrade to become the member's default validity period (manual adjustment to membership, purchase of membership are not subject to this default restriction) + defValidityDuration duration + defValidityUnit Duration unit: 0 days 1 month 2 years 3 Valid permanently 4 Valid within a fixed period + defValidityDayBegin member valid start time + defValidityDayEnd member expiration time