# enable module
Log in to the backend, left menu --> Factory settings --> Module management, find "Points Module", after enabling it, refresh the page with F5, and you will see the points deduction menu:

#Create points deduction rules
As shown in the picture above, 3 rules have been created. When creating an order, points will be directly allowed to be deducted according to the above rules.
**Instructions on whether to superimpose**:
_If you create a rule, 10 points can be used to deduct 1 yuan. If superposition is not turned on, then only 10 points can be used to deduct 1 yuan, but 20 points cannot be used to deduct 2 yuan. If superimposed, it is N _ 10 points can be used to deduct N yuan*
# The front end reads the deduction rules from the background
For example, WeChat Mini Program can use the apifm-wxapi module:
```javascript
WXAPI.scoreDeductionRules()
```
For other front-ends (website, android, ios, etc.), please check ["api interface document"](#)
#Create an order and submit the number of points to be deducted
For example, WeChat Mini Program can use the apifm-wxapi module:
```javascript
WXAPI.orderCreate(Object object)
```
**Parameter: reductionScore**
_This parameter specifies how many points are used for deduction for this order; you need to first calculate the points that need to be deducted by yourself through the points deduction rules and reading the assets. After the order is produced, the remaining amount to be paid will be automatically calculated_
For other front-ends (website, android, ios, etc.), please check ["api interface document"](#)
After the above steps, the actual amount that needs to be paid for the order is already the remaining amount that should be paid after deducting points.