AddSynapse: draft a new order
plan_order_createAddSynapse: Prepare a DRAFT of ONE new WooCommerce order (a phone or manual order) (needs Store Assistant 1.3.18 or newer); it creates nothing by itself. lines (1-50): product_id (+ variation_id for a variable product — list_variations lists them), quantity 1-999, and unit_price ONLY when the shop owner gives a different price (shown on the draft); otherwise the shop price is used. Customer — one of: customer_id or customer_email (an EXISTING customer account; its saved addresses are used), OR billing for a guest order: first_name, last_name and an email or phone are required, plus the address the owner gave (country = 2-letter code, for example GR). A customer account is NEVER created or changed. shipping_address only when it differs from the billing address. Never invent customer details: ask the owner for what is missing. Optional: shipping {method_title, total} (a shipping line), coupons (existing codes only), customer_note (the customer's note, as given), status pending (default: awaiting payment, stock unchanged) | on-hold | processing | completed (these reduce stock and count the sale), payment_method_title (a label only — no payment is ever taken), send_emails (default false; true only when the owner asks to email the customer). The shop checks the products, stock, coupons and addresses now and WooCommerce computes the totals and taxes; the draft card shows them. Nothing is created until the owner approves it on the card; the total is checked again then. Undo cancels the order (stock given back) and moves it to the trash.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lines": "<lines>"
},
"name": "plan_order_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Which connected site: its address or site_id from addsynapse_list_sites. Omit when the account has only one site. | |
| lines | Yes | ||
| status | No | Default pending. | |
| billing | No | Guest billing details exactly as the owner gave them (never invented). | |
| coupons | No | Existing coupon codes. | |
| shipping | No | A shipping line: method_title and total. | |
| customer_id | No | An existing customer account. | |
| send_emails | No | Default false. | |
| customer_note | No | ||
| customer_email | No | Exact email of an existing customer account. | |
| shipping_address | No | Only when it differs from the billing address. | |
| payment_method_title | No | Label only (for example "Cash on delivery"); no payment is taken. |