What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

PriceRule Updating and Deleting

PriceRule Updating and Deleting

dawsonpa
Visitor
1 0 1

We are currently integrating with the Admin REST API endpoints for PriceRule and Discounts. We are wondering about the retroactive nature of updating or deleting an price rule? To be more specific, If a price rule already has discount codes created and then the price rule’s value is changed does that apply to the codes that have already been generated or does it just apply to future discount codes given out? Also if a price rule is deleted does that make all discount codes related to it disabled or would we just not be able to generate any new discount codes with that price rule?

Replies 2 (2)

jhersey29
Tourist
8 0 1

Any update on this?

mrudul
Shopify Partner
10 0 1

We just observed this on our store:

 

1. if a price rule is updated, the new changes applies to new as well as existing codes.

2. If a price rule is deleted, the existing discount codes are deleted/disabled. You can re-create same discount codes again.