#bugragunduz-invoices
1 messages · Page 1 of 1 (latest)
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.