WooCommerce Aims to Produce MVP of Custom Tables for Orders by Q3, 2022

WooCommerce Store API Now Stable, Provides Better Support for Custom Frontends

Posted by WP Tavern on March 25, 2022 at 3:08 pm
kitty kitty CATegory News
WooCommerce announced today that its new Store API is now stable after two years in development. It powers the plugin’s new block-based cart and checkout experience as well as all products blocks. The Store API is a public, unauthenticated API, that provides REST API endpoints for cart, checkout, and product functionality. WooCommerce core developer Mike Jolley explained how the new API is different from the plugin’s REST API: The main difference between the Store API and WC REST API is that the Store API allows unauthenticated access to store data, for example, products. This makes it suitable for a variety of use-cases, including custom frontends.This is an unauthenticated API. It does not require API keys or authentication tokens for access.Another difference is that the Store API has support for Cart data. This allows for cart operations such as adding items to the cart, updating quantities, applying coupons, and submitting orders. Only the current customer’s cart can be accessed.Data returned from the Store API is always reflective of the current user (cookie-based), whereas the WC REST API allows more extensive access to any data, should you have the correct access rights. In an interview with HollerWP last year, Jolley said it’s helpful to think of the…

…Full post on WP Tavern
Read Full

Similar Posts

Leave a Reply