
Backend, points module, points redemption, set the redemption rules first, and then call the interface to convert points into available balance.
```javascript
WXAPI.scoreExchangeCash(token, scoreNumber)
```
+ scoreNumber is the number of points used to redeem this time
The system will automatically calculate the corresponding amount based on the exchange rules configured in the background and add it to the user's available balance.
```json
{
"code": 0,
"data": 20, // Amount added to balance
"msg": "success"
}
```
In the above example, the user redeems points to obtain a balance of 20 yuan, so the user's available balance will increase by 20 yuan.