Update an order
update_orderChanges an order's status and/or adds a note (private, or visible to the customer). Preview first, then confirm. Always show the preview to the user and get their explicit approval before calling again with confirm=true and the preview_id. Refunds must be done in WooCommerce itself. To apply it later instead of now, call with confirm=true, the preview_id AND apply_at (the store's local time, YYYY-MM-DDTHH:MM).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "update_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| store | No | Store address or id. Leave empty if you have only one store. | |
| status | No | ||
| confirm | No | Set true ONLY after the user approved the preview. | |
| apply_at | No | Only with confirm=true: apply later. Store local time, YYYY-MM-DDTHH:MM, between 5 minutes and 90 days from now. | |
| order_id | No | ||
| preview_id | No | The preview_id returned by the preview call (required with confirm=true). | |
| note_to_customer | No | true = the customer is emailed the note. |