# Hermoso: manage_shopify_draft_orders · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/publish/manage_shopify_draft_orders/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/) / manage_shopify_draft_orders

# `manage_shopify_draft_orders`

Shopify draft orders destructive

Area: SHOPIFY: the merchant's own storefront · [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/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

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](https://hermoso.ai/docs/credits/).

## Related tools

- [set_shopify_inventory](https://hermoso.ai/docs/reference/publish/set_shopify_inventory/) Set or adjust Shopify stock
- [manage_shopify_collections](https://hermoso.ai/docs/reference/publish/manage_shopify_collections/) Shopify collections
- [get_shopify_inventory](https://hermoso.ai/docs/reference/publish/get_shopify_inventory/) Get Shopify stock
- [manage_shopify_metafields](https://hermoso.ai/docs/reference/publish/manage_shopify_metafields/) Shopify metafields
- [list_shopify_locations](https://hermoso.ai/docs/reference/publish/list_shopify_locations/) List Shopify locations
- [manage_shopify_pages](https://hermoso.ai/docs/reference/publish/manage_shopify_pages/) Shopify Online Store pages
- [refund_shopify_order](https://hermoso.ai/docs/reference/publish/refund_shopify_order/) Refund a Shopify order
- [manage_shopify_redirects](https://hermoso.ai/docs/reference/publish/manage_shopify_redirects/) Shopify URL redirects
- [cancel_shopify_order](https://hermoso.ai/docs/reference/publish/cancel_shopify_order/) Cancel a Shopify order
- [manage_shopify_menus](https://hermoso.ai/docs/reference/publish/manage_shopify_menus/) Shopify navigation menus

[All 728 Publishing & scheduling tools](https://hermoso.ai/docs/reference/publish/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
