Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update Order Status

Overview

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.

Prerequisites

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

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

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

  1. Click WooCommerce to expand the available actions.

  1. Click Update Order Status to open the configuration form.

Step 2: Configure the Action

2.1 β€” Name the Action

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

2.2 β€” Select Connection

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

Step 3: Set the Order ID

  1. Click Add variable to open the variable selector.

  2. Select orderid from the variables list to populate the Order ID field.

Step 4: Set Order and Payment Status

4.1 β€” Order Status

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

4.2 β€” Payment Status

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


Step 5: Store the Response

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

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


Step 6: Save and Publish

  1. Click Create to save the action configuration.

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

Notes

  • 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.

  • 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

Last updated