---
title: "WooCommerce REST API: Endpoints, Authentication and Testing"
description: "The WooCommerce REST API lets applications read and update store data through HTTP requests. Because AnyAPI includes a built-in tester, you can inspect your current store’s API responses directly from WordPress. This guide explains common endpoints, authentication options, and response…"
url: "https://anyapiplugin.com/docs/woocommerce-rest-api/"
updated: "2026-11-01"
category: Core Features
---

# WooCommerce REST API: Endpoints, Authentication and Testing

The WooCommerce REST API lets applications read and update store data through HTTP requests. Because AnyAPI includes a built-in tester, you can inspect your current store’s API responses directly from WordPress.

This guide explains common endpoints, authentication options, and response details. For a complete first request, follow the [REST API Tester Quick Start](https://anyapiplugin.com/docs/quick-start-rest-api-tester/).

## What Is the WooCommerce REST API?

The WooCommerce REST API provides endpoints for resources such as orders, products, and customers. To access these resources, combine an HTTP method with an endpoint path.

For example, a GET request to `/wp-json/wc/v3/orders` retrieves a page of orders. By comparison, a request to `/wp-json/wc/v3/orders/123` retrieves only order `123`, provided your credentials have permission to access it.

The method determines the action. GET reads data, while POST and PUT can create or update resources. Therefore, start with a GET request when checking your connection.

## Common WooCommerce REST API Endpoints

AnyAPI’s **Quick Pick** buttons provide shortcuts to common requests:

| Quick Pick | Method | Endpoint | Purpose |
| --- | --- | --- | --- |
| List Orders | GET | `/wp-json/wc/v3/orders` | Retrieve a page of orders |
| Get Order | GET | `/wp-json/wc/v3/orders/{id}` | Retrieve one order |
| List Products | GET | `/wp-json/wc/v3/products` | Retrieve a page of products |
| Get Product | GET | `/wp-json/wc/v3/products/{id}` | Retrieve one product |
| List Customers | GET | `/wp-json/wc/v3/customers` | Retrieve a page of customers |
| System Status | GET | `/wp-json/wc/v3/system_status` | Retrieve WooCommerce system information |
| Create Order | POST | `/wp-json/wc/v3/orders` | Create an order |
| Update Order | PUT | `/wp-json/wc/v3/orders/{id}` | Update an order |

Replace `{id}` with an existing resource ID before sending an individual-resource request.

List endpoints use pagination, so one response does not necessarily contain every record. For example, `/wp-json/wc/v3/orders?per_page=25&page=2` requests the second page with up to 25 orders.

For additional endpoints and parameters, consult the [official WooCommerce REST API documentation](https://woocommerce.github.io/woocommerce-rest-api-docs/).

## Test the WooCommerce REST API in AnyAPI

To begin, open **AnyAPI → REST API** in your WordPress dashboard.

The tester sends requests to the **current website’s WooCommerce API**. Therefore, use it for your store’s endpoints rather than arbitrary external websites.

On desktop, the request controls appear on the left and the Response panel appears on the right.

[![AnyAPI WooCommerce REST API tester with Quick Pick buttons and request controls](https://anyapiplugin.com/wp-content/uploads/2025/06/docs-woocommerce-rest-api-1-1024x451.png)](https://anyapiplugin.com/wp-content/uploads/2025/06/docs-woocommerce-rest-api-1.png)

### Choose a Method and Endpoint

Select a **Quick Pick** button. Alternatively, enter the endpoint path manually.

For an initial check, choose **List Orders** and confirm that the method is **GET**. Because GET reads data without creating or updating an order, it is suitable for checking your connection.

In contrast, POST, PUT, PATCH, and DELETE requests can change store data, depending on the endpoint. Before sending one, confirm that you intend to perform the corresponding action.

### Configure WooCommerce REST API Authentication

The tester provides four authentication options:

| Option | When to use it |
| --- | --- |
| None | The endpoint permits unauthenticated access |
| Saved Key | You want to use compatible credentials already stored in AnyAPI |
| WC Consumer Key/Secret | You are authenticating with a WooCommerce Consumer Key and Consumer Secret |
| Bearer Token | Your site’s authentication setup accepts the supplied Bearer token |

For the standard WooCommerce order-list test, select **WC Consumer Key/Secret** and enter the credentials generated under **WooCommerce → Settings → Advanced → REST API**.

A key with **Read** permission is sufficient for this GET walkthrough, provided its associated user can access the requested resource.

However, these WooCommerce credentials are separate from the credentials an external destination requires for an outgoing order integration.

### Add Headers or a Request Body

Expand **Custom Headers** if the endpoint requires additional headers.

For a basic GET order-list request, leave the request body empty. However, requests that create or update resources may need a JSON body containing the fields specified by the endpoint.

Once the request is configured, click **Send Request**.

## Read the WooCommerce REST API Response

The Response panel helps you inspect both the result and the returned data.

[![WooCommerce REST API response showing HTTP 200 and formatted order JSON in AnyAPI](https://anyapiplugin.com/wp-content/uploads/2025/06/docs-woocommerce-rest-api-2-1024x567.png)](https://anyapiplugin.com/wp-content/uploads/2025/06/docs-woocommerce-rest-api-2.png)

### HTTP Status

The status code indicates how the server handled the request. For example, `200` normally indicates a successful GET request.

However, the status code alone does not explain every problem. Read the response body as well, because it may include a more specific error code and message.

### JSON Body

Use **Pretty** to inspect formatted JSON. Alternatively, select **Raw** to view the unformatted response.

An order response can include fields such as `id`, `status`, `billing`, and `line_items`. As a result, you can examine available data before planning a mapping or integration.

A successful list request may also return an empty array, `[]`. In that case, no records matched the request; an empty result does not automatically indicate an authentication failure.

### Headers and Timing

In addition to the body, inspect the response headers under **Headers**. For paginated collections, look for values such as `X-WP-Total` and `X-WP-TotalPages` when provided.

The panel also displays request timing, which can help identify a slow request. However, compare several measurements before treating one slow response as a general performance problem.

## Troubleshoot WooCommerce REST API Requests

If a request fails, compare its method, path, authentication, and response message before changing the configuration.

| Result | Possible causes | What to check |
| --- | --- | --- |
| 400 Bad Request | Invalid parameters, values, or request body | Read the error message and compare the request with the endpoint documentation |
| 401 Unauthorized | Missing, invalid, or rejected authentication | Check the selected authentication option and credentials |
| 403 Forbidden | Insufficient permissions or a security restriction | Check key permissions, the associated user’s access, and relevant security rules |
| 404 Not Found | Incorrect route, missing resource, or routing issue | Verify the endpoint path, resource ID, and WordPress permalink configuration |
| 500 Internal Server Error | A server-side failure while processing the request | Review the response and relevant server or PHP logs |

For a GET test, do not automatically change a key to Read/Write when you see a 403 response. Instead, establish why access was denied before changing its permissions.

If you are investigating an outgoing Order API integration instead, use the [API Logs & Troubleshooting guide](https://anyapiplugin.com/docs/api-logs-troubleshooting/). The tester’s manual response and an integration’s delivery log serve different purposes.

## From API Testing to Order Automation

The tester helps you inspect your current store’s API. By contrast, **Order API Integration** sends order data to an external destination when a configured trigger occurs.

A successful GET request confirms that the tested endpoint and credentials worked for that request. However, it does not prove that an external destination will accept an outgoing integration payload.

To build an outgoing connection, follow the [WooCommerce API Integration Setup guide](https://anyapiplugin.com/docs/woocommerce-api-integration-setup/). Then test the actual delivery and review the destination’s response.

Use the [JSON Filter guide](https://anyapiplugin.com/docs/json-filter-mode/) when you need to select order fields or build a custom payload.
