Is there a way to filter on status for a SubscriptionContract?

eat_to_evolve
Excursionist
18 0 7

When I want to charge subscriptions, I only want to query ACTIVE subscriptions, but there doesn't seem to be a way to query only active? I have to end up iterating my list of thousands of subscriptions just to find the few hundred to charge.

 

Thank you

Replies 3 (3)
jlalande
Shopify Staff
Shopify Staff
16 3 10

Hello @eat_to_evolve 👋, thanks for reaching out! 

This is currently not supported, but we are looking into adding this in the near future. 

colinloretz
Excursionist
16 2 6

@eat_to_evolve I save the subscriptionContract's status alongside its id and next billing date in my own database so I always know which ones to bill.

eat_to_evolve
Excursionist
18 0 7

That's likely what I'll end up doing, but adds additional overhead to have to keep everything in sync 😞