Loading…

How to spend points

# Redeem coupon ![](https://dcdn.it120.cc/yuque/0/2020/png/572726/1603812249208-768be78a-b388-4cac-9829-ce1bddafbf6d.png) Set up coupons in the background and set how many points need to be deducted from the account for the user to receive the coupon; After the user receives the coupon, it can be used for shopping within the validity period of the coupon; # Administrator adjustments Left menu "Financial Management" --> "User Asset Management", the administrator can directly deduct a user's points # Clear all user points regularly Only for some marketing campaigns, this feature**Must be used with caution** For this function, the system will periodically**Clear all user points! ! !** ![](https://dcdn.it120.cc/yuque/0/2025/png/572726/1759310783844-de103a2a-774d-469f-ae94-fb77c0021c46.png) ##Period For crontab expression, please search it yourself, for example: 0 0 0 */1 * * This expression represents that at 0:00:00 every day, all points in the user account are cleared. ![](https://dcdn.it120.cc/yuque/0/2025/png/572726/1759630740463-448d2264-a645-4e4f-bc78-fbef49f092f6.png) ![](https://dcdn.it120.cc/yuque/0/2025/png/572726/1759630795748-baba726b-449d-46e4-a9f7-acae738c29a1.png) ![](https://dcdn.it120.cc/yuque/0/2025/png/572726/1759630811979-66a1cdc3-4f45-4cf6-bf58-0707bbd72de6.png) ## Automatic script Currently only one script is supported: [https://www.yuque.com/apifm/doc/nmythe](https://www.yuque.com/apifm/doc/nmythe) # Purchase items Product management, edit the product, you can fill in the number of points that need to be deducted from the account to purchase this product, so as to realize the function of the points mall # Redeem growth value / Points deduction / Points exchanged for cash ![](https://dcdn.it120.cc/yuque/0/2020/png/572726/1603812602898-5095b20c-28c0-42e5-9b04-439b3e696ff2.png) # User actively deducts points Deduction rules can be set in the background. Through the left menu "System Settings" --> "System Parameters", add the following text parameters: ![](https://dcdn.it120.cc/yuque/0/2020/png/572726/1603812692701-820eb73d-5a99-47e3-be8b-395f5459dc9e.png) ** in the picture above gooking The ** character can be defined at will. After modification, the following interfaces will also be modified simultaneously. After setting, you can directly deduct your points through the front-end interface call: [##/%E5%89%8D%E7%AB%AFapi%E6%8E%A5%E5%8F%A3 %E6%96%87%E6%A1%A3/%E7%A7%AF%E5%88%86%E6%A8%A1%E5%9D%97/reduceUsingPOST] (##/%E5%89%8D%E7%AB%AFapi%E6%8E%A5%E5%8F%A3 %E6%96%87%E6%A1%A3/%E7%A7%AF%E5%88%86%E6%A8%A1%E5%9D%97/reduceUsingPOST) ```javascript POST /score/reduce/gooking Parameter token, just pass the user’s currently logged in token. ```