NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI, #470 most downloaded on PyPI
Python bindings for the Stripe API
Latest stable
17.1.0
Last release 3 days ago
19 Nov 2026
Ships on a steady schedule
a new release about every 2 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
2 versions withdrawn
withdrawn after publishing
15 years old
596 releases · first in 2011
Drag across the ruler to compare, or tap a release to open it.
* #477 Rename FileUpload to File
FileUpload to File* #474 Don't URL-encode square brackets * #473 Integer-index encode all arrays
* #470 Add support for automatic network retries
Your coding agent can read these notes before it upgrades. Set up the MCP server →
* #469 Add support for reporting resources
* #467 Add support for usage record summaries
* #463 Remove unsupported Bitcoin endpoints (this is technically a breaking change, but we're releasing as a minor version because none of these APIs
* #460 Add cancel support for topups * #461 Add support for file links
* #456 Add support for Sigma scheduled query run objects
* #455 Add support for Stripe Issuing
* #452 Add InvoiceLineItem class
InvoiceLineItem class* #450 Internal improvements to ApiResource.class_url
ApiResource.class_url* #448 Avoid duplicate dependency on requests with Python 2.7
requests with Python 2.7* #445 Fix setup.py
setup.pyMajor version release. List of backwards incompatible changes to watch out for:
Major version release. List of backwards incompatible changes to watch out for:
For more information, check out the migration guide for v2
Pull requests included in this release:
util.json and use json module directly everywhereNotImplementedError to stripe.error.InvalidRequestErrorstripe.error rather than just stripestripe.error.InvalidRequestError exception instead of a NotImplementedError exception* #441 Better (hopefully) fix for serialization of empty ListObjects
ListObjects* #439 Fix serialization of empty ListObjects
ListObjects* #436 Add support for payment intents
* #437 Add support for partner_id in stripe.set_app_info()
partner_id in stripe.set_app_info()* #365 Add __repr__ methods to StripeError exception classes
__repr__ methods to StripeError exception classes* #430 Handle the case where request ID is None when formatting errors
None when formatting errors* #422 Add user_mesage to StripeError for a way in Python 3 to avoid the "Request req_...:" string normally appended to error messages
user_mesage to StripeError for a way in Python 3 to avoid the "Request req_...:" string normally appended to error messages* #425 Add support for issuer fraud records
* #421 Add support for flexible billing and usage records
* #401 Drop conditional dependencies that incorrectly led to an added simplejson dependency in Python 3+ after switching to universal wheel
simplejson dependency in Python 3+ after switching to universal wheel* #398 Add support for code attribute on all Stripe exceptions * #397 Build universal wheels by default
* #396 Add support for topups
* #394 Make last_response available after calling save()
last_response available after calling save()* #389 Register unsaved attributes on assignment regardless of new value
* #371 Add accessor last_response on StripeObject for accessing request ID and other metadata
last_response on StripeObject for accessing request ID and other metadata* #382 Add new IdempotencyError type
IdempotencyError type* #378 Log encoded version of parameters instead of raw POST data
(Accidental no-op release. See 1.75.3.)
* #372 Add only changed values to _unsaved_values in StripeObject * #375 Use a custom JSON encoder to handle datetime objects when serializing StripeO
* #369 Make custom actions on various resources (e.g. Account.reject) more consistent with other APIs
Account.reject) more consistent with other APIs* #368 Remove API that allowed the creation of new disputes (this was an erroneous addition; it never worked because the API would not allow it)
* #364 Switch to vendored version of the six package for compatibility between Python 2 and 3
six package for compatibility between Python 2 and 3* #361 Support for exchange rates APIs
* #362 Fix balance transaction and invoice item conversion into StripeObjects
StripeObjects* #360 Fix BytesWarning being issued on logging in Python 3
BytesWarning being issued on logging in Python 3* #359 Support for listing source transactions
* #356 Support uploading files with StringIO in addition to a file on disk
StringIO in addition to a file on diskClasses are still into resource.py for backwards compatibility
Account gains methods for external accounts and login links (e.g. .create_account, create_login_link)
Account gains methods for external accounts and login links (e.g. .create_account, create_login_link)ApplicationFee gains methods for refundsCustomer gains methods for sourcesTransfer gains methods for reversals* #349 Rename source delete to detach (and deprecate the former)
delete to detach (and deprecate the former)Support length reads on list objects
Handle bytearray and bytes (in addition to string) in Webhook.construct_event
bytearray and bytes (in addition to string) in Webhook.construct_eventAdd support for passing a stripe_version argument to all API requests
stripe_version argument to all API requestsError when an invalid type (i.e. non-string) passed as an API method argument
Fix serialization of items on Relay order creation and order return
items on Relay order creation and order returnAdd support for InvalidClientError OAuth error
InvalidClientError OAuth errorChange serialization of subscription items on update to encoded as an integer-indexed map
pay on invoice can now take parameter
pay on invoice can now take parameterExpose code on InvalidRequestError
code on InvalidRequestErrorRefactor OAuth implementation to have dedicated classes for errors
* Re-use connections with Pycurl
* Fix the pycurl client
Add support for account login links
Remove Requests constraint from 1.55.1 now that they've patched (as of 2.14.2)
Constrain Requests to < 2.13.0 if on setuptools < 18.0.0
Support for checking webhook signatures
One column per quarter.