REST API - BOGO coupon missing from price_rules endpoint

Highlighted
New Member
1 0 0

Hi there,

I encountered a weird issue when fetching coupons from [storeurl]/admin/price_rules/ or [storeurl]/admin/api/2019-07/price_rules
The BOGO (Buy X get Y) coupon with the rule "Spend X Get X items free" is not returned in the response. 
But if I update the rule to "Buy X items Get X items free" the coupon is returned.

Any idea why?


Thanks in advance!

0 Likes
New Member
1 0 0

I would just add the same thoughts.

 

The "Buy X get Y" coupon is not returned in the response if the rule “Minimum purchase amount” is set. However, the coupon is returned in the response if the rule is updated to a “Minimum quantity of items”.

0 Likes