malsubrata / woo-wallet

WooCommerce Wallet
GNU General Public License v3.0
78 stars 37 forks source link

Missing API endpoints in DOCS for woocommerce API #60

Open giddyuptiger opened 3 years ago

giddyuptiger commented 3 years ago

We can use WooCommerce API for external API calls to the wallet at these endpoints. I spent so much time getting JWT auth to work to access the endpoints currently listed inside the WP api, and then was unable to whitelist other api connections, and finally figured out how to access wallet from the woocommerce API. Please add these to the docs for others.

GET TRANSACTIONS https://example.com/wp-json/wc/v2/wallet/{id} GET BALANCE https://example.com/wp-json/wc/v2/wallet/balance/{id} POST TRANSACTION https://example.com/wp-json/wc/v2/wallet/{id}

NOTE: '.../wc/v2/....', not '.../wp/v2/....' not '..../wc/v3/...' also 'balance' not 'current_balance'