#meteograms-list-subscriptions

1 messages · Page 1 of 1 (latest)

bronze arrow
#

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.

exotic oracle
#

A second request (with status=canceled) to which API endpoint? stripe.customers.list() again? Where do I specify status=canceled?

bronze arrow
#

Sincere apologies, got mixed up on what you were asking, let me look again.

bronze arrow
exotic oracle
#

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.

bronze arrow
#

Yup, exactly. Great catch on that all option, I'd overlooked that.