Add/Subtract points
This documentation is for the WooRewards plugin
Use this API route to add/subtract points to a user in a points reserve used by a points and rewards system. It requires only the user writing permission.
Information
That operation can unlock a reward if the points and rewards system is configured to do so and the user sums enough points. In that case, points can be consumed at the same time. The response contains the final point amount.
PUT
/wp-json/woorewards/v1/points/<user_email>/<pool_id>/<points_to_add_or_subtract>/<reason>
Available parameters
Response
The JSON response is a status object. That object contains at least the following properties:
Error cases
A 404 error is raised if the points and rewards system identifier cannot be found.
A 404 error is raised if the user cannot be found by email.