Create Order is a WordPress ability from WooCommerce — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Create Order

Write
WooCommerce Ecommerce woocommerce/orders-create

Create a new WooCommerce order with customer, billing/shipping, and line item details.

Requires the WooCommerce plugin active on WordPress 6.9+, with the experimental 'mcp_integration' feature flag enabled (WooCommerce > Settings > Advanced > Features). Abilities are only registered for requests hitting WooCommerce's own /woocommerce/mcp REST endpoint, and each request must authenticate with a WooCommerce REST API key (consumer_key:consumer_secret) sent via the X-MCP-API-Key header over HTTPS — the key's read/write permission scope must match the HTTP method used.

What it does

This ability creates a new order by dispatching a POST request through wc/v3/orders, using WooCommerce's order schema fields: status, currency, customer_id, customer_note, billing and shipping address objects, payment_method and payment_method_title, line_items (each with product_id, variation_id, and quantity), and coupon_lines. As with products, WooCommerce's own schema does not flag any field as strictly required, though a usable order generally needs at least line_items and a billing address. The response returns the newly created order object with WooCommerce's computed totals.

See it in action

You ask your AI assistant

"Create a new order for customer ID 57 with two units of product 482, billed to their address on file, using bank transfer as the payment method."

Inputs

Name Type Required Description
status string No Order status. Defaults to 'pending'.
currency string No Currency the order is created with, in ISO format.
customer_id integer No User ID who owns the order; 0 for guests. Defaults to 0.
customer_note string No Note left by the customer during checkout.
billing object No Billing address object (first_name, last_name, company, address_1/2, city, state, postcode, country, email, phone).
shipping object No Shipping address object (first_name, last_name, company, address_1/2, city, state, postcode, country).
payment_method string No Payment method ID.
payment_method_title string No Payment method title.
line_items array No Array of line items, each with product_id, variation_id, and quantity.
coupon_lines array No Array of coupons applied to the order.

Returns

The newly created order object, including WooCommerce-computed totals and tax fields.

Permission

Registered as a write (POST) operation. Requires a WooCommerce REST API key sent via the X-MCP-API-Key header over HTTPS with 'write' or 'read_write' permission scope.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.