Shopify Create Replacement Order
Inputs
Name | Type | Description |
---|---|---|
Shopify Token | SensitiveString | Shopify API token |
Shopify Domain | String | Shopify domain |
Order ID | String | Shopify order ID |
Replacement Reason | String | Reason for replacement |
Check for Previous Replacements | Boolean | Whether to check for previous replacements for the order customer |
Billing Address | Optional Object | Billing address for the replacement order |
Shipping Address | Optional Object | Shipping address for the replacement orde |
Line Items | Optional List | Line items to be replaced |
Discount Codes | Optional Object | A list of Shopify discounts if using discount type of custom |
Discount Type | String | 100% or custom. Custom will take into consideration the Discount Codes input. |
Shipping Lines | Optional List | Shopify shipping lines, if not provided, then would copy the shipping line title, code, and source from original order and set price to zero |
Hour Limit | Optional Number | Hour limit for replacements created |
Twelve Hour Limit | Optional Number | Twelve hours limit for replacements created |
Twenty Four Hour Limit | Optional Number | Twenty four hours limit for replacements created |
Billing Address, Shipping Address, Line Items, Shipping Lines are all optional inputs. In case they are not provided the data will be copied from the original order.
Discount Codes is also an optional input and will be considered only if the Discount Type is custom.
Hour Limit, Twelve Hour Limit, Twenty Four Hour Limit are also optional inputs and will be considered only if the Check for Previous Replacements input is set to true. They also have default values of 10, 30 and 50 respectively.
Outputs
Name | Type | Description |
---|---|---|
Replacement Order Created | Boolean | Whether the replacement order was created |
Replacement Metaobject Created | Boolean | Whether the replacement metaobject was created |
Replacement Note Created | Boolean | Whether the replacement note was created |
Replacement Metafields Created | Boolean | Whether the replacement metafields were created |
Blocked by Safety Checks | Boolean | Whether the replacement was blocked by safety checks |
Order ID | Number | Replacement order ID |
Order | Object | Replacement order |
Replacement Order Created does depend on the initial Replacement Metaobject Created.
Blocked by Safety Checks will return true whenever the order creation was blocked by metafields checks or limit checks.
Updated 8 months ago