A WooCommerce order API integration lets your store automatically send order data to an external REST API or webhook when a matching order event occurs.
With AnyAPI, you configure the destination endpoint, authentication, trigger, and payload inside your WordPress dashboard. You do not need to write a custom PHP integration.
This guide walks through creating, testing, and managing a WooCommerce order API integration using the step-by-step wizard.

How WooCommerce order API integration works
AnyAPI connects a WooCommerce order event to an outgoing HTTP request:
- An order event occurs in WooCommerce.
- AnyAPI checks whether the event matches an enabled integration.
- The plugin prepares the order payload using the selected filter mode.
- AnyAPI sends the request to your configured endpoint.
- The result is recorded in API Logs.
For example, you can send order details to a fulfilment service when an order moves to Processing, or notify another system when an order is completed.
The destination API must support the HTTP method, authentication, and payload format configured in your integration.
Before setting up your WooCommerce order API integration
You will need:
- An active WordPress site with WooCommerce and AnyAPI installed.
- The destination API or webhook URL.
- The HTTP method required by the receiving service.
- Authentication credentials, if required.
- The receiving API’s documentation, including its required fields and payload structure.
If you are testing AnyAPI for the first time, start with a temporary webhook endpoint and a test order containing dummy customer details.
Step 1: Create a WooCommerce order API integration
Open AnyAPI → Order API in your WordPress dashboard and click + New Integration.
Complete the connection details in the setup wizard.
Name your WooCommerce order API integration
Choose a descriptive name that identifies the destination and purpose.
For example:
- Warehouse Processing Order
- CRM Order Sync
- Slack Order Notification
API Endpoint URL
Enter the full destination URL, including the API path and version where required.
Use the endpoint specified by the receiving service. A service’s homepage URL is usually different from its API endpoint.
For a webhook integration, paste the webhook URL supplied by that service.
HTTP Method
Select the method required by the destination API.
The default is POST. Other available methods include GET, PUT, PATCH, and DELETE.
However, not every endpoint accepts POST or handles request data in the same way, so follow the provider’s documentation.
API Key
Select a stored credential if the destination requires Basic Auth or Bearer Token authentication.
If the endpoint does not require either method, leave this field empty. For example, a Slack Incoming Webhook uses its unique URL rather than a separately selected Basic Auth or Bearer Token credential.
Treat webhook URLs containing secret tokens as credentials.
To create or review a stored credential, see API Key Management.

Click Next to continue.
Step 2: Choose your WooCommerce order API integration trigger
Select the order event that should fire your WooCommerce order API integration.
AnyAPI provides nine trigger options:
| Trigger | Fires when | Plan |
|---|---|---|
| Watch Orders | Any order status change | Starter and Lite |
| New Order | Order created in Pending status | Starter and Lite |
| Processing | Order moves to Processing | Starter and Lite |
| On Hold | Order moves to On Hold | Lite |
| Completed | Order moves to Completed | Lite |
| Cancelled | Order moves to Cancelled | Lite |
| Refunded | Order moves to Refunded | Lite |
| Failed | Order moves to Failed | Lite |
| Pending | Order set to Pending; alias option | Lite |
Starter includes Watch Orders, New Order, and Processing. Lite unlocks all nine triggers.
Choose a trigger that matches when the receiving system needs the order data. For example, Processing may suit a fulfilment workflow, while Completed may suit a notification after fulfilment.
When to use Watch Orders
Watch Orders sends a request whenever an order changes status.
This is useful when the destination needs updates throughout the order lifecycle. However, one order can generate multiple requests as it moves through different statuses.
Therefore, choose a specific status trigger if the destination only needs the order at one stage. Also check whether multiple enabled integrations could send the same order to the same destination.

Select your trigger and click Next.
Step 3: Configure your WooCommerce order API integration payload
The payload is the order data sent with the request.
AnyAPI provides three filter modes for your WooCommerce order API integration. Choose the mode that matches the receiving API’s requirements.
Basic mode — Starter and Lite
Basic mode sends the full order data object without requiring you to select individual fields.
The payload includes order information such as the order ID, status, totals, billing and shipping addresses, line items, tax lines, shipping lines, fee lines, coupon lines, and metadata.
This mode can suit an endpoint designed to accept a complete WooCommerce order object.
Before using Basic mode with a production service, inspect a test request to confirm that the payload contains the expected fields and structure.
Because the full payload can include customer details and metadata, check that the destination needs the information you are sending.
Advanced mode — Lite
Advanced mode lets you select which available order fields to include.
To configure it:
- Select Advanced.
- Browse the available field categories: Order, Billing, Shipping, Meta Data, Line Items, Tax Lines, Shipping Lines, Fee Lines, and Coupon Lines.
- Select the fields required by the receiving API.
- Review your selection before continuing.
For example, a destination may need only the order ID, customer email address, and total.
Selecting fewer fields reduces unnecessary data. However, the resulting structure must still match what the receiving API expects.
Expert mode — Lite
Expert mode provides a JSON editor for configuring a custom payload.
Use it when you need more control over the outgoing structure than the field selector provides.
Follow the syntax and field references supported by your installed AnyAPI version. Before using the integration in production, inspect a test request to confirm that the JSON structure, field names, values, and data types are correct.
See JSON Filter Mode for the detailed configuration guide.

After configuring your payload, click Next.
Step 4: Save your WooCommerce order API integration
Review the WooCommerce order API integration before saving:
- Integration name
- Endpoint URL
- HTTP method
- Selected authentication credential
- Order trigger
- Filter mode and payload configuration
Return to an earlier wizard step if anything needs changing.
Click Save Integration, then confirm that the saved integration is enabled.
Saving the configuration does not confirm that the receiving API will accept it. Before relying on the integration for live orders, verify that it works as expected.
Test your WooCommerce order API integration
Check both the outgoing request and the destination’s handling of it. This helps you confirm that the data arrives and produces the expected result.
Start with a temporary webhook endpoint
A temporary endpoint such as webhook.site helps you inspect what AnyAPI sends before connecting the final service.
- Open webhook.site and copy your unique test URL.
- Use that URL as the integration endpoint.
- Leave the API Key field empty for this test endpoint.
- Save and enable the integration.
- Create a test order using dummy customer details.
- Perform the order event that matches your selected trigger.
- Inspect the request received by webhook.site.
- Check the corresponding entry in AnyAPI’s API Logs.
Confirm that the HTTP method, payload structure, and field values match your expectations.
For a complete walkthrough, see WooCommerce API Integration Setup.
Test the real destination
After confirming the outgoing payload:
- Replace the temporary URL with the real API endpoint.
- Select the required authentication credential.
- Adjust the method and payload to match the destination’s documentation.
- Save the integration and trigger another test request.
- Review the HTTP status and response in API Logs.
- Confirm that the expected record or action appears in the receiving system.
A request arriving at webhook.site confirms delivery to the test endpoint. However, you still need to verify that the production API accepts and processes the request correctly.
Manage your WooCommerce order API integrations
Open AnyAPI → Order API to review your saved integrations.
Edit an integration
Click the integration name or edit icon to reopen the wizard with its saved configuration.
After changing the endpoint, credential, trigger, or payload, save the configuration and run another test.
Enable or disable an integration
Use the status switch to pause or resume an integration.
Disabling an integration stops future matching events from sending requests through that integration without deleting its configuration.
Delete an integration
Use the delete control to permanently remove an integration you no longer need.
Check that it is not supporting an active workflow before deleting it.

Troubleshoot a WooCommerce order API integration
Start with API Logs & Troubleshooting.
Read the HTTP status and response together. A status code identifies the type of result, but it does not always reveal the exact cause.
| Symptom | Possible cause | What to check |
|---|---|---|
| No log entry appears | The integration is disabled, or the tested event did not match the trigger | Confirm the integration is enabled and perform the matching event with a test order |
| HTTP 400 | Missing fields, invalid values, or an incompatible payload structure | Read the response and compare the outgoing payload with the destination’s requirements |
| HTTP 401 | Missing, invalid, or expired authentication | Review the stored credential and required authentication method |
| HTTP 403 | Permission, scope, account, IP, or security restrictions | Check the provider’s response and access requirements |
| HTTP 404 | The API route or requested resource cannot be found | Check the full endpoint path, API version, and resource ID |
| HTTP 429 | The destination is rate limiting requests | Review the response and check the automatic retry result |
| HTTP 500 | The receiving server encountered a processing error | Review the response, validate the request, and check service or server logs |
| HTTP 502, 503, or 504 | A temporary problem at the destination or an upstream service | Check service availability and the automatic retry result |
| No HTTP response | A connection, DNS, timeout, TLS, or firewall issue | Check endpoint availability and the recorded error |
| The same order arrives multiple times | Multiple matching events, overlapping integrations, or a repeated delivery attempt | Review enabled integrations, order events, logs, and the destination’s duplicate-handling behaviour |
Changing filter mode alone does not resolve every HTTP 400 response. The payload must match the receiving API’s actual requirements.
Likewise, a 500 response does not prove that every part of the request is correct. Review the request and receiving service together.
Automatic retry for temporary failures
AnyAPI automatically retries a request once after certain temporary failures:
- HTTP 429
- HTTP 502
- HTTP 503
- HTTP 504
- A connection failure
When the receiving server provides a Retry-After header, AnyAPI follows it before retrying.
The retry runs in the background without blocking the WooCommerce order from being saved.
Before manually sending the order again, check the retry result. Also check whether the destination has already processed the first attempt, especially for workflows that create records or trigger fulfilment.
Starter API call throttling
Starter includes unlimited API calls, with throttling after 500 calls in a month. This is not a fixed 500-call monthly cap.
Lite includes unlimited API calls without the Starter throttle.
If you see an older message referring to a monthly call limit, check your installed plugin version and the current Pricing information before treating it as a permanent block.
Next steps
After testing your WooCommerce order API integration, use these guides to refine and monitor it:
- API Logs & Troubleshooting — Inspect responses and investigate failed requests.
- JSON Filter Mode — Configure the order fields and payload structure.
- API Key Management — Create and manage Basic Auth and Bearer Token credentials.
- Feature Comparison — Compare Starter and Lite.
- WooCommerce API Integration Setup — Walk through a test integration.
- WooCommerce Slack Notification Guide — Follow a destination-specific example.
Frequently Asked Questions
Order API Integration FAQ
Which HTTP method should I use to send WooCommerce orders to an API?
AnyAPI defaults to POST, which is correct for most APIs that receive new data, including webhooks and most CRM or messaging endpoints. If the API you are integrating with specifies a different method — PUT or PATCH to update an existing record, or GET or DELETE — you can select it in the integration’s first step. Always match the method to what the receiving API’s documentation requires, since sending the wrong one commonly returns an HTTP 405 error.
Can I send WooCommerce order data to more than one API at the same time?
Yes. Each AnyAPI integration targets one endpoint with one trigger, but you can create as many integrations as you need, and they run independently. For example, one integration can post new orders to a CRM while another sends completed orders to a fulfilment API. All integrations appear on the Order API page, where you can edit, temporarily disable, or permanently delete each one without affecting the others.
When should I use the “Watch Orders” trigger instead of a specific status?
Watch Orders fires on every order status change, so a single integration can capture all order activity — useful when you want one endpoint to receive everything and decide what to do with it. However, for most automations you should choose a specific status such as Processing or Completed, because Watch Orders can send several calls as one order moves through multiple statuses. Picking a specific trigger avoids duplicate API calls and keeps your integration predictable.
What is the difference between Basic, Advanced, and Expert filter modes?
These three modes control what order data AnyAPI sends. Basic mode, available on every plan, forwards the complete WooCommerce order object with no configuration. Advanced mode, on the Lite plan, lets you tick exactly which fields to include from a checkbox list and reorder them, keeping the payload lightweight. Expert mode, also on Lite, lets you write raw JSON by hand and insert order data with {{variable}} placeholders — ideal when an API expects a specific structure that differs from WooCommerce’s default order format.
Which WooCommerce order events can trigger an API call, and which are free?
AnyAPI supports nine order triggers, each tied to a WooCommerce status: Watch Orders (any status change), New Order, Processing, On Hold, Completed, Cancelled, Refunded, Failed, and Pending. The free Starter plan includes three — Watch Orders, New Order, and Processing — which cover most new-order automations. The remaining six, including Completed, Cancelled, Refunded, and Failed, unlock on the Lite plan. You select one trigger per integration, so create separate integrations if you need to react to several different statuses.