Update order status

Set an order to pending, processing, on-hold, completed, cancelled, refunded or failed.

PATCH https://cotlet.dev/api/v1/woocommerce/orders/{order_id}/status

write Confirm

Changes the status of one order. Allowed values are pending, processing, on-hold, completed, cancelled, refunded and failed. WooCommerce sends the customer an email when an order is completed, and Cancelled returns line-item stock when inventory management is on. Setting Cancelled or Refunded does not refund the customer; use create_refund for that. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: update_order_status
NameTypeDescription
order_id integer required integer Order ID from list_orders.
status enum required enum pending, processing, on-hold, completed, cancelled, refunded or failed.

Request

cURL
curl -X PATCH https://cotlet.dev/api/v1/woocommerce/orders/1044/status \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status":"completed"}'
Python
result = client.call("woocommerce", "update_order_status", {"order_id":1044,"status":"completed"})
Node.js
const result = await cotlet.call('woocommerce', 'update_order_status', {"order_id":1044,"status":"completed"});
CLI
cotlet call woocommerce update_order_status --data '{"order_id":1044,"status":"completed"}'

Example response

JSON

{
  "order_id": 1044,
  "previous_status": "processing",
  "status": "completed",
  "date_modified": "2026-10-15T08:02:00Z"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.