#raul-invoice-billingreason
1 messages · Page 1 of 1 (latest)
Hi 👋
I"m not sure what this means. You can configure webhooks to listen to specific event types https://stripe.com/docs/api/events/types
but it is up to your integration to determine which events meet your criterea if they don't map directly to types.
is there an event type specific for renewals ?
What do you mean renewals?
What Stripe objects are you using? Renewals aren't a Stripe object that I know of.
for example the user has a monthly subscription, every month we receive the event type "invoice.paid", for the first payment when the subscription was created we want to ignore it
so I don't know if there is way to validate if the event type is for the first payment
Okay there isn't a specific event type for this but you can example the billing_reason property: https://stripe.com/docs/api/invoices/object#invoice_object-billing_reason
That will tell you if it's for a new subscription subscription_create or a billing cycle subscription.cycle
great! thank you very much