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

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

Hello @eat_to_evolve :waving_hand: , thanks for reaching out!

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

1 Like

@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.

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

1 Like