manage_shopify_draft_orders
Shopify draft orders destructive
Description
Draft orders on the merchant's Shopify store (quotes, phone, wholesale and custom orders). action list (status open, invoice_sent or completed; query), get (id), calculate (price a draft WITHOUT creating it: total, tax, shipping), create (lineItems [{variantId or sku, quantity, price?}] or custom lines {title, price, quantity}; email, customerId, shippingAddress, shippingLine {title, price}, discount {value, type percentage|fixed_amount, title}, discountCodes, note, tags, reserveInventoryUntil; nobody is emailed), update (any of those; lineItems replaces the lines), duplicate, send_invoice (emails the buyer the checkout link; to, subject, message), complete (turns it into a real order, marked as paid, or paymentPending:true), delete. send_invoice, complete and delete change nothing without confirm:true (complete also needs confirmAmount = the draft's total): show the user the reply, get a yes, then call again. Read back from Shopify. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
action | "list" | "get" | "calculate" | "create" | "update" | "duplicate" | "send_invoice" | "complete" | "delete" | default list (get when id is passed) |
id | string | the draft order: gid://shopify/DraftOrder/… or its number |
status | "open" | "invoice_sent" | "completed" | list: only these |
query | string | list: Shopify's search syntax, e.g. tag:wholesale |
limit | number | list: 1-50 (default 20) |
lineItems | object[] | variantId or sku (a product), or title + price (a custom line); quantity; price overrides a product price |
lineItems[].variantId | string | |
lineItems[].sku | string | |
lineItems[].quantity | number | |
lineItems[].price | string | |
lineItems[].title | string | |
lineItems[].taxable | boolean | |
lineItems[].requiresShipping | boolean | |
email | string | |
phone | string | |
customerId | string | gid://shopify/Customer/… or its number |
note | string | |
tags | string[] | |
poNumber | string | |
shippingAddress | object | the whole address, countryCode required |
shippingAddress.firstName | string | |
shippingAddress.lastName | string | |
shippingAddress.company | string | |
shippingAddress.address1 | string | |
shippingAddress.address2 | string | |
shippingAddress.city | string | |
shippingAddress.provinceCode | string | |
shippingAddress.zip | string | |
shippingAddress.countryCode | string | |
shippingAddress.phone | string | |
billingAddress | object | |
billingAddress.firstName | string | |
billingAddress.lastName | string | |
billingAddress.company | string | |
billingAddress.address1 | string | |
billingAddress.address2 | string | |
billingAddress.city | string | |
billingAddress.provinceCode | string | |
billingAddress.zip | string | |
billingAddress.countryCode | string | |
billingAddress.phone | string | |
shippingLine | object | a custom shipping charge |
shippingLine.title | string | |
shippingLine.price | string | |
discount | object | order discount: type percentage or fixed_amount |
discount.value | number | |
discount.type | string | |
discount.title | string | |
discount.description | string | |
discountCodes | string[] | |
reserveInventoryUntil | string | ISO date-time: hold the stock until then |
taxExempt | boolean | |
currency | string | for prices: default the store currency |
to | string | send_invoice: the address (default the draft's email) |
subject | string | |
message | string | send_invoice: a note in the email |
paymentPending | boolean | complete: leave payment due instead of marking it paid |
confirm | boolean | true to send / complete / delete after the user saw the reply |
confirmAmount | string | complete: the draft's total from the reply, e.g. "49.00" |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/manage_shopify_draft_orders.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"manage_shopify_draft_orders","arguments":{}}}
CLI
hermoso call manage_shopify_draft_orders --json '{}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
set_shopify_inventorySet or adjust Shopify stockmanage_shopify_collectionsShopify collectionsget_shopify_inventoryGet Shopify stockmanage_shopify_metafieldsShopify metafieldslist_shopify_locationsList Shopify locationsmanage_shopify_pagesShopify Online Store pagesrefund_shopify_orderRefund a Shopify ordermanage_shopify_redirectsShopify URL redirectscancel_shopify_orderCancel a Shopify ordermanage_shopify_menusShopify navigation menus