title: shopify price rules api , how to get only active discounts?
body: <p>I'm working on a Shopify app using node js, and I need to get the list of discounts from merchants store, so I used the price rules admin API to get the list, but the problem is I'm getting all the discounts even inactive or expired discounts , can anyone help me to filter this , I searched a lot on Shopify documentation but I did not found any solution.</p>