Knowledge Base

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.

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 PickMethodEndpointPurpose
List OrdersGET/wp-json/wc/v3/ordersRetrieve a page of orders
Get OrderGET/wp-json/wc/v3/orders/{id}Retrieve one order
List ProductsGET/wp-json/wc/v3/productsRetrieve a page of products
Get ProductGET/wp-json/wc/v3/products/{id}Retrieve one product
List CustomersGET/wp-json/wc/v3/customersRetrieve a page of customers
System StatusGET/wp-json/wc/v3/system_statusRetrieve WooCommerce system information
Create OrderPOST/wp-json/wc/v3/ordersCreate an order
Update OrderPUT/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.

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

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:

OptionWhen to use it
NoneThe endpoint permits unauthenticated access
Saved KeyYou want to use compatible credentials already stored in AnyAPI
WC Consumer Key/SecretYou are authenticating with a WooCommerce Consumer Key and Consumer Secret
Bearer TokenYour 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

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.

ResultPossible causesWhat to check
400 Bad RequestInvalid parameters, values, or request bodyRead the error message and compare the request with the endpoint documentation
401 UnauthorizedMissing, invalid, or rejected authenticationCheck the selected authentication option and credentials
403 ForbiddenInsufficient permissions or a security restrictionCheck key permissions, the associated user’s access, and relevant security rules
404 Not FoundIncorrect route, missing resource, or routing issueVerify the endpoint path, resource ID, and WordPress permalink configuration
500 Internal Server ErrorA server-side failure while processing the requestReview 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. 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. Then test the actual delivery and review the destination’s response.

Use the JSON Filter guide when you need to select order fields or build a custom payload.

Updated on November 1, 2026

Share This Article

Was it helpful ?

© Copyright 2025・AnyAPI・All rights reserved