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.
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'