Knowledge Base

Use AnyAPI’s REST API tester to retrieve WooCommerce orders directly from your WordPress dashboard. In this walkthrough, you will create read-only credentials, send a GET request, and inspect the JSON response.

The tester connects to your current website’s WooCommerce API. It is available on both Starter and Lite, so you can follow this guide without a paid license.

Time required: About 5 minutes
Request used: GET /wp-json/wc/v3/orders
Expected result: An HTTP response and a JSON order list

Before Using the REST API Tester

You will need:

  • WordPress with WooCommerce installed and activated.
  • AnyAPI installed and activated.
  • Access to create WooCommerce REST API keys.
  • An existing test order if you want a non-empty order response.

An empty store can still return a successful response. However, an existing test order makes it easier to inspect fields such as the order ID, status, and line items.

Step 1: Create Credentials for the REST API Tester

Go to WooCommerce → Settings → Advanced → REST API and click Add key.

WooCommerce REST API key settings with the Add key button

Complete the key details:

FieldValue
DescriptionAnyAPI Tester
UserA user with permission to read the orders you want to test
PermissionsRead

Read permission is sufficient because this walkthrough retrieves data without creating or updating orders.

WooCommerce API key details form with Read permission selected

Click Generate API key, then save the Consumer Key and Consumer Secret securely. Copy the Secret before leaving the generated-key screen.

For authentication details, see the official WooCommerce REST API documentation.

Step 2: Open the REST API Tester

In your WordPress admin sidebar, go to AnyAPI → REST API.

On desktop, the interface has request controls on the left and a Response panel on the right. The request controls include Quick Pick buttons, the HTTP method, endpoint path, authentication, and Custom Headers.

AnyAPI REST API tester with Quick Pick buttons and side-by-side request and response panels

Step 3: Select the Orders Endpoint

Click List Orders in the Quick Pick button row.

Confirm that the request uses:

  • Method: GET
  • Endpoint path: /wp-json/wc/v3/orders

You can also select the method and enter the path manually. Keep the request set to GET for this walkthrough.

HTTP method dropdown in the AnyAPI REST API tester

The website address belongs to your current store. Therefore, enter the WooCommerce endpoint path rather than the address of an external service.

You do not need a request body for this GET request.

Step 4: Set REST API Tester Authentication

Under Authentication, select WC Consumer Key/Secret.

Then enter:

  • Consumer Key: The key generated in Step 1.
  • Consumer Secret: Its matching secret.
WC Consumer Key and Consumer Secret authentication fields in AnyAPI

The tester also offers None, Saved Key, and Bearer Token. However, this walkthrough uses WooCommerce Consumer credentials, so keep WC Consumer Key/Secret selected.

If you choose another method for a different test, it must match an authentication mechanism supported by your current site. Selecting Bearer Token alone does not enable Bearer authentication in WooCommerce.

Step 5: Send Your REST API Tester Request

Check the method, endpoint path, and credentials, then click Send Request.

Send Request button in the AnyAPI REST API tester

The Response panel displays the result. For this order-list request, an HTTP 200 response normally means the request succeeded.

REST API tester showing HTTP 200 and a formatted WooCommerce order response

Inspect the JSON Response Body

Use Pretty to read formatted JSON. Alternatively, choose Raw to inspect the unformatted response.

Look for your test order and examine fields such as:

  • id — the order ID.
  • status — the order status.
  • billing — billing information.
  • line_items — products included in the order.

If the body contains [], no orders matched the request. Check whether the store contains an order accessible with the selected credentials.

Check Headers and Request Timing

Open Headers to inspect the response headers. For collection requests, WooCommerce may provide X-WP-Total and X-WP-TotalPages to describe the result count and pagination.

The response panel also displays request timing in milliseconds. Use it as a measurement of this request rather than a complete assessment of your store’s performance.

Copy the Response

Use the copy control to copy the JSON response for further inspection.

Before sharing it with another person, remove any customer information or credentials that are not needed to explain the issue.

Step 6: Check REST API Tester Pagination

The List Orders endpoint returns a page of results rather than every order in one response.

For example, change the path to:

/wp-json/wc/v3/orders?per_page=25&page=1

This requests the first page with up to 25 orders. To request the next page, change page=1 to page=2.

After changing the path, send the request again and compare the returned orders. The pagination headers can help you determine whether more pages are available.

Common REST API Tester Errors

Read both the status code and the response message when troubleshooting.

ResultWhat to check
400 Bad RequestCheck query parameters and values against the endpoint documentation
401 UnauthorizedConfirm the authentication option and the complete Consumer Key/Secret pair
403 ForbiddenCheck Read permission, the associated user’s access, and security restrictions
404 Not FoundVerify the endpoint path, resource ID where applicable, and permalink configuration
500 Internal Server ErrorReview the response and relevant server or PHP logs

For this GET walkthrough, Read remains the appropriate key permission. A 403 response does not automatically mean you need Read/Write access.

If a request succeeds but returns no orders, inspect the response body and request filters before replacing the credentials.

For a broader explanation of endpoints and responses, read the WooCommerce REST API guide.

What to Do After Your REST API Tester Check

You have now tested a request to your current store’s WooCommerce API.

If your next goal is to send orders automatically to an external service, continue with the WooCommerce API Integration Setup guide. That workflow uses an order trigger and a separate destination endpoint.

These guides can also help:

Updated on November 1, 2026

Share This Article

Was it helpful ?

© Copyright 2025・AnyAPI・All rights reserved