#bugragunduz-invoices

1 messages · Page 1 of 1 (latest)

celest lantern
#

1/ you could look at the billing_reason of the Invoice object, if that is "subscription_create" it means the invoice is the one created from starting a subscription(so either it's a trial or there were coupons etc). https://stripe.com/docs/api/invoices/object#invoice_object-billing_reason
2/ not reliably no, you would have to listen to the customer.subscription.updated event and save the history to your database