Can I use WooCommerce in a headless CMS setup?

I don't have a question about coding in WordPress, but I was just wondering if I have a headless CMS setup, can I still have ecommerce functionality with WooCommerce?

Topic headless theme-development Wordpress

Category Web


Yes. WooCommerce has endpoints and you can access them with the standard WordPress REST API.

/wp-json/wc/v3/products
/wp-json/wc/v3/products/<id>

Did a little search and found that they have documentation available here: https://woocommerce.github.io/woocommerce-rest-api-docs/

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.