#meteograms-list-subscriptions
1 messages · Page 1 of 1 (latest)
Hi there 👋 that function does only return non-canceled subscriptions by default. You can't retrieve all types simultaneously, but you can do a second request with status=canceled to list those that have been canceled.
A second request (with status=canceled) to which API endpoint? stripe.customers.list() again? Where do I specify status=canceled?
Sincere apologies, got mixed up on what you were asking, let me look again.
I believe our list subscriptions function will be the best route for finding canceled subscriptions:
https://stripe.com/docs/api/subscriptions/list
It allows you to filter by status and/or by customer ID.
OK so if I start off with just an email address (this is all the customer remembers) then I have to use stripe.customers.list first to find all customer records with that email (should just be one record in my case) and then use the customer ID from that to do a call to stripe.subscriptions.list? Seems like you can specify status=all to get active and cancelled.
Yup, exactly. Great catch on that all option, I'd overlooked that.