HeadlessWC: Ultimate eCommerce Decoupler
The solution for integrating headless checkout functionalities into your WooCommerce store.
Install in
HeadlessWC revolutionizes your eCommerce approach by providing custom eCommerce endpoints for a headless checkout experience. This cutting-edge plugin is tailored for online stores seeking agility, speed, and an enhanced user experience, free from the limitations of traditional WordPress approach.
It is highly recommended to use the NPM Client Package, which serves as the client SDK for this WordPress plugin. The package is JavaScript framework-agnostic, allowing you to integrate it seamlessly with your preferred technologies, including React, Vue, Angular, Svelte, and others. This flexibility ensures you can leverage HeadlessWC with any front-end setup, enhancing your headless eCommerce capabilities with ease.
For detailed API integration, please refer to the API API Documentation
Written by Joobi from the project's own listing. See the source page
v1.4.0
- Validates the selected shipping rate against WooCommerce when creating a physical order.
- Checks order access on payment redirects.
- Verified catalog, cart, standard shipping and payment-method selection with WordPress 7.1.5 and WooCommerce 11.3.1. Use
headless-wc-client@1.4.0for the matching npm SDK.
v1.0.0
Initial version
v1.1.0
Added GET /wp-json/headless-wc/v1/products/
Added GET /wp-json/headless-wc/v1/products/${productID}
v1.3.9
- GET order: for pending/failed orders the response now includes
available_payment_methods(array of{ id, title }) so the headless front can show payment method selection before redirecting to pay. - New endpoint: POST /wp-json/headless-wc/v1/order/{order_id}/set-payment-method?key={order_key} with JSON body
{ "payment_method_id": "bacs" }. Verifies order key, sets the payment method on the order, returnspayment_url. Allows the client to let the customer choose payment method on the headless page, then set it and redirect to WooCommerce order-pay. Not covered by headless-wc-client; call via fetch from your app if needed.
Order by link (pay existing order)
GET /wp-json/headless-wc/v1/order/{order_id}?key={order_key}
Returns full order details: items, billing, shipping, totals, payment_method_title, shipping_method_title. When status is pending or failed, the response also includes payment_url and (since v1.3.9) available_payment_methods so the client can redirect to pay in one flow.
Follow this listing's changes (Atom feed)