REST API not working 401 404
-
hi
i was trying to test wallet rest api in postman for another plugin to support woo-wallet but its not workingi have enabled jwt Authorization header parmeter and have the token configured for GET request
even added consumer_key and secret still not working
and tried body form-data user pass still not workingthere is no auth help here https://github.com/malsubrata/woo-wallet/wiki/WooCommerce-Wallet-REST-API
inside the class-wc-rest-woo-wallet-controller.php Endpoint namespace is wc/v2 but wiki says wp/v2
please check and provide working example of api
Please check this examples of results and guide me.
wp v2 – no Headers
http://localhost/wp-json/wp/v2/wallet/balance/1{ "code": "rest_no_route", "message": "No route was found matching the URL and request method.", "data": { "status": 404 } }wc v2 – no Headers
http://localhost/wp-json/wc/v2/wallet/balance/1{ "code": "woocommerce_rest_cannot_view", "message": "sorry cant list resources", "data": { "status": 401 } }wc v3 – no Headers
http://localhost/wp-json/wc/v3/wallet/balance/1{ "code": "rest_no_route", "message": "No route was found matching the URL and request method.", "data": { "status": 404 } }wp v2 = header Authorization JWT token
http://localhost/wp-json/wp/v2/wallet/balance/1{ "code": "rest_no_route", "message": "No route was found matching the URL and request method.", "data": { "status": 404 } }wc v2 = header Authorization JWT token with body data-type user pass
http://localhost/wp-json/wc/v2/wallet/balance/1{ "code": "woocommerce_rest_cannot_view", "message": "sorry cant list resources", "data": { "status": 401 } }
The topic ‘REST API not working 401 404’ is closed to new replies.