#Cyborg-subscriptions
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
I wanted to know what event should I use if I want to store the subscription end date in my db?
since you're already listening toinvoice.paidit's best to keep on using it to do any changes on the user's subscription
is it always true that the first invoice.paid event is generated before customer.subscription.updated
we don't guarantee the order in which you receive the webhooks and/or if there's a duplicate event that was sent
Cyborg-subscriptions
oh, so I can get the current_period_end value in the invoice.paid data as well?
ah, so I should probably use a single event to do most of the stuff.
you can retrieve the subscription object https://stripe.com/docs/api/invoices/object#invoice_object-subscription on the invoice you receive if there's anything you need to know that is not available on the invoice object itself
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ah, so I should probably use a single event to do most of the stuff.
yes we recommend that
awesome. Thank you for your help. Appreciate it :)
let me know if you need any more help