#asdfghi-subscriptions

1 messages · Page 1 of 1 (latest)

hallow bluff
#

Hi! What do you mean exactly by historical track of company's subscriptions?

#

You could listen to the customer.subscription.udpated event, and keep track of things on your own database.

manic pagoda
#

Hi. I checked and it seems we dont have such a field

#

these are the tables I have available

hallow bluff
#

Hi. I checked and it seems we dont have such a field
customer.subscription.udpated is not a field, it's the name of a webhook event that Stripe will send every time a subscription is updated. That can be useful to keep track of its status.

#

But can you give more details in what exactly you would like to track?

manic pagoda
#

I'd like to track the change of subscriptions over time, I'm trying to add it to our internal reporting along with other metrics so they are all in one place

#

and the rest api information from the tables I sent to you is not enough as it has only the current subscription state, not how it changed in the past

hallow bluff
#

I'd like to track the change of subscriptions over time
I recommend to listen to the webhook event customer.subscription.udpated to be notified every time the subscription changes, and keep track of that in your own database.
Another option is to look at all the past invoices of a subscription with https://stripe.com/docs/api/invoices/list