> 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/update-order-status.md). Agents can also search and read this documentation through its [MCP server](https://docs.ownchat.app/~gitbook/mcp).

# Update Order Status

### Overview &#x20;

The Update Order Status action changes the status of an existing WooCommerce order — such as processing, completed, cancelled, or refunded — and updates the payment status in the same action. Use this to keep order progress and payment state in sync automatically through your bot workflow.

{% embed url="<https://app.supademo.com/demo/cmpno2s5e0e98qmxcdcgy2mjt?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 Order ID is available as a variable from a previous workflow node

### Step 1: Add an Update Order Status Node &#x20;

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

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

2. Go to the Connections tab within the node editor.

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

2. Click WooCommerce to expand the available actions.

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

2. Click Update Order Status to open the configuration form.<br>

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

### Step 2: Configure the Action &#x20;

#### 2.1 — Name the Action &#x20;

Enter a descriptive name in the Action name field (e.g., Update Order Status).

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

#### 2.2 — Select Connection &#x20;

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

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

### Step 3: Set the Order ID &#x20;

1. Click Add variable to open the variable selector.
2. Select orderid from the variables list to populate the Order ID field.<br>

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

### Step 4: Set Order and Payment Status &#x20;

#### 4.1 — Order Status &#x20;

In the Order Status field, enter the status to apply to the order (e.g., processing, completed, cancelled, refunded).

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

#### 4.2 — Payment Status &#x20;

In the Payment Status field, enter the payment status to apply alongside the order status update.<br>

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

***

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

From the variable dropdown, select or create a variable to store the update response returned by WooCommerce.

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

This can be referenced in downstream nodes to confirm the update or trigger a next workflow step.<br>

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

***

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

1. Click Create to save the action configuration.<br>

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

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

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

### Notes &#x20;

* The Order ID is required. Ensure it is available as a variable from an earlier workflow node before this action is reached.
* Both Order Status and Payment Status fields are available in this action. Enter values for each field you want to update.
* Status values are case-sensitive in WooCommerce — use lowercase consistently (e.g., completed, not Completed).
* Changes take effect only after clicking Publish.

### Related Actions &#x20;

* WooCommerce — Get Order Status — Retrieve the current status of a specific order
* WooCommerce — Get All Orders — Retrieve all orders from your WooCommerce store
* WooCommerce — Get Customer Details — Retrieve details of an existing customer
* Bot Builder — Node Configuration — General guide to adding and configuring nodes
