Get Order
Gets a single WooCommerce order by ID, including line items, billing, shipping, taxes, shipping/fee/coupon lines, and refunds.
Also known as: order details, order status, what did the customer buy.
| Property | Value |
|---|---|
| Ability slug | mosmcp/get-order |
| Wire tool name | mosmcp__get-order |
| Category | WooCommerce (mosmcp-woocommerce) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | manage_woocommerce |
| Minimum default role | Shop manager |
| Requires | WooCommerce |
| Annotations | readOnly: true · destructive: false · idempotent: true · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | integer | Yes | — | The order ID (required). |
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
What did the customer buy in order 1057?
Example request (json)
{
"jsonrpc": "2.0",
"id": 369,
"method": "tools/call",
"params": {
"name": "mosmcp__get-order",
"arguments": {
"input": {
"id": 1057
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 369,
"result": {
"isError": false,
"structuredContent": {
"success": true,
"message": "Order retrieved.",
"data": {
"id": 1057,
"parent_id": 0,
"number": "1057",
"order_key": "wc_order_a1B2c3D4e5",
"created_via": "checkout",
"status": "processing",
"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": null,
"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/get-order",
"timestamp": "2026-09-29T10:15:00+00:00",
"execution_time": "18.4ms"
}
}
}
}
Edge cases / errors
- id missing or not positive → wcab_invalid_id.
- No order with that ID → wcab_order_not_found.
- Output includes the customer's billing email, phone and IP address - treat it as personal data.
| << Previous | Next >> |
|---|---|
| Get Customer Purchase History | Get 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.