Unlock a reward
This documentation is for the WooRewards plugin
Use this API route to grant a reward to a user. It requires only the user writing permission.
Information
This operation will consume the points set in the points and rewards system. Therefore, the user must have enough points to unlock the reward.
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 user cannot be found by email.
A 404 error is raised if the points and rewards system identifier cannot be found.
A 404 error is raised if the reward identifier cannot be found in the points and rewards system.
A 410 error is raised if the pool is not active.
A 409 error is raised if the user does not fulfill the conditions (point amount, user role restriction, etc.).