Loading…

View coupon details

```javascript WXAPI.couponDetail(id) ``` + id coupon rule id ```json { "code": 0, "msg": "success", "data": { "couponRefs": [ { "id": 159766, "userId": 2, "couponRuleId": 27772, "type": 0, "refId": 354146, "name": "Test category 2" }, { "id": 159767, "userId": 2, "couponRuleId": 27772, "type": 1, "refId": 2509400, "name": "Coca-Cola" } ], "extJson": { "eeee": "1111" }, "info": { "id": 27772, "userId": 2, "shopId": 0, "type": "hhh", "pwd": "Y", "needScore": 0, "needSignedContinuous": 0, "needAmount": 5, "name": "Test registration", "pic": "https://s3.cichangelte.com/cichangelte/cuser/2/2026/07/09/40b9bc77-dd01-4cd5-92c7-792f3baf6480.ico", "numberTotle": 999, "numberGitNumber": 14, "numberGit": 16, "numberUsed": 0, "numberLeft": 999, "moneyMin": 10, "moneyMax": 100, "moneyType": 0, "moneyHreshold": 1, "numberPersonMax": 100, "status": 0, "showInFront": false, "dateStartType": 1, "dateEndType": 1, "dateEndDays": 7, "sendBirthday": false, "sendRegister": true, "sendInviteM": false, "sendInviteS": false, "sendOrderEvaluate": false, "batchSendUid": -1, "onlyFreight": false, "isCash": false, "dateRange": "2026-07-02/2026-07-31", "statusStr": "Normal" } } } ``` + info Coupon rule information - name Coupon name - moneyHreshold is the amount of money you need to spend before you can use it. - moneyMin, moneyMax coupon denomination range - moneyType 0 Fixed amount 1 Proportional deduction - needAmount is the amount required to get the coupon (similar to buying a coupon) - needScore How many points need to be paid to receive the coupon (similar to redeeming coupons with points) - needSignedContinuous To receive the coupon, how many consecutive days do you need to sign in before you can receive it? - shopId can only be used in a certain store - type custom coupon type - pwd If it is Y, this coupon needs to fill in the correct password to receive it - pic coupon cover image + extJson coupon extended json data + couponRefs usage restrictions after coupon collection - type 0 means restricting use under a certain category - Name corresponds to the category name or product name - The category id or product id corresponding to refId