For anyone wondering the same thing, it turns out that you can use the woocommerce API with any normal authentication methods.
WooCommerce includes two ways to authenticate with the WP REST API. It is also possible to authenticate using any WP REST API authentication plugin or method.
This means I was able to use the athentication method provided by the JWT plugin to authenticate the request.
This works fine until you want to use a the product API publicly. For some reason, there is no way to use the woocommerce api without authentication.
As it turns out, the products are stored as simple post in wordpress. It is possible to access them using the standar wordpress REST api using the following route.
/wp-json/wp/v2/product
/wp-json/wp/v2/product/<product id>
Those API endpoints don’t need authentication.
Related Posts:
- WooCommerce: Can’t use wc_get_products for custom REST API endpoints
- Process checkout using WC REST API
- How to build a plugin that supports authenticated POST requests to the REST API from external servers?
- Extend Woocommerce rest api routes fails
- How to filter Post using Meta Data REST API
- How to stop a Gutenberg Block from firing multiple GET Requests?
- Output JSON object with woocommerce products
- Problem with cURL and rest API
- Woo API REST : product variation price is read-only?
- Category Tree In WooCommerce Product API
- How to upload Woocommerce product images via API? [closed]
- What will make Woocommerce REST API to issue 401 [closed]
- Woocommerce custom endpoints
- Woocommerce REST API – updating an order changes custom tax calculations
- Woocommerce Rest Api Categories problem [closed]
- API returns blank response after installing & uninstalling WP-rest-api plugin
- woocommerce axios react
- Get specific values in Woocommerce Rest API
- wc_get_products() not return the images details
- WooCommerce – Add product with image via REST API
- Tax are not showing on order while placing order with REST API
- JWT on Woocommerce cannot work with “Customer” role user
- Woocommerce REST API – add filter to set maximum query per page for product brands [closed]
- WooCommerce – Create multiple product tags via rest api endpoint
- Using the WordPress and WooCommerce REST APIs in the same Node app
- Retrieve Data from Custom Endpoint
- How to solve `Error getting remote image` in woocommerce rest api script?
- Getting in an exception for get product detail by id in woocommerce REST api
- Impossible to create a new WooCommerce customer using Rest API
- Woocommerce API security concerns
- How can I send information when a order is completed to my own POS?
- Woocommerce Rest API: woocommerce_product_invalid_image_id
- WC Booking query bookings with date ranges
- “error_message”: “Sorry, you cannot list resources.” using WooCommerce API
- Woocommerce REST API: creating variations
- Woocommerce REST API not considering discounts and coupons
- WooCommerce REST API endpoints don’t exist
- Fetch products with filter by similar categories at same time
- Send data to external websites when there is an update or create a post
- Auto generating API keys using the Application Authentication Endpoint [closed]
- GET woocommerce order request is not showing meta data [closed]
- Insert variations via woocommerce api [closed]
- Display order items names in WooCommerce admin orders list [closed]
- Remember page before login page, redirect to that page after login
- WooCommerce lost password reset flow not working with SendGrid (redirect loop)
- Get user payment details when payment successfully done in woocommerce [closed]
- How to assign specific attribute to variation for woocommerce product?
- How to change page via login as user and admin
- How to remove the sub-category from Woocommerce product URL
- Find woocommerce product ID by custom field value?
- Getting WordPress database error Deadlock
- Place Order button in Checkout
- woocommerce – How Can I add author metadata for a product? [closed]
- Woocommerce PHP site that shows table with orders from specific category
- How to get the webshop page in 2:nd language, with Polylang and Hyyan
- WooCommerce Cart Total Table chronology order change [closed]
- Woocommerce Update Order Notes Date
- Shipping Method does not inherit settings from the class
- My woocommerce checkout page and woocommerce setting page are not responding [closed]
- Woocommerce Shortcode custom orderby not working
- Javascript error when adding an item to the cart [closed]
- Woocommerce: Complex query in pre_get_posts [closed]
- How can I get all the woocommerce api orders [closed]
- Is it possible to update the total price on the checkout page in woocommerce from a custom field
- Customize WooCommerce Add To Cart Form Name [closed]
- Remove WooCommerce block styles
- Weird strange letters appeared in all website links [duplicate]
- password_reset doesnt work
- How can I reference external attachments without breaking core WordPress files?
- Check if a WooCommerce Order Item has a specific meta data key
- WooCommerce Cart Items
- Online wc-blocks-style.css rendering instead of the hosted wc-blocks-style.css
- Broken link additional images after moving server
- I have 3 types of prices in WP and I need to change price for each specific user role using hooks
- How do I display only the relevant attributes?
- How to hide “Shipping” label from Woocommerce cart page
- How to add php variable inside wc_enqueue_js(‘jQuery’) function?
- Show menu order field in quick edit
- Adapt shipping surcharge code [closed]
- How to access product’s meta data when deleting a WooCommerce product?
- Placing Lock Icon on WooCommmerce “Place Order” Checkout Button (WordPress ‘ignoring’ Changes…)
- How to Sync Woocommerce and CRM via External API
- How can I filter products by meta in Woocommerce REST API?
- Add sale count next to star rating in woocommerce single product page
- Format number to 2 decimal places
- How do i display zip code options during checkout [closed]
- Woocommerce language isn’t default language
- How set variation after filter in WooCommerce?
- Does anyone know a crowdsourcing plugin that can support the following use case?
- WooCommerce – Show different terms and conditions for different user roles
- WordPress user ID prefix
- WooCommerce – different icons for product categories
- WordPress returning “XHR” even when access keys are used
- mydomain.com/wp-login redirects to wordpress.com/wp-login
- WooCommerce, after moving reviews tab to under product description. If pagination link is clicked description is hidden
- Is it possible to hide certain products from displaying in the search results
- WordPress Woocommerce product-category info on one line [closed]
- Woocommerce display price without formatting [closed]
- WooCommerce shipping tax
- Login page so wide [closed]