pypi stripe 15.1.0a1
v15.1.0a1

5 hours ago

This release changes the pinned API version to 2026-03-25.preview and contains additional breaking changes. See the GA changelog for more information.

  • #1776 Update generated code for private-preview
    • Add support for new resource RiskSignals
    • Add support for financial_account_rewards and nesting_demo on AccountSession.Component
    • Add support for upi_payments on Account.Capability, AccountCreateParamsCapability, and AccountModifyParamsCapability
    • Add support for risk_signals on Account
    • Add support for fraud_intent on AccountSignals
    • ⚠️ Add support for new value related_accounts on enum AccountSignals.Delinquency.Indicator.indicator
    • Add support for risk_reserved on Balance
    • ⚠️ Remove support for billable_items on Billing.Alert.SpendThreshold.Filter
    • Add support for upi on Charge.PaymentMethodDetail, Checkout.Session.PaymentMethodOption, ConfirmationToken.PaymentMethodPreview, ConfirmationTokenCreateParamsPaymentMethodDatum, Mandate.PaymentMethodDetail, PaymentAttemptRecord.PaymentMethodDetail, PaymentIntent.PaymentMethodOption, PaymentIntentConfirmParamsPaymentMethodDatum, PaymentIntentConfirmParamsPaymentMethodOption, PaymentIntentCreateParamsPaymentMethodDatum, PaymentIntentCreateParamsPaymentMethodOption, PaymentIntentModifyParamsPaymentMethodDatum, PaymentIntentModifyParamsPaymentMethodOption, PaymentMethodConfigurationCreateParams, PaymentMethodConfigurationModifyParams, PaymentMethodConfiguration, PaymentMethodCreateParams, PaymentMethod, PaymentRecord.PaymentMethodDetail, SetupAttempt.PaymentMethodDetail, SetupIntent.PaymentMethodOption, SetupIntentConfirmParamsPaymentMethodDatum, SetupIntentConfirmParamsPaymentMethodOption, SetupIntentCreateParamsPaymentMethodDatum, SetupIntentCreateParamsPaymentMethodOption, SetupIntentModifyParamsPaymentMethodDatum, SetupIntentModifyParamsPaymentMethodOption, and checkout.SessionCreateParamsPaymentMethodOption
    • ⚠️ Add support for new value tempo on enums Charge.PaymentMethodDetail.Crypto.network, PaymentAttemptRecord.PaymentMethodDetail.Crypto.network, and PaymentRecord.PaymentMethodDetail.Crypto.network
    • ⚠️ Remove support for source_type on Charge.PaymentMethodDetail.StripeBalance, ConfirmationToken.PaymentMethodPreview.StripeBalance, ConfirmationTokenCreateParamsPaymentMethodDatumStripeBalance, PaymentAttemptRecord.PaymentMethodDetail.StripeBalance, PaymentIntentConfirmParamsPaymentMethodDatumStripeBalance, PaymentIntentCreateParamsPaymentMethodDatumStripeBalance, PaymentIntentModifyParamsPaymentMethodDatumStripeBalance, PaymentMethod.StripeBalance, PaymentMethodCreateParamsStripeBalance, PaymentRecord.PaymentMethodDetail.StripeBalance, SetupIntentConfirmParamsPaymentMethodDatumStripeBalance, SetupIntentCreateParamsPaymentMethodDatumStripeBalance, and SetupIntentModifyParamsPaymentMethodDatumStripeBalance
    • Add support for integration_identifier on Checkout.Session and checkout.SessionCreateParams
    • ⚠️ Add support for new value application on enums Checkout.Session.AutomaticTax.Liability.type, Checkout.Session.InvoiceCreation.InvoiceDatum.Issuer.type, Invoice.AutomaticTax.Liability.type, Invoice.Issuer.type, InvoiceCreateParamsAutomaticTaxLiability.type, InvoiceCreateParamsIssuer.type, InvoiceCreatePreviewParamsAutomaticTaxLiability.type, InvoiceCreatePreviewParamsIssuer.type, InvoiceCreatePreviewParamsScheduleDetailPhaseAutomaticTaxLiability.type, InvoiceCreatePreviewParamsScheduleDetailPhaseInvoiceSettingIssuer.type, InvoiceModifyParamsAutomaticTaxLiability.type, InvoiceModifyParamsIssuer.type, PaymentLink.AutomaticTax.Liability.type, PaymentLink.InvoiceCreation.InvoiceDatum.Issuer.type, PaymentLink.SubscriptionDatum.InvoiceSetting.Issuer.type, PaymentLinkCreateParamsAutomaticTaxLiability.type, PaymentLinkCreateParamsInvoiceCreationInvoiceDatumIssuer.type, PaymentLinkCreateParamsSubscriptionDatumInvoiceSettingIssuer.type, PaymentLinkModifyParamsAutomaticTaxLiability.type, PaymentLinkModifyParamsInvoiceCreationInvoiceDatumIssuer.type, PaymentLinkModifyParamsSubscriptionDatumInvoiceSettingIssuer.type, Quote.AutomaticTax.Liability.type, Quote.InvoiceSetting.Issuer.type, QuoteCreateParamsAutomaticTaxLiability.type, QuoteCreateParamsInvoiceSettingIssuer.type, QuoteModifyParamsAutomaticTaxLiability.type, QuoteModifyParamsInvoiceSettingIssuer.type, QuotePreviewInvoice.AutomaticTax.Liability.type, QuotePreviewInvoice.Issuer.type, QuotePreviewSubscriptionSchedule.DefaultSetting.AutomaticTax.Liability.type, QuotePreviewSubscriptionSchedule.DefaultSetting.InvoiceSetting.Issuer.type, QuotePreviewSubscriptionSchedule.Phase.AutomaticTax.Liability.type, QuotePreviewSubscriptionSchedule.Phase.InvoiceSetting.Issuer.type, Subscription.AutomaticTax.Liability.type, Subscription.InvoiceSetting.Issuer.type, SubscriptionCreateParamsAutomaticTaxLiability.type, SubscriptionCreateParamsInvoiceSettingIssuer.type, SubscriptionModifyParamsAutomaticTaxLiability.type, SubscriptionModifyParamsInvoiceSettingIssuer.type, SubscriptionSchedule.DefaultSetting.AutomaticTax.Liability.type, SubscriptionSchedule.DefaultSetting.InvoiceSetting.Issuer.type, SubscriptionSchedule.Phase.AutomaticTax.Liability.type, SubscriptionSchedule.Phase.InvoiceSetting.Issuer.type, SubscriptionScheduleCreateParamsDefaultSettingAutomaticTaxLiability.type, SubscriptionScheduleCreateParamsDefaultSettingInvoiceSettingIssuer.type, SubscriptionScheduleCreateParamsPhaseAutomaticTaxLiability.type, SubscriptionScheduleCreateParamsPhaseInvoiceSettingIssuer.type, SubscriptionScheduleModifyParamsDefaultSettingAutomaticTaxLiability.type, SubscriptionScheduleModifyParamsDefaultSettingInvoiceSettingIssuer.type, SubscriptionScheduleModifyParamsPhaseAutomaticTaxLiability.type, SubscriptionScheduleModifyParamsPhaseInvoiceSettingIssuer.type, checkout.SessionCreateParamsAutomaticTaxLiability.type, checkout.SessionCreateParamsInvoiceCreationInvoiceDatumIssuer.type, checkout.SessionCreateParamsSubscriptionDatumInvoiceSettingIssuer.type, checkout.SessionModifyParamsAutomaticTaxLiability.type, checkout.SessionModifyParamsInvoiceCreationInvoiceDatumIssuer.type, and checkout.SessionModifyParamsSubscriptionDatumInvoiceSettingIssuer.type
    • Add support for new value upi on enum checkout.SessionCreateParams.excluded_payment_method_types
    • Change type of InvoiceAddLinesParamsLinePriceDatumProductDatumTaxDetail.tax_code, InvoiceLineItemModifyParamsPriceDatumProductDatumTaxDetail.tax_code, InvoiceUpdateLinesParamsLinePriceDatumProductDatumTaxDetail.tax_code, PaymentLinkCreateParamsLineItemPriceDatumProductDatumTaxDetail.tax_code, PlanCreateParamsProductTaxDetail.tax_code, PriceCreateParamsProductDatumTaxDetail.tax_code, ProductCreateParamsTaxDetail.tax_code, ProductModifyParamsTaxDetail.tax_code, checkout.SessionCreateParamsLineItemPriceDatumProductDatumTaxDetail.tax_code, and checkout.SessionModifyParamsLineItemPriceDatumProductDatumTaxDetail.tax_code from string to emptyable(string)
    • Add support for crypto on checkout.SessionCreateParamsPaymentMethodOption
    • Add support for new value upi on enum checkout.SessionCreateParams.payment_method_types
    • Add support for pending_invoice_item_interval on checkout.SessionCreateParamsSubscriptionDatum and checkout.SessionModifyParamsSubscriptionDatum
    • ⚠️ Add support for new values elements, embedded_page, form, and hosted_page on enums Checkout.Session.ui_mode and checkout.SessionCreateParams.ui_mode
    • ⚠️ Remove support for values custom, embedded, and hosted from enums Checkout.Session.ui_mode and checkout.SessionCreateParams.ui_mode
    • Change InvoiceAddLinesParamsLinePriceDatumProductDatumTaxDetail.tax_code, InvoiceLineItemModifyParamsPriceDatumProductDatumTaxDetail.tax_code, InvoiceUpdateLinesParamsLinePriceDatumProductDatumTaxDetail.tax_code, PaymentLinkCreateParamsLineItemPriceDatumProductDatumTaxDetail.tax_code, PlanCreateParamsProductTaxDetail.tax_code, PriceCreateParamsProductDatumTaxDetail.tax_code, ProductCreateParamsTaxDetail.tax_code, ProductModifyParamsTaxDetail.tax_code, checkout.SessionCreateParamsLineItemPriceDatumProductDatumTaxDetail.tax_code, and checkout.SessionModifyParamsLineItemPriceDatumProductDatumTaxDetail.tax_code to be optional
    • Add support for au_becs_debit, bacs_debit, boleto, link, sepa_debit, and us_bank_account on Checkout.Session.CurrentAttempt.PaymentMethodDetail
    • ⚠️ Add support for new value marine_carbon_removal on enum Climate.Supplier.removal_pathway
    • Add support for new value upi on enums ConfirmationTokenCreateParamsPaymentMethodDatum.type, PaymentIntentConfirmParamsPaymentMethodDatum.type, PaymentIntentCreateParamsPaymentMethodDatum.type, PaymentIntentModifyParamsPaymentMethodDatum.type, SetupIntentConfirmParamsPaymentMethodDatum.type, SetupIntentCreateParamsPaymentMethodDatum.type, and SetupIntentModifyParamsPaymentMethodDatum.type
    • ⚠️ Add support for new value upi on enums ConfirmationToken.PaymentMethodPreview.type and PaymentMethod.type
    • Add support for metadata on CreditNoteCreateParamsLine, CreditNoteLineItem, CreditNotePreviewLinesParamsLine, and CreditNotePreviewParamsLine
    • Add support for new value upi on enums CustomerListPaymentMethodsParams.type, PaymentMethodCreateParams.type, and PaymentMethodListParams.type
    • Add support for selected_fulfillment_option_overrides on DelegatedCheckout.RequestedSession.FulfillmentDetail
    • Add support for line_item_keys on DelegatedCheckout.RequestedSession.FulfillmentDetail.FulfillmentOption.Digital.DigitalOption and DelegatedCheckout.RequestedSession.FulfillmentDetail.FulfillmentOption.Shipping.ShippingOption
    • Add support for quantity_decimal on InvoiceAddLinesParamsLine, InvoiceCreatePreviewParamsInvoiceItem, InvoiceItemCreateParams, InvoiceItemModifyParams, InvoiceItem, InvoiceLineItemModifyParams, InvoiceLineItem, and InvoiceUpdateLinesParamsLine
    • Add support for expires_after_seconds on Invoice.PaymentSetting.PaymentMethodOption.Pix, InvoiceCreateParamsPaymentSettingPaymentMethodOptionPix, InvoiceModifyParamsPaymentSettingPaymentMethodOptionPix, QuotePreviewInvoice.PaymentSetting.PaymentMethodOption.Pix, Subscription.PaymentSetting.PaymentMethodOption.Pix, SubscriptionCreateParamsPaymentSettingPaymentMethodOptionPix, and SubscriptionModifyParamsPaymentSettingPaymentMethodOptionPix
    • ⚠️ Add support for level on issuing.AuthorizationCreateParamsRiskAssessmentCardTestingRisk and issuing.AuthorizationCreateParamsRiskAssessmentMerchantDisputeRisk
    • ⚠️ Remove support for risk_level on issuing.AuthorizationCreateParamsRiskAssessmentCardTestingRisk and issuing.AuthorizationCreateParamsRiskAssessmentMerchantDisputeRisk
    • ⚠️ Add support for new values da, pl, and sv on enums Issuing.Cardholder.preferred_locales, issuing.CardholderCreateParams.preferred_locales, and issuing.CardholderModifyParams.preferred_locales
    • Add support for lifecycle_controls on Issuing.Card and issuing.CardCreateParams
    • ⚠️ Change type of Issuing.Token.NetworkDatum.Visa.card_reference_id from string to nullable(string)
    • ⚠️ Change type of PaymentAttemptRecord.PaymentMethodDetail.Card.brand and PaymentRecord.PaymentMethodDetail.Card.brand from enum to nullable(enum)
    • ⚠️ Change type of PaymentAttemptRecord.PaymentMethodDetail.Card.exp_month and PaymentRecord.PaymentMethodDetail.Card.exp_month from longInteger to nullable(longInteger)
    • ⚠️ Change type of PaymentAttemptRecord.PaymentMethodDetail.Card.exp_year and PaymentRecord.PaymentMethodDetail.Card.exp_year from longInteger to nullable(longInteger)
    • ⚠️ Change type of PaymentAttemptRecord.PaymentMethodDetail.Card.funding and PaymentRecord.PaymentMethodDetail.Card.funding from enum('credit'|'debit'|'prepaid'|'unknown') to nullable(enum('credit'|'debit'|'prepaid'|'unknown'))
    • ⚠️ Change type of PaymentAttemptRecord.PaymentMethodDetail.Card.last4 and PaymentRecord.PaymentMethodDetail.Card.last4 from string to nullable(string)
    • ⚠️ Change type of PaymentAttemptRecord.PaymentMethodDetail.Card.moto and PaymentRecord.PaymentMethodDetail.Card.moto from boolean to nullable(boolean)
    • Add support for cryptogram, electronic_commerce_indicator, exemption_indicator_applied, and exemption_indicator on PaymentAttemptRecord.PaymentMethodDetail.Card.ThreeDSecure and PaymentRecord.PaymentMethodDetail.Card.ThreeDSecure
    • Add support for surcharge on PaymentIntent.AmountDetail, PaymentIntentCaptureParamsAmountDetail, PaymentIntentConfirmParamsAmountDetail, PaymentIntentCreateParamsAmountDetail, PaymentIntentIncrementAuthorizationParamsAmountDetail, and PaymentIntentModifyParamsAmountDetail
    • ⚠️ Add support for new value upi on enums PaymentIntent.excluded_payment_method_types, PaymentIntentConfirmParams.excluded_payment_method_types, PaymentIntentCreateParams.excluded_payment_method_types, PaymentIntentModifyParams.excluded_payment_method_types, SetupIntent.excluded_payment_method_types, SetupIntentCreateParams.excluded_payment_method_types, and SetupIntentModifyParams.excluded_payment_method_types
    • Add support for mandate_options on PaymentIntent.PaymentMethodOption.StripeBalance, PaymentIntentConfirmParamsPaymentMethodOptionStripeBalance, PaymentIntentCreateParamsPaymentMethodOptionStripeBalance, and PaymentIntentModifyParamsPaymentMethodOptionStripeBalance
    • Add support for amount_details and payment_details on PaymentIntentDecrementAuthorizationParams
    • Add support for upi_handle_redirect_or_display_qr_code on PaymentIntent.NextAction and SetupIntent.NextAction
    • Add support for managed_payments on PaymentLinkCreateParams and PaymentLink
    • ⚠️ Add support for new value upi on enums PaymentLink.payment_method_types, PaymentLinkCreateParams.payment_method_types, and PaymentLinkModifyParams.payment_method_types
    • Add support for recommended_action and signals on Radar.PaymentEvaluation
    • ⚠️ Remove support for insights on Radar.PaymentEvaluation
    • ⚠️ Add support for new value crypto_fingerprint on enums Radar.ValueList.item_type and radar.ValueListCreateParams.item_type
    • Add support for stripe_balance on SetupIntent.PaymentMethodOption, SetupIntentConfirmParamsPaymentMethodOption, SetupIntentCreateParamsPaymentMethodOption, and SetupIntentModifyParamsPaymentMethodOption
    • ⚠️ Add support for new value resolved on enum SharedPayment.GrantedToken.deactivated_reason
    • Add support for recurring_interval on SharedPayment.GrantedToken.UsageLimit
    • ⚠️ Change type of SharedPayment.GrantedToken.UsageLimit.expires_at from DateTime to nullable(DateTime)
    • Add support for presentment_details on Subscription
    • ⚠️ Add support for new value canceled_by_retention_policy on enum Subscription.CancellationDetail.reason
    • Add support for new value 2026-03-25.dahlia on enum WebhookEndpointCreateParams.api_version
    • ⚠️ Remove support for invoice_resources on V2.Billing.Intent
    • ⚠️ Remove support for amount_due and customer_balance_applied on V2.Billing.Intent.AmountDetail
    • Add support for recurring_credit_grant on V2.Billing.IntentAction.Modify.PricingPlanSubscriptionDetail.Override.PartialPeriodBehavior, V2.Billing.IntentAction.Subscribe.PricingPlanSubscriptionDetail.Override.PartialPeriodBehavior, v2.billing.IntentCreateParamsActionModifyPricingPlanSubscriptionDetailOverridePartialPeriodBehavior, and v2.billing.IntentCreateParamsActionSubscribePricingPlanSubscriptionDetailOverridePartialPeriodBehavior
    • Add support for consumer_privacy_disclosures and consumer_storer on V2.Core.Account.Identity.Attestation.TermsOfService, v2.core.AccountCreateParamsIdentityAttestationTermsOfService, and v2.core.AccountModifyParamsIdentityAttestationTermsOfService
    • ⚠️ Remove support for include on v2.billing.IntentCreateParams and v2.billing.IntentReserveParams
    • Add support for error code service_period_coupon_with_metered_tiered_item_unsupported on Invoice.LastFinalizationError, PaymentIntent.LastPaymentError, QuotePreviewInvoice.LastFinalizationError, SetupAttempt.SetupError, SetupIntent.LastSetupError, and StripeError
  • #1763 Update generated code for private-preview
    • Add support for new resource v2.core.AccountEvaluation
    • ⚠️ Remove support for resources v2.billing.LicenseFeeSubscription and v2.billing.PricingPlanSubscriptionComponents
    • Add support for create method on resource v2.core.AccountEvaluation
    • ⚠️ Remove support for retrieve method on resources v2.billing.LicenseFeeSubscription and v2.billing.PricingPlanSubscriptionComponents
    • Add support for modify_rates method on resource v2.billing.RateCard
    • Add support for remove_discounts method on resource v2.billing.PricingPlanSubscription
    • ⚠️ Add support for new value eg_bank_account on enum V2.Account.Configuration.RecipientDatum.DefaultOutboundDestination.type
    • Add support for invoice_resources on V2.Billing.Intent
    • Add support for amount_due and customer_balance_applied on V2.Billing.Intent.AmountDetail
    • Add support for expires_at on V2.Billing.Intent.StatusTransition
    • Add support for discount on V2.Billing.IntentAction.Apply and v2.billing.IntentCreateParamsActionApply
    • Add support for timestamp on V2.Billing.IntentAction.Apply.EffectiveAt and v2.billing.IntentCreateParamsActionApplyEffectiveAt
    • ⚠️ Add support for new values current_billing_period_start and timestamp on enums V2.Billing.IntentAction.Apply.EffectiveAt.type and v2.billing.IntentCreateParamsActionApplyEffectiveAt.type
    • ⚠️ Add support for new value discount on enums V2.Billing.IntentAction.Apply.type and v2.billing.IntentCreateParamsActionApply.type
    • ⚠️ Change type of V2.Billing.IntentAction.Deactivate.PricingPlanSubscriptionDetail.Override.PartialPeriodBehavior.type, V2.Billing.IntentAction.Modify.PricingPlanSubscriptionDetail.Override.PartialPeriodBehavior.type, V2.Billing.IntentAction.Subscribe.PricingPlanSubscriptionDetail.Override.PartialPeriodBehavior.type, v2.billing.IntentCreateParamsActionDeactivatePricingPlanSubscriptionDetailOverridePartialPeriodBehavior.type, v2.billing.IntentCreateParamsActionModifyPricingPlanSubscriptionDetailOverridePartialPeriodBehavior.type, and v2.billing.IntentCreateParamsActionSubscribePricingPlanSubscriptionDetailOverridePartialPeriodBehavior.type from literal('license_fee') to enum('license_fee'|'recurring_credit_grant')
    • Add support for service_cycle on V2.Billing.LicenseFee and V2.Billing.RateCard
    • ⚠️ Remove support for latest_version on V2.Billing.LicenseFee, V2.Billing.PricingPlan, and V2.Billing.RateCard
    • ⚠️ Remove support for service_interval_count and service_interval on V2.Billing.LicenseFee and V2.Billing.RateCard
    • ⚠️ Change type of V2.Billing.LicenseFee.TransformQuantity.divide_by, V2.Billing.LicenseFeeVersion.TransformQuantity.divide_by, V2.Billing.RateCardRate.TransformQuantity.divide_by, v2.billing.LicenseFeeCreateParamsTransformQuantity.divide_by, v2.billing.LicenseFeeModifyParamsTransformQuantity.divide_by, and v2.billing.RateCardRateCreateParamsTransformQuantity.divide_by from longInteger to int64_string
    • Add support for discount_details and pricing_plan_component_details on V2.Billing.PricingPlanSubscription
    • ⚠️ Add support for new value crypto_wallets on enums V2.Core.Account.FutureRequirement.Entry.Impact.RestrictsCapability.capability and V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability
    • ⚠️ Remove support for value crypto from enums V2.Core.Account.FutureRequirement.Entry.Impact.RestrictsCapability.capability and V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability
    • Add support for balance_by_funds_type on V2.MoneyManagement.FinancialAccount.Payment
    • ⚠️ Add support for new value next_day_payout_fee on enum V2.MoneyManagement.OutboundPaymentQuote.EstimatedFee.type
    • Add support for treasury_transaction_entry on V2.MoneyManagement.TransactionEntry
    • Add support for treasury_credit_reversal, treasury_debit_reversal, treasury_inbound_transfer, treasury_issuing_authorization, treasury_outbound_payment, treasury_outbound_transfer, treasury_received_credit, and treasury_received_debit on V2.MoneyManagement.Transaction.Flow and V2.MoneyManagement.TransactionEntry.TransactionDetail.Flow
    • ⚠️ Add support for new values treasury_credit_reversal, treasury_debit_reversal, treasury_inbound_transfer, treasury_issuing_authorization, treasury_other, treasury_outbound_payment, treasury_outbound_transfer, treasury_received_credit, and treasury_received_debit on enums V2.MoneyManagement.Transaction.Flow.type and V2.MoneyManagement.TransactionEntry.TransactionDetail.Flow.type
    • Add support for treasury_transaction on V2.MoneyManagement.Transaction
    • ⚠️ Add support for new value no_valid_payment_method on enum V2.Payments.OffSessionPayment.failure_reason
    • Add support for metadata on V2.Payments.SettlementAllocationIntentSplit
    • ⚠️ Change type of V2.Reporting.ReportRun.Result.File.size from longInteger to int64_string
    • Add support for statement_descriptor on v2.money_management.OutboundPaymentCreateParams and v2.money_management.OutboundTransferCreateParams
    • Add support for include on v2.billing.IntentCreateParams, v2.billing.IntentReserveParams, v2.billing.PricingPlanSubscriptionListParams, v2.billing.PricingPlanSubscriptionRetrieveParams, v2.money_management.FinancialAccountListParams, and v2.money_management.FinancialAccountRetrieveParams
    • Add support for event notifications V1AccountSignalsIncludingDelinquencyCreatedEvent, V2CoreAccountSignalsFraudulentWebsiteReadyEvent, and V2SignalsAccountSignalFraudulentMerchantReadyEvent
  • #1766 Merge to private-preview

See the changelog for more details.

Don't miss a new stripe release

NewReleases is sending notifications on new releases.