#_fabio-list
1 messages · Page 1 of 1 (latest)
thank you I will look at it
I don't know if this is the right place to ask something like that. But I want to get all the subscriptions from this year that were or are active. With the method you showed I get at least more results than before but as far as I can see not all.
As already said I want to have all subscriptions from this year + invoice linking
you can definitely get all the subscriptions, why do you think you can't get all of them?
for testing i wrote this. I expected a larger number.
that code looks good to me. Not sure what I can say about the number you expected to see since I don't know how many subscriptions you think you have
it is only a guess but can it be that the result refers only to the last month or should it show all?
I think I have misunderstood something. Is a subscription created only once for a customer or are subscriptions created per monthly billing?
that code you shared will get all subscriptions for all time
the Subscription is created once. Then each month it create an Invoice
ah ok my bad
so if I subscribed to you in October 2020, I have 1 subscription and 12 invoices today
Ok thanks, now I get it. Can I also filter by a specific time period?
yep, there's a created filter
https://stripe.com/docs/api/subscriptions/list#list_subscriptions-created you'd want to pass a hash like subscriptions.list(Created={gte:"1631699964"}) for example, but I'm not 100% sure of the syntax in Python so you might have to experiment a little