Skip to content

WooRewards

  1. Home
  2. Docs
  3. WooRewards
  4. Features
  5. API
  6. Rewards

Rewards

This documentation is for the WooRewards plugin

Use this API route to get all rewards of a points and rewards system. It requires only the general reading permission.

 

GET
wp-json/woorewards/v1/pools/<pool_id>/rewards

 

Available parameters

  • Id : Description
  • pool_id : (string) – The points and rewards system identifier.

 

Response

The JSON response is an array of reward objects. Each object contains at least the following properties:

  • Id : Description
  • id : The reward identifier to use for future references.
  • cost : The amount of point required (and consumed) to purchase the reward.
  • title : The public reward title.
  • description : The plain text reward description.

 

Error cases

A 404 error is raised if the points and rewards system identifier cannot be found.

Scroll To Top