Loading…

Get my membership card

```javascript WXAPI.cardMyList(token) ``` + token current user login credentials ```json { "code": 0, "data": [ { "amount": 100, "cardId": 3, "cardInfo": { "amount": 100, "endType": 0, "id": 3, "name": "Nongfu Spring Bottled Water Ticket", "price": 19, "refs": "1:235853", "shopIds": "", "status": 0, "statusStr": "Normal", "type": 0, "typeStr": "secondary card", "userId": 951 }, "dateAdd": "2022-07-06 09:00:40", "dateEnd": "2122-07-06", "id": 177, "status": 0 } ], "msg": "success" } ``` + cardInfo card rule information - type 0 time card 1 stored value card - Chinese description of the card type corresponding to typeStr type - amount card denomination (how many times or how many yuan) - price membership card selling price - status 0 normal 1 disabled - Chinese description of status corresponding to statusStr - ShopIds can be used in which stores (store IDs). Multiple stores are separated by commas. - refs 0:123,1:456 0 is the category and 1 is the product; only those products that meet the above requirements can use this card + status 0 normal use 1 deactivated 2 used up 3 expired + amount balance (how many times or how many yuan) + dateAdd card issuance time + dateEnd expiration time + id user’s membership card ID + cardId card rule ID