hermosodocs

manage_shopify_draft_orders

Shopify draft orders destructive

Area: SHOPIFY: the merchant's own storefront · Publishing & scheduling. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
action"list" | "get" | "calculate" | "create" | "update" | "duplicate" | "send_invoice" | "complete" | "delete"default list (get when id is passed)
idstringthe draft order: gid://shopify/DraftOrder/… or its number
status"open" | "invoice_sent" | "completed"list: only these
querystringlist: Shopify's search syntax, e.g. tag:wholesale
limitnumberlist: 1-50 (default 20)
lineItemsobject[]variantId or sku (a product), or title + price (a custom line); quantity; price overrides a product price
lineItems[].variantIdstring
lineItems[].skustring
lineItems[].quantitynumber
lineItems[].pricestring
lineItems[].titlestring
lineItems[].taxableboolean
lineItems[].requiresShippingboolean
emailstring
phonestring
customerIdstringgid://shopify/Customer/… or its number
notestring
tagsstring[]
poNumberstring
shippingAddressobjectthe whole address, countryCode required
shippingAddress.firstNamestring
shippingAddress.lastNamestring
shippingAddress.companystring
shippingAddress.address1string
shippingAddress.address2string
shippingAddress.citystring
shippingAddress.provinceCodestring
shippingAddress.zipstring
shippingAddress.countryCodestring
shippingAddress.phonestring
billingAddressobject
billingAddress.firstNamestring
billingAddress.lastNamestring
billingAddress.companystring
billingAddress.address1string
billingAddress.address2string
billingAddress.citystring
billingAddress.provinceCodestring
billingAddress.zipstring
billingAddress.countryCodestring
billingAddress.phonestring
shippingLineobjecta custom shipping charge
shippingLine.titlestring
shippingLine.pricestring
discountobjectorder discount: type percentage or fixed_amount
discount.valuenumber
discount.typestring
discount.titlestring
discount.descriptionstring
discountCodesstring[]
reserveInventoryUntilstringISO date-time: hold the stock until then
taxExemptboolean
currencystringfor prices: default the store currency
tostringsend_invoice: the address (default the draft's email)
subjectstring
messagestringsend_invoice: a note in the email
paymentPendingbooleancomplete: leave payment due instead of marking it paid
confirmbooleantrue to send / complete / delete after the user saw the reply
confirmAmountstringcomplete: 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.

All 728 Publishing & scheduling tools · tools.json