Get order
One order with line items, shipping, payment method, refunds and notes.
MCP tool woocommerce_read → get_order
read
Returns one order in full: the line items with their IDs, the shipping and fee lines, the payment method, the refunds already made on it and its notes. Use the line_item_id values with create_refund. Customer name and address are included, which is personal data, so the call needs a role that can see orders.
Parameters
| Name | Type | Description |
|---|---|---|
| order_id integer required | integer | Order ID from list_orders. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "woocommerce_read",
"arguments": {
"operation": "get_order",
"arguments": {
"order_id": 1
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"order_id": 1042,
"status": "processing",
"currency": "USD",
"payment_method_title": "Credit card",
"line_items": [
{
"line_item_id": 7001,
"product_id": 311,
"name": "Linen tote bag",
"quantity": 2,
"total": "28.00"
},
{
"line_item_id": 7002,
"product_id": 318,
"name": "Ceramic mug",
"quantity": 1,
"total": "22.00"
}
],
"shipping_total": "8.00",
"total": "58.00",
"refunds": [],
"notes": [
{
"note_id": 9120,
"note": "Tracking number 1Z999AA10123456784",
"customer_note": false
}
]
},
"isError": false
}