Shopify: Create Draft Order logo

Catalog action Integrations shopify

Create a draft order in your Shopify store for later completion. Supports line items, customer info, shipping address, discounts, and notes. Ideal for: quotes, pending orders, manual review workflows, B2B invoicing. Required scope: write_draft_orders or write_quick_sale.

At a Glance

FieldValue
Action IDshopify-create-draft-order
CategoryIntegrations
Connectorshopify
Requires gasNo
Funds movementNone declared
Tagsshopify, ecommerce, orders, write

Payload Schema

FieldTypeRequiredDescription
lineItemsarrayYesArray of line items for the draft order
emailstringNoCustomer email address
customerIdstringNoExisting customer GID (e.g., gid://shopify/Customer/123)
shippingAddressobjectNoShipping address for the draft order
appliedDiscountobjectNoDiscount to apply to the draft order
notestringNoOptional note for the draft order
tagsarrayNoTags to add to the draft order

Result Schema

FieldTypeRequiredDescription
successbooleanYesWhether the draft order was created successfully
dataobjectNoCreated draft order data
exportsobjectNoExported values from the action

Examples

json
{ "type": "shopify-create-draft-order", "payload": { "lineItems": [] }, "children": [], "connector": { "type": "shopify", "id": "conn_shopify" }}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.

Ask a question... ⌘I