Shopify Create Draft Order
Uses Shopify endpoint here: https://shopify.dev/docs/api/admin-rest/2024-01/resources/draftorder
This action allows you to create a draft order in Shopify.
Inputs
Name | Type | Description |
---|---|---|
Shopify Access Token | SensitiveString | Shopify API Access Token |
Shopify Domain | String | Shopify Domain |
Line Items | List | List of line item objects to include in the draft order |
Customer ID | String | Customer ID in Shopify to send the draft order to |
Discount Type | Optional String | use 100% option to apply full discount to all line items, 0% for no discounts, custom for custom discounts |
Custom Discount | Optional Object | Shopify custom discount object to use if discount type custom selected (see linked docs for reference on applied_discount formats), otherwise use discount type 100% to apply 100% discount on all line items, or discount type 0% for no discount |
Note | Optional String | Note to add to Draft Order |
Shipping Address | Optional Object | Shipping Address to use, must set useCustomerDefaultAddress to false if set |
Outputs
Name | Type | Description |
---|---|---|
Success | Boolean | Success |
Draft Order | Object | Object response from Shopify of the draft order created |
Draft Order ID | String | ID of the draft order created |
Updated 6 months ago