If you have a Shopify import configured for the API Discounts: Price Rule – such as Create a price rule, Update a price rule, or Create or Update a price rule – follow the steps below to ensure that you’re not using any deprecated values for the allocation_method field. If so, switch to the alternative value suggested by Shopify.
- Open your Shopify flow, and locate the import to the API Discounts: Price Rule.
- Click the Import mapping ( ) button to view the field mappings.
- Check the value configured for price_rule.allocation_method.
- If it is set to each or across, then no further action is needed. You are all set!
Otherwise, change the mapping depending on the type:
If it is a hardcoded value set to one, change the value from one to across.
If allocation_method is a mapped field, then you can either change the value of the field coming from the source application or you can add a static lookup to change the incoming value from one to across, as described below. To change the mapping method, click the Options () button next to the field mapping.
In the Edit mapping panel, set the Field mapping type to Lookup and the Options to Static: Value to value. Set the fields as shown below, most importantly updating the Import field value from one to across:
If allocation_method is a Dynamic search lookup, make sure to check the response data. If you’re fetching the Shopify field allocation_method directly from the response, then you’re safe since Shopify now returns across (in the place of one).