# Shopify Connector - Create draft order
This action creates a draft order for a list of items on Shopify. A draft order represents the intent of ordering by a customer. It can be transitioned into an order.
You may read the Shopify documentation (opens new window) for more information on the draft order resource.
|Customer ID||The ID of the customer for whom the draft order is created.|
|Use customer default address||If set to yes/1, attach the customer’s default address as the shipping address. Defaults to false/0.|
|Line items||These are the items purchased under this order. At least one item should be added into the draft order. Currently, Workato does not support the creation of custom items. See below for the structure of each line item.|
|Applied order discount||The amount discount applied to the draft order. See below for the structure of the applied discount.|
# Line item
|Product ID||The ID of the product to be added into the draft order. Either this or variant ID needs to be present. If variant ID is also input, variant ID will be used instead.|
|Variant ID||The ID of the product variant to be added into the draft order. Either this or variant ID needs to be present. Note that variant ID takes precedence over product ID.|
|Quantity||The purchase quantity of the item.|
|Applied item discount||The amount discount applied to the item. See below for the structure of the applied discount.|
# Applied discount
|Description||Text describing the discount applied.|
|Value type||The type of discount applied. If set to string, accepts “percentage” or “fixed” as possible inputs.|
|Value||The applicable discount. If the value type is “percentage”, then the value is the percentage amount. If the value type is “fixed” then the value is the amount deductible from the original price.|
The output of this action is a datatree that contains information about the draft order object created.
Find out more about the draft order object (opens new window).
Last updated: 10/19/2022, 6:28:33 AM