#sqarf-Subscription
1 messages · Page 1 of 1 (latest)
Hi there, you can register to invoice.created event, it will be fired when the new invoice is generated/
But before that?
Because I want to check if my customer has still got a valid VAT (if he has registered it)
I see, you can also use invoice.upcoming event https://stripe.com/docs/api/events/types#event_types-invoice.upcoming
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Occurs X number of days before a subscription is scheduled to create an invoice that is automatically charged—where X is determined by your subscriptions settings
Ah, perfect, that's exaclty what I was looking for. Thanks!
Is there a way to test it locally? With Stripe CLI it shows me: "The event ‘invoice.upcoming’ is not supported by the Stripe CLI."
you can use test clocks to simulate https://stripe.com/docs/billing/testing/test-clocks it's a new feature that we launch recently.
Learn how to move Billing objects through time in test mode.
Oh, ok. thanks!