Update Order Status
Transitions a WooCommerce order to a new status (e.g. processing to completed, or to cancelled/refunded).
Also known as: mark as completed, mark as shipped, cancel an order, order processing.
| Property | Value |
|---|---|
| Ability slug | mosmcp/update-order-status |
| Wire tool name | mosmcp__update-order-status |
| Category | WooCommerce (mosmcp-woocommerce) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_shop_orders |
| Minimum default role | Shop manager |
| Requires | WooCommerce |
| Annotations | readOnly: false · destructive: true · idempotent: true · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | integer | Yes | — | The order ID (required). |
| status | string (one of pending, processing, on-hold, completed, cancelled, refunded, failed) |
Yes | — | The new order status (required). |
| note | string | — | Optional private note to attach to the status change. |
Output schema
| Field | Type | Required |
|---|---|---|
| success | boolean | |
| message | string | |
| data | object | |
| data.id | integer | |
| data.parent_id | integer | |
| data.number | string | |
| data.order_key | string | |
| data.created_via | string | |
| data.status | string | |
| data.currency | string | |
| data.date_created | string \| null | |
| data.date_modified | string \| null | |
| data.discount_total | string | |
| data.discount_tax | string | |
| data.shipping_total | string | |
| data.shipping_tax | string | |
| data.cart_tax | string | |
| data.total | string | |
| data.total_tax | string | |
| data.prices_include_tax | boolean | |
| data.customer_id | integer | |
| data.customer_ip_address | string | |
| data.customer_user_agent | string | |
| data.customer_note | string | |
| data.billing | object | |
| data.shipping | object | |
| data.payment_method | string | |
| data.payment_method_title | string | |
| data.transaction_id | string | |
| data.date_paid | string \| null | |
| data.date_completed | string \| null | |
| data.line_items | object[] | |
| data.tax_lines | object[] | |
| data.shipping_lines | object[] | |
| data.fee_lines | object[] | |
| data.coupon_lines | object[] | |
| data.refunds | object[] | |
| meta | object | |
| meta.ability | string | |
| meta.timestamp | string | |
| meta.execution_time | string \| null |
Example
Sample prompt
Mark order 1057 as completed and note that it was shipped by UPS.
Example request (json)
{
"jsonrpc": "2.0",
"id": 390,
"method": "tools/call",
"params": {
"name": "mosmcp__update-order-status",
"arguments": {
"input": {
"id": 1057,
"status": "completed",
"note": "Shipped via UPS, tracking 1Z999AA10123456784."
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 390,
"result": {
"isError": false,
"structuredContent": {
"success": true,
"message": "Order status updated.",
"data": {
"id": 1057,
"parent_id": 0,
"number": "1057",
"order_key": "wc_order_a1B2c3D4e5",
"created_via": "checkout",
"status": "completed",
"currency": "USD",
"date_created": "2026-09-27T16:45:10",
"date_modified": "2026-09-27T16:46:02",
"discount_total": "0.00",
"discount_tax": "0.00",
"shipping_total": "5.00",
"shipping_tax": "0.00",
"cart_tax": "3.96",
"total": "56.96",
"total_tax": "3.96",
"prices_include_tax": false,
"customer_id": 57,
"customer_ip_address": "203.0.113.24",
"customer_user_agent": "Mozilla/5.0",
"customer_note": "",
"billing": {
"first_name": "Jane",
"last_name": "Doe",
"company": "",
"address_1": "12 High Street",
"address_2": "",
"city": "Austin",
"state": "TX",
"postcode": "78701",
"country": "US",
"email": "jane@example.com",
"phone": "+1 512 555 0142"
},
"shipping": {
"first_name": "Jane",
"last_name": "Doe",
"company": "",
"address_1": "12 High Street",
"address_2": "",
"city": "Austin",
"state": "TX",
"postcode": "78701",
"country": "US"
},
"payment_method": "stripe",
"payment_method_title": "Credit card",
"transaction_id": "ch_3PqX12",
"date_paid": "2026-09-27T16:46:02",
"date_completed": "2026-09-29T10:15:00",
"line_items": [
{
"id": 311,
"name": "Organic Cotton T-Shirt",
"parent_name": null,
"product_id": 42,
"variation_id": 0,
"quantity": 2,
"tax_class": "",
"subtotal": "48.00",
"subtotal_tax": "3.96",
"total": "48.00",
"total_tax": "3.96",
"sku": "TSHIRT-ORG-01",
"price": "24.00"
}
],
"tax_lines": [
{
"id": 312,
"rate_code": "US-TX-TAX-1",
"rate_id": 1,
"label": "Tax",
"compound": false,
"tax_total": "3.96",
"shipping_tax_total": "0.00"
}
],
"shipping_lines": [
{
"id": 313,
"method_title": "Flat rate",
"method_id": "flat_rate",
"total": "5.00",
"total_tax": "0.00"
}
],
"fee_lines": [],
"coupon_lines": [],
"refunds": []
},
"meta": {
"ability": "mosmcp/update-order-status",
"timestamp": "2026-09-29T10:15:00+00:00",
"execution_time": "18.4ms"
}
}
}
}
Edge cases / errors
- Status outside the enum → wcab_invalid_enum; missing status → wcab_missing_field.
- Unknown order → wcab_order_not_found; no permission to edit that order → wcab_cannot_edit.
- Runs WooCommerce's normal status transition, so customer emails, stock changes and hooks fire as if done in wp-admin; the optional note is recorded as a private order note.
| << Previous | Next >> |
|---|---|
| Update Order | Update Product |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.