# Shopify Connector - Update draft order
This action updates a draft order 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.
|Draft order ID||The ID of the draft order to be updated.|
|Note||Note to be attached onto the draft order.|
|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 modified.
Find out more about the draft order object (opens new window).
Last updated: 10/19/2022, 6:28:33 AM