> For the complete documentation index, see [llms.txt](https://docs.ownchat.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ownchat.app/bot/connections/woo-commerce/get-all-orders.md).

# Get All Orders

### Overview &#x20;

The Get All Orders action retrieves all orders placed in your WooCommerce store. The response is stored in a variable for use in downstream workflow steps, enabling order management, tracking, and automation within your bot.

{% embed url="<https://app.supademo.com/demo/cmpmlfeig4hyuqms9j1jee5mo?utm_source=link>" %}

### Prerequisites &#x20;

Before configuring this action, ensure the following:

* You have an active WooCommerce connection configured in Ownchat
* The bot you want to configure is already created in the Bot Builder
* The customer ID variable is available from a previous workflow node if filtering by customer

### Step 1: Add a Get All Orders Node &#x20;

1. Click Add Node in the Bot Builder to create a new action node.

{% embed url="<https://app.supademo.com/demo/cmpw4fwr80002320jtsk1qcbp?utm_source=link>" %}

2. Click WooCommerce to expand the available actions.<br>

{% embed url="<https://app.supademo.com/demo/cmpw4icdh0008320jjjae113b?utm_source=link>" %}

3. Click Get All Orders to open the configuration form.

{% embed url="<https://app.supademo.com/demo/cmpw4jiom00070l0jeu26kl98?utm_source=link>" %}

### Step 2: Select Connection &#x20;

From the dropdown, select your WooCommerce connection (e.g., woocommerce-ownchat).<br>

{% embed url="<https://app.supademo.com/demo/cmpw516nw00pa1v0j2v1eekca?utm_source=link>" %}

### Step 3: Add Parameters &#x20;

1. Click Add variable to include additional parameters for the action.

{% embed url="<https://app.supademo.com/demo/cmpw52i4h00pc1v0jsj0zoe3a?utm_source=link>" %}

2. Search for and select customerid from the variables list.<br>

{% embed url="<https://app.supademo.com/demo/cmpw56nm501ib0m0jkycb1488?utm_source=link>" %}

### Step 4: Store the Response &#x20;

From the variable dropdown, select or create a variable to store the orders response returned by WooCommerce. This variable can be referenced in downstream workflow steps to process or display order data.

{% embed url="<https://app.supademo.com/demo/cmpw59pud01id0m0j6c54vchn?utm_source=link>" %}

### Step 5: Save and Publish &#x20;

1. Click Create to save the action configuration.

{% embed url="<https://app.supademo.com/demo/cmpw5avwj0057320jur9b9sok?utm_source=link>" %}

2. Click Publish to deploy the bot with the new action.

{% embed url="<https://app.supademo.com/demo/cmpw5etei00xo0k0iycq4y688?utm_source=link>" %}

### Notes &#x20;

* The customerid variable filters the results to orders associated with a specific customer. Ensure this variable is captured in an earlier workflow node before this action is reached.
* The stored response variable contains the order data returned by WooCommerce and can be used in any subsequent workflow step.
* Changes take effect only after clicking Publish.

### Related Actions &#x20;

* WooCommerce — Get Order Details — Retrieve details of a specific order
* WooCommerce — Get All Products — Retrieve all products from your WooCommerce store
* Bot Builder — Node Configuration — General guide to adding and configuring nodes
