FROM CACHE - en_header

Return management just got easier! We’ve launched Customer Self-Serve Returns to all Shopify merchants. Click here to learn more!

Get the collections a discount apply to?

RhinoLu
Shopify Partner
3 0 1

Hi,

If a discount was applied to specific collections.

How can I get all the related collections by liquid or storefront API?

Thank you!

Reply 1 (1)
RhinoLu
Shopify Partner
3 0 1

1. use ADMIN API to Retrieves a single discount code and get price_rule_id

2. use ADMIN API to Retrieves a single price rule and get entitled_collection_ids