Skip to main content

Getting Started with WooCommerce APIs

WooCommerce provides a number of programmatic APIs to interact with WooCommerce store data.

WC REST API

The WC REST API is a powerful part of WooCommerce which lets you read and write various parts of WooCommerce data such as orders, products, coupons, customers, and shipping zones. It based on the WordPress REST API.

Explore the WC REST API documentation.

Store API

The Store API provides public REST API endpoints for the development of customer-facing cart, checkout, and product functionality. In contrast to the WooCommerce REST API, the Store API is unauthenticated and does not provide access to sensitive store data or other customer information.

Explore the Store API documentation.

Other Resources

Beyond the powerful REST APIs, WooCommerce offers a suite of PHP-based APIs designed for developers to deeply integrate and extend the core functionality of their store. These APIs allow for direct interaction with WooCommerce classes, enabling custom behaviors for settings, payment gateways, shipping methods, and more.

Settings API

The Settings API is used by extensions to display, save, and load settings.

Explore the Settings API documentation.

Payment Gateway API

The Payment Gateway API is used by extensions to interact with the payment gateway.

Explore the Payment Gateway API documentation.

Shipping Method API

The Shipping Method API is used by extensions to extend shipping methods and add their own rates.

Explore the Shipping Method API documentation.

Payment Token API

The Payment Token API is used for storing and managing payment tokens for gateways.

Explore the Payment Token API documentation.

WooCommerce Code Reference

The WooCommerce Code Reference is a comprehensive documentation of the WooCommerce API. It is a great resource for developers to learn about the WooCommerce API and how to use it.

The WooCommerce Code Reference is a comprehensive documentation of the internal WooCommerce Classes, API, and functions. It is a great resource for developers to learn about the WooCommerce functionality and how to extend it.

Explore the WooCommerce Code Reference documentation.