List orders
wp_wc_list_ordersRetrieve a paginated list of WooCommerce orders, newest first, with ID, status, total, customer name, email and ISO date. Filter by status or search term to find specific orders quickly.
Instructions
WooCommerce: list the shop's orders, newest first, one page at a time. Each item gives id, status, total, currency, customer (billing name), email and date (ISO 8601); pagination gives total and total_pages. Line items and payment method are in wp_wc_get_order. Read-only; needs manage_woocommerce. An order status the shop does not know is refused with the list of the ones it does. Requires WooCommerce.
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": "wp_wc_list_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, starting at 1. Default 1. | |
| search | No | Search term, handed to WooCommerce's own order search. Omitted: no search. | |
| status | No | Only orders in this status: one of the shop's statuses (pending, processing, on-hold, completed, cancelled, refunded, failed, plus any a plugin registers), with or without the wc- prefix, or trash. Omitted or any: the order statuses the shop has registered (wc_get_order_statuses), so not trash. | |
| per_page | No | Orders per page, 1 to 100. Default 20. |