#GastonLifschitz
1 messages ยท Page 1 of 1 (latest)
What's the use-case here?
Hey there! Yes, so basically I want to do some tests with my webhooks, in this case the invoice upcoming. But I don't have any way to set a subscription to start a year ago (we offer yearly subscriptions), so ideally we would like to move a subscription start to a year ago and the renewal of it this year for example
If you're just creating tests for this scenario, I would recommend using Test Clocks: https://stripe.com/docs/billing/testing/test-clocks
That allows you to create a Subscription and advance the Customer through time to just before the next iteration of the Subscription becomes due.
I realize that doesn't totally answer you question about adjusting the Invoice time, but figured I'd start there in case it solves your problem
I run into an issue with that. How can I create a subscription on my end (using a script) that is a subscription on a test clock simulator?
๐ stepping in as two-shoes needs to step away
The way test clocks work is that you set them on the Customer
Then you create a Subscription for that Customer
https://stripe.com/docs/billing/testing/test-clocks?dashboard-or-api=api#create-clock details the steps of using the API here
And it's automatically assigned to the test clock then?
Yep
Awesome! Thank you both guys ๐