Possibly a bug related to prerequisite_to_entitlement_purchase for BXGY discounts

ShopDoctors
Tourist
19 0 0

I may be missing something but it looks like this is a bug related to this functionality:

https://shopify.dev/changelog/minimum-purchase-prerequisites-added-to-rest-admin-api-price-rules

 

Steps to reproduce issue:

1. I create a BXGY discount with code 'bogo' and a 'Minimum quantity of items' requirement

2. I get the discount using the API successfully

https://XXX.myshopify.com/admin/api/2021-01/discount_codes/lookup.json?code=bogo

3. I update the discount above to use the 'Minimum purchase amount'

4. I hit the same endpoint to get the discount and get back a 404.

5. Revert the change, hit the endpoint, get 200 again.

0 Likes