Learn Docker With My Newest Course

Dive into Docker takes you from "What is Docker?" to confidently applying Docker to your own projects. It's packed with best practices and examples. Start Learning Docker →

Setting a Custom Webhook Endpoint API Version Using Stripe's API


Turns out you can't set a custom webhook API version through Stripe's web UI as of Nov 2020, but here's how to do it through their API.

Quick Jump: Demo Video

If you use Stripe’s API, chances are you’ll want to make sure your Stripe webhooks use the same API version as what you configured your app to use. That’ll ensure you won’t get backwards incompatible changes between both versions.

This recently came up in my Build a SAAS App With Flask course (which I just updated) so I figured I’d make a video about how it was addressed.

Demo Video


  • 0:28 – Not able to select specific webhook endpoint API versions with Stripe’s web UI
  • 1:54 – Using Stripe’s webhook endpoint API to set a custom API version
  • 2:51 – Breaking down and editing the curl command to work for our application
  • 6:17 – Running the curl command to create the webhook endpoint using Stripe’s API
  • 6:54 – Testing it out by creating a subscription in a Flask app that uses Stripe
  • 7:53 – I wonder why the webhook API version isn’t tied into your app’s API version

Did you end up doing this? Let me know below.

Never Miss a Tip, Trick or Tutorial

Like you, I'm super protective of my inbox, so don't worry about getting spammed. You can expect a few emails per month (at most), and you can 1-click unsubscribe at any time. See what else you'll get too.