update_woocommerce_order
Update a WooCommerce order destructive
Description
Change a WooCommerce order: status (pending, processing, on-hold, completed, cancelled, refunded, failed; cancelling puts the stock back, most status changes email the buyer, and 'refunded' moves NO money: use refund_woocommerce_order), note (an internal note; noteToCustomer:true emails it to the buyer), shipping and billing details (only the fields given change), metaData [{key, value}]. An internal note and metaData apply at once and are read back. A status, address or buyer note is a preview until confirm:true: show the user what changes, get a yes, then call again with confirm:true. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
idrequired | string | the order number |
status | "pending" | "processing" | "on-hold" | "completed" | "cancelled" | "refunded" | "failed" | |
note | string | a note on the order |
noteToCustomer | boolean | true: the buyer sees the note and is emailed it |
shipping | object | first_name, last_name, company, address_1, address_2, city, state, postcode, country (two letters), phone |
billing | object | the same fields plus email |
metaData | object[] | |
metaData[].keyrequired | string | |
metaData[].valuerequired | string | number | boolean | object[] | object | null | |
confirm | boolean | true to apply a status, address or buyer-note change |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/update_woocommerce_order.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"update_woocommerce_order","arguments":{"id":"<string>"}}}
CLI
hermoso call update_woocommerce_order --json '{"id":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
refund_woocommerce_orderRefund a WooCommerce orderlist_woocommerce_ordersList WooCommerce ordersget_woocommerce_stockGet WooCommerce stockset_woocommerce_stockSet or adjust WooCommerce stock