Title: WooCommerce Legacy REST API
Author: Automattic
Published: <strong>January 16, 2024</strong>
Last modified: January 23, 2025

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/woocommerce-legacy-rest-api/assets/icon.svg?rev=3234501)

# WooCommerce Legacy REST API

 By [Automattic](https://profiles.wordpress.org/automattic/)

[Download](https://downloads.wordpress.org/plugin/woocommerce-legacy-rest-api.1.0.5.zip)

 * [Details](https://wordpress.org/plugins/woocommerce-legacy-rest-api/#description)
 * [Reviews](https://wordpress.org/plugins/woocommerce-legacy-rest-api/#reviews)
 *  [Installation](https://wordpress.org/plugins/woocommerce-legacy-rest-api/#installation)
 * [Development](https://wordpress.org/plugins/woocommerce-legacy-rest-api/#developers)

 [Support](https://wordpress.org/support/plugin/woocommerce-legacy-rest-api/)

## Description

[The Legacy REST API will no longer part of WooCommerce as of version 9.0](https://developer.woocommerce.com/2023/10/03/the-legacy-rest-api-will-move-to-a-dedicated-extension-in-woocommerce-9-0/).
This plugin restores the full functionality of the removed Legacy REST API code 
in WooCommerce 9.0 and later versions.

For all intents and purposes, having this plugin installed and active in WooCommerce
9.0 and newer versions is equivalent to enabling the Legacy REST API in WooCommerce
8.9 and older versions (via WooCommerce – Settings – Advanced – Legacy API). All
the endpoints work the same way, and existing user keys also continue working.

On the other hand, installing this plugin together with WooCommerce 8.9 or an older
version is safe: the plugin detects that the Legacy REST API is still part of WooCommerce
and doesn’t initialize itself as to not interfere with the built-in code.

Please note that **the Legacy REST API is not compatible with [High-Performance Order Storage](https://woocommerce.com/document/high-performance-order-storage/)**.
Upgrading the code that relies on the Legacy REST API to use the current WooCommerce
REST API instead is highly recommended.

## Installation

Simply install and activate the plugin. In WooCommerce 8.9 and earlier nothing will
change. Starting with WooCommerce 9.0 having the plugin installed will provide the
full functionality of the Legacy REST API.

Note that since the Legacy REST API is not compatible with HPOS, once the plugin
is active you will see a “WooCommerce has detected that some of your active plugins
are incompatible with currently enabled WooCommerce features” notice in your WordPress
admin area.

## Reviews

![](https://secure.gravatar.com/avatar/afd718c883d42829046ab92bacd139ee6dbe2152aa71321d2f1e7a54020d123e?
s=60&d=retro&r=g)

### 󠀁[The Chaos](https://wordpress.org/support/topic/the-chaos/)󠁿

 [alfredobenni](https://profiles.wordpress.org/alfredobenni/) March 20, 2026

You’ve done a huge mess. E-commerce doesn’t work anymore.

![](https://secure.gravatar.com/avatar/e86ea9278c72a51b5ec9f5e3b1c017290b887ea12e0b69211fc6d8e1feb2b4f8?
s=60&d=retro&r=g)

### 󠀁[Depreciation messages in PHP 8.3](https://wordpress.org/support/topic/depreciation-messages-in-php-8-3/)󠁿

 [shopstyle](https://profiles.wordpress.org/shopstyle/) October 15, 2025

I’m glad it exists, but sadly it has lots of depreciation messages in PHP 8.3

![](https://secure.gravatar.com/avatar/086ce9d4d1abdfcc4d60ea3232050b148c848c0d9e0a7d098d97cdb7c7c792f1?
s=60&d=retro&r=g)

### 󠀁[Very good plugin](https://wordpress.org/support/topic/very-good-plugin-3014/)󠁿

 [pradhanmukesh2008](https://profiles.wordpress.org/pradhanmukesh2008/) September
18, 2025

Its Amazing

![](https://secure.gravatar.com/avatar/8c376f3504515480cbab4656c32a4cadf888525ac75555cc4c13df3e07803782?
s=60&d=retro&r=g)

### 󠀁[No option to turn off the legacy rest api](https://wordpress.org/support/topic/no-option-to-turn-off-the-legacy-rest-api/)󠁿

 [thomasjarvisdesign](https://profiles.wordpress.org/thomasjarvisdesign/) January
22, 2025

For some reason our clean install of woocommerce has the legacy rest api enabled
and greyed out. Installing this plugin does not give us an option to turn off the
api! Anyone got a solution on how to turn off the legacy rest api?

![](https://secure.gravatar.com/avatar/67e7002a9b4a269740e9ab28f480b451c8833f6d76bcc0d6f12de4e642233704?
s=60&d=retro&r=g)

### 󠀁[Doesn’t work](https://wordpress.org/support/topic/doesnt-work-3171/)󠁿

 [easilyconfused](https://profiles.wordpress.org/easilyconfused/) December 3, 2024

Installed in order to use Stripe, but despite jumping through many hoops, I still
don’t have Stripe as an option? I wasted an afternoon for nothing.

![](https://secure.gravatar.com/avatar/d320db174d3d54ead6779a082c6e04531ecfb91583937c5f88fa61dfc36f6cd0?
s=60&d=retro&r=g)

### 󠀁[v1.0.4 caused critical error, or was it WC v9.0.0?](https://wordpress.org/support/topic/v1-0-4-caused-critical-error-or-was-it-wc-v9-0-0/)󠁿

 [essjay88](https://profiles.wordpress.org/essjay88/) June 19, 2024

Forced plugin install (not even an advisory notice) and either the auto updated 
WC 9.0 or the v1.0.4 plugin update crashed my client site. Critical error. I have
rolled back to WC 8.9.3 and plugin v.1.0.3 to get the site back following advice
at https://wordify.com/blog/woocommerce-9-0-0-update-class-wc_legacy_api-not-found/

 [ Read all 28 reviews ](https://wordpress.org/support/plugin/woocommerce-legacy-rest-api/reviews/)

## Contributors & Developers

“WooCommerce Legacy REST API” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ Automattic ](https://profiles.wordpress.org/automattic/)
 *   [ Néstor Soriano Vilchez ](https://profiles.wordpress.org/konamiman/)

“WooCommerce Legacy REST API” has been translated into 5 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/woocommerce-legacy-rest-api/contributors)
for their contributions.

[Translate “WooCommerce Legacy REST API” into your language.](https://translate.wordpress.org/projects/wp-plugins/woocommerce-legacy-rest-api)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/woocommerce-legacy-rest-api/),
check out the [SVN repository](https://plugins.svn.wordpress.org/woocommerce-legacy-rest-api/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/woocommerce-legacy-rest-api/)
by [RSS](https://plugins.trac.wordpress.org/log/woocommerce-legacy-rest-api/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0 2023-11-01

First version, replicates the WooCommerce Legacy REST API v3.1.0 present in WooCommerce
8.3.

#### 1.0.1 2024-01-08

 * Replace the text domain for human-readable strings from ‘woocommerce’ to ‘woocommerce-
   legacy-rest-api’.
 * Add sanitization for data received via query string arguments and the $_SERVER
   array.

#### 1.0.2 2024-05-01

 * Add a dismissable admin notice indicating that the Legacy REST API is not compatible
   with HPOS.
 * The notice will appear if the orders table is (or has been) selected as the orders
   data store in the WooCommerce features settings page, and will disappear when
   that ceases to be true. Once the notice is dismissed it will never appear again.

#### 1.0.3 2024-05-15

 * Fix a bug introduced in 1.0.2 that caused a fatal error when checking if HPOS
   is enabled.

#### 1.0.4 2024-05-16

 * Correct a problem in which the attempted removal of admin notices (warning of
   HPOS incompatibility) could lead to a fatal error during plugin deactivation.

#### 1.0.5 xxxx-xx-xx

 * Fix the usage of woocommerce_new_order action hook to avoid a fatal errors.

## Meta

 *  Version **1.0.5**
 *  Last updated **1 year ago**
 *  Active installations **400,000+**
 *  WordPress version ** 6.2 or higher **
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [Danish](https://da.wordpress.org/plugins/woocommerce-legacy-rest-api/), [Dutch](https://nl.wordpress.org/plugins/woocommerce-legacy-rest-api/),
   [English (US)](https://wordpress.org/plugins/woocommerce-legacy-rest-api/), [French (France)](https://fr.wordpress.org/plugins/woocommerce-legacy-rest-api/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/woocommerce-legacy-rest-api/),
   and [Spanish (Spain)](https://es.wordpress.org/plugins/woocommerce-legacy-rest-api/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/woocommerce-legacy-rest-api)
 * Tags
 * [rest-api](https://wordpress.org/plugins/tags/rest-api/)[woo](https://wordpress.org/plugins/tags/woo/)
   [woocommerce](https://wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://wordpress.org/plugins/woocommerce-legacy-rest-api/advanced/)

## Ratings

 1.5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/woocommerce-legacy-rest-api/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/woocommerce-legacy-rest-api/reviews/?filter=4)
 *  [  2 3-star reviews     ](https://wordpress.org/support/plugin/woocommerce-legacy-rest-api/reviews/?filter=3)
 *  [  2 2-star reviews     ](https://wordpress.org/support/plugin/woocommerce-legacy-rest-api/reviews/?filter=2)
 *  [  22 1-star reviews     ](https://wordpress.org/support/plugin/woocommerce-legacy-rest-api/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/woocommerce-legacy-rest-api/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/woocommerce-legacy-rest-api/reviews/)

## Contributors

 *   [ Automattic ](https://profiles.wordpress.org/automattic/)
 *   [ Néstor Soriano Vilchez ](https://profiles.wordpress.org/konamiman/)

## Support

Issues resolved in last two months:

     0 out of 1

 [View support forum](https://wordpress.org/support/plugin/woocommerce-legacy-rest-api/)