WooCommerce - Update Order
Description
Section titled “Description”This module allows updating the status of an order, adding notes, modifying addresses, and adding tracking information.
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
credentials_id | string | Yes | Credentials ID |
order_id | number | Yes | Order ID |
status | string | No | New status |
customer_note | string | No | Customer-visible note |
add_note | string | No | Internal order note |
note_to_customer | boolean | No | Send note to customer |
tracking_number | string | No | Tracking number |
tracking_provider | string | No | Shipping company |
tracking_url | string | No | Tracking URL |
billing_* | string | No | Billing fields |
shipping_* | string | No | Shipping fields |
transaction_id | string | No | Payment transaction ID |
Credentials
Section titled “Credentials”| Field | Description | Example |
|---|---|---|
url | WooCommerce store base URL | https://my-store.com |
consumer_key | REST API Consumer Key | ck_xxxx... |
consumer_secret | REST API Consumer Secret | cs_xxxx... |
Order Statuses
Section titled “Order Statuses”| Value | Description | Typical transition |
|---|---|---|
pending | Pending payment | -> processing |
processing | Processing | -> completed |
on-hold | On hold | -> processing |
completed | Completed | Final |
cancelled | Cancelled | Final |
refunded | Refunded | Final |
failed | Failed | -> pending |
Output
Section titled “Output”{ "success": true, "order": {}, "order_id": 1234, "fields_updated": ["status", "tracking"], "note_added": {}, "message": "Order 1234 updated successfully"}Usage Example
Section titled “Usage Example”Mark as completed with tracking
Section titled “Mark as completed with tracking”{ "credentials_id": "woo_tienda", "order_id": 1234, "status": "completed", "tracking_number": "1Z999AA10123456784", "tracking_provider": "UPS", "tracking_url": "https://www.ups.com/track?tracknum=1Z999AA10123456784"}Add internal note
Section titled “Add internal note”{ "credentials_id": "woo_tienda", "order_id": 1234, "add_note": "Customer contacted by phone. Confirms shipping address."}Cancel order
Section titled “Cancel order”{ "credentials_id": "woo_tienda", "order_id": 1234, "status": "cancelled", "add_note": "Cancelled at customer request"}- Changing to
completedsends a completion email to the customer - Changing to
cancelleddoes not automatically refund - Notes with
note_to_customer: truesend email - Tracking is saved as order meta data
- Some statuses do not allow direct transition (e.g., from completed to processing)
Related Nodes
Section titled “Related Nodes”- WooGetOrders - Get orders to then update them
- WooGetCustomers - Get order customer data
- WooUpdateProduct - Update order product stock