Shopify - Update draft order action

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.

Refer to the Shopify documentation for more information on the draft order resource.

Input

FieldDescription
Draft order IDThe ID of the draft order to be updated.
NoteOptional. Note to be attached onto the draft order.
Line itemsThese 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 discountOptional. The amount discount applied to the draft order. See below for the structure of the applied discount.

Line item

FieldDescription
Product IDOptional. 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 is used instead.
Variant IDOptional. 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.
QuantityThe purchase quantity of the item.
Applied item discountOptional. The amount discount applied to the item. See below for the structure of the applied discount.

Applied discount

FieldDescription
DescriptionText describing the discount applied.
Value typeThe type of discount applied. If set to string, accepts percentage or fixed as possible inputs.
ValueThe 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.

Output

The output of this action is a datatree that contains information about the draft order object modified.

Learn more about the draft order object.

Last updated: