Search Price rule by Title via API

Highlighted
Tourist
6 0 1

Hello! 
How can I search for specific PriceRules via API? For example, I want to select all price rules with the title 'single' or id = 123, is it possible? I don't want to select all price rules and iterate one by one, it will be quite slow.

Regards, Mike

0 Likes
Shopify Staff
Shopify Staff
1118 78 156

Hey Mike, 

 

If you already have the ID, then this is the API call for you!

 

Otherwise though if you intend to search by title, you'd have to fetch all of the price rules and then loop through them on your own. 

0 Likes