Shopify Create Price Rule
This action allows you to create a pricing rule in Shopify. You need to specify some inter-dependent configuration for the price rule, which is made clear in the following documentation: https://shopify.dev/docs/api/admin-rest/2024-01/resources/pricerule#post-price-rules
Inputs
| Name | Type | Description | 
|---|---|---|
| Shopify Access Token | SensitiveString | Shopify API Access Token | 
| Shopify Domain | String | Shopify Domain | 
| Shopify Version | Optional String | Shopify API Version. Defaults to 2023-07. | 
| Price Rule Name | String | Title of the price rule | 
| Price Value Type | String | Either: percentage or fixed_amount | 
| Price Value | String | Value must be negative float, e.g. -100.0 | 
| Customer Selection | String | Either: all (all customers) or prerequisite (a selection of customers) | 
| Target Type | String | Either: line_item (discount applies to order line items) or shipping_line (discount applies to shipping lines) | 
| Target Selection | String | Either: all (discount applies to all items) or entitled (discount applies to a selection of items) | 
| Allocation Method | String | Either: each (discount applies to each item in order) or across (discount applies to whole order) | 
| Entitled Product IDs | Optional List | A list of product IDs as integers, for which, the discount will apply | 
| Once Per Customer? | Boolean | True (customer can only use discount once), False (customer can use discount as many times as they want, up to the allocation limit) | 
| Prerequisite Customer IDs | Optional List | A list of customer IDs as integers, who are allowed to use the discount | 
Outputs
| Name | Type | Description | 
|---|---|---|
| Success | Boolean | Success | 
| PriceRule Response | Object | PriceRule Response | 
Updated 7 months ago
