Basic Information

appmixer.shopify.draftorders.CreateDraftOrder

1.0.0

Public

Create a draft order, for example a quote or an order taken by phone, that the customer can pay through its invoice. Returns the draft order. Needs the write_draft_orders access scope on the Shopify app.

Input Ports

in

FieldTypeDescription
Line Items expression The products of the draft order. Each item is either a product variant of your store, or a custom item with its own title and price.
Customer text Pick the customer, or enter the customer ID (global or numeric).
Email text The customer's email address for the draft order.
Phone text The customer's phone number, in E.164 format (for example +15145556789).
Note textarea A note for the draft order.
Tags text Comma-separated tags.
PO Number text The purchase order number.
Tax Exempt toggle Whether the draft order is exempt from taxes.
First Name text -
Last Name text -
Company text -
Address Line 1 text -
Address Line 2 text -
City text -
Province Code text State or province code, for example ON or CA. Names are not accepted.
Country Code text Two-letter ISO country code, for example CZ or US. Names are not accepted.
Postal Code text -
Phone text -

Output Ports

out

FieldTypeDescription
Draft Order ID string -
Legacy Resource ID string -
Name string -
Status string -
Email string -
Phone string -
Note string -
Tags array -
PO Number string -
Tax Exempt boolean -
Taxes Included boolean -
Currency Code string -
Presentment Currency Code string -
Invoice URL string -
Invoice Sent At string -
Reserve Inventory Until string -
Total Quantity integer -
Created At string -
Updated At string -
Completed At string -
Order object -
Customer object -
Custom Attributes array -
Applied Discount object -
Shipping Line object -
Tax Lines array -
Subtotal Price object -
Total Discounts object -
Total Shipping Price object -
Total Tax object -
Total Price object -
Shipping Address object -
Billing Address object -
Line Items array -

Full Metadata