- This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
› Forums › WooCommerce Plugins › How do I Retrieve a particular User’s Points via API?
Hi, I am working on a personal project and I want to retrieve any particular user’s points via API is there any way to do it?
Hi,
It’s very easy to do.
First, make sure to generate your consumer’s secret key
1. Kindly, go to WooCommerce->Points and Rewards->API SETTINGS
2. Then Click on the ‘Generate Secret Key’ button. and a secret key will be generated.
Then, You can get the points of the user by using this endpoint:
POST /wp-json/wpr/wps-get-points/user/log
curl -X POST http://<yoursitename.com>/wp-json/wpr/wps-get-points/user/
Make sure you are using the below parameters in your POST request
‘user_id’ :
‘consumer_secret’ :
Hope that helps!