#DustinJSilk
1 messages · Page 1 of 1 (latest)
it's a good question, I think it's not really possible because the endpoint stripe-cli creates uses your account settings, but I'll have to experiment a bit.
I vaguely remember I think https://stripe.com/docs/cli/listen#listen-load-from-webhooks-api can be used here(you use it to have CLI use the settings of one of your existing endpoints) but I haven't looked at this for a while
Hmm ok let me give that a try quick
That still used the old version, looks like it just copies the URLs and events.
- Is there a backwards compatibility guarantee that would mean my webhooks (payment_intents and payment_methods) would still work in the same way if i upgrade my account default version?
- Otherwise if i update my default version, will my existing webhooks keep the 2020-08-27 version or will the automatically update? Wondering If i can update the default version then destroy and recreate each webhook 1-by-1 to upgrade them
it's complicated because I believe it depends on the endpoint and how you created them so there's no one answer. If you explicitly specified a version when creating the endpoint, it won't change if your account's default version changes, only ones created to "use the current version" change on an account API upgrade.
That still used the old version, looks like it just copies the URLs and events.
and yeah I think it's not possible unfortunately to use CLI for this. You can create the endpoint and just call the test mode API directly instead and it will generate events to send to the endpoint, instead of usingstripe listen, unfortunately.