- 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 users wallet amount via API?
Hi, I am working on a personal project, and I want to retrieve a particular user’s wallet amount.
Is there an API feature in the plugin for that?
Hi,
Thank you for trying our Wallet System for WooCommerce plugin,
To retrieve a particular user’s wallet amount first, you have to generate your API Keys
Go to the Wallet System for WooCommerce Plugin> Rest API and click on Generate API Keys
After That, You’ll Get Your Consumer Key and Secret Key
For authentication, you need Consumer Key consumer_key and Consumer Secret consumer_secret keys
To retrieves the wallet amount of a particular user. HTTP request is:
GET {home_url}/wp-json/wsfw-route/v1/wallet/<id>?consumer_key=XXXX&consumer_secret=XXXX
where <id> is the ID of the User & Don’t forget to replace XXXX with your consumer keys and consumer secret keys
And Then You’ll get a JSON Response With User’s Amount
Hopefully, we are able to help you with the query.
Regards,