#1463 Support for APIs in the new API version 2025-03-31.basil
This release changes the pinned API version to 2025-03-31.basil.
Please review details for the breaking changes and alternatives in the Stripe API changelog before upgrading.
SubscriptionItemUsageRecordSummary and SubscriptionItemUsageRecordcreate method on resource SubscriptionItemUsageRecordlist method on resource SubscriptionItemUsageRecordSummaryupcomingLines and upcoming methods on resource Invoiceinvoice on Charge and PaymentIntentshipping_details on CheckoutSessioncarrier, phone, and tracking_number on CheckoutSession.CollectedInformation.ShippingDetailrefund on CreditNote.CreateParams, CreditNote.PreviewParams, CreditNotePreviewLines.ListParams, and CreditNotetax_amounts on CreditNoteLineItem, CreditNote, and InvoiceLineItemamount_excluding_tax and unit_amount_excluding_tax on CreditNoteLineItem and InvoiceLineItemcoupon on Customer.CreateParams, Customer.UpdateParams, Invoice.CreatePreviewParamsScheduleDetailPhase, Invoice.CreatePreviewParams, Subscription.CreateParams, Subscription.UpdateParams, SubscriptionSchedule.CreateParamsPhase, SubscriptionSchedule.Phase, and SubscriptionSchedule.UpdateParamsPhasepromotion_code on Customer.CreateParams, Customer.UpdateParams, Subscription.CreateParams, and Subscription.UpdateParamsprice on Invoice.AddLinesParamsLine, Invoice.UpdateLinesParamsLine, InvoiceItem.CreateParams, InvoiceItem.UpdateParams, InvoiceItem, InvoiceLineItem.UpdateParams, and InvoiceLineItembilling_thresholds on Invoice.CreatePreviewParamsScheduleDetailPhaseItem, Invoice.CreatePreviewParamsScheduleDetailPhase, Invoice.CreatePreviewParamsSubscriptionDetailItem, Subscription.CreateParamsItem, Subscription.CreateParams, Subscription.UpdateParamsItem, Subscription.UpdateParams, SubscriptionItem.CreateParams, SubscriptionItem.UpdateParams, SubscriptionItem, SubscriptionSchedule.CreateParamsDefaultSetting, SubscriptionSchedule.CreateParamsPhaseItem, SubscriptionSchedule.CreateParamsPhase, SubscriptionSchedule.DefaultSetting, SubscriptionSchedule.Phase.Item, SubscriptionSchedule.Phase, SubscriptionSchedule.UpdateParamsDefaultSetting, SubscriptionSchedule.UpdateParamsPhaseItem, SubscriptionSchedule.UpdateParamsPhase, and Subscriptionapplication_fee_amount, charge, paid_out_of_band, paid, payment_intent, quote, subscription, subscription_details, subscription_proration_date, tax, total_tax_amounts, and transfer_data on Invoicediscount on Invoice and Subscriptioninvoice_item, proration_details, proration, tax_rates, and type on InvoiceLineItemplan and subscription_item on InvoiceItem and InvoiceLineItemunit_amount on InvoiceItem.CreateParams, InvoiceItem.UpdateParams, and InvoiceItemsubscription and unit_amount_decimal on InvoiceItemnaver_pay on PaymentMethod.UpdateParamsaggregate_usage on Plan.CreateParams, Plan, Price.CreateParamsRecurring, and Price.Recurringcurrent_period_end and current_period_start on Subscriptionv2.Event.ListParams and v2.EventDestination.ListParamsCheckoutSession.collected_information to be requiredCheckoutSession.CollectedInformation.shipping_details to be requiredCheckoutSession.CollectedInformation.ShippingDetail.address to be requiredCheckoutSession.CollectedInformation.ShippingDetail.name to be requiredPaymentIntent.ConfirmParamsPaymentMethodOptionWechatPay.client, PaymentIntent.CreateParamsPaymentMethodOptionWechatPay.client, and PaymentIntent.UpdateParamsPaymentMethodOptionWechatPay.client to be optionalpolitical_exposure on resources Person and Token and params Token.CreateParams from string to enum("existing" | "none")InvoicePaymentlist and retrieve methods on resource InvoicePaymentbillie_payments, nz_bank_account_becs_debit_payments, and satispay_payments on Account.Capability, Account.CreateParamsCapability, and Account.UpdateParamsCapabilityhosted_payment_method_save on Account.Setting.Invoice and Account.UpdateParamsSettingInvoiceinvoices on Account.CreateParamsSettinginformation_missing, invalid_signator, verification_failed_authorizer_authority, and verification_rejected_ownership_exemption_reason on enums Account.FutureRequirement.Error.code, Account.Requirement.Error.code, AccountCapability.FutureRequirement.Error.code, AccountCapability.Requirement.Error.code, AccountPerson.FutureRequirement.Error.code, AccountPerson.Requirement.Error.code, BankAccount.FutureRequirement.Error.code, and BankAccount.Requirement.Error.codeforwarding_api_retryable_upstream_error and setup_intent_mobile_wallet_unsupported on enums Invoice.LastFinalizationError.code, PaymentIntent.LastPaymentError.code, SetupAttempt.SetupError.code, SetupIntent.LastSetupError.code, and StripeError.codestripe_balance_payment_debit_reversal and stripe_balance_payment_debit on enum BalanceTransaction.typelast on enums BillingMeter.DefaultAggregation.formula and billing.Meter.CreateParamsDefaultAggregation.formulapresentment_details on Charge, CheckoutSession, PaymentIntent, and Refundbillie and satispay on Charge.PaymentMethodDetail, ConfirmationToken.CreateParamsPaymentMethodDatum, ConfirmationToken.PaymentMethodPreview, CustomerPaymentMethod, PaymentIntent.ConfirmParamsPaymentMethodDatum, PaymentIntent.CreateParamsPaymentMethodDatum, PaymentIntent.UpdateParamsPaymentMethodDatum, PaymentMethod.CreateParams, PaymentMethodConfiguration.CreateParams, PaymentMethodConfiguration.UpdateParams, PaymentMethodConfiguration, PaymentMethod, SetupIntent.ConfirmParamsPaymentMethodDatum, SetupIntent.CreateParamsPaymentMethodDatum, and SetupIntent.UpdateParamsPaymentMethodDatumnz_bank_account on Charge.PaymentMethodDetail, ConfirmationToken.CreateParamsPaymentMethodDatum, ConfirmationToken.PaymentMethodPreview, CustomerPaymentMethod, Mandate.PaymentMethodDetail, PaymentIntent.ConfirmParamsPaymentMethodDatum, PaymentIntent.ConfirmParamsPaymentMethodOption, PaymentIntent.CreateParamsPaymentMethodDatum, PaymentIntent.CreateParamsPaymentMethodOption, PaymentIntent.PaymentMethodOption, PaymentIntent.UpdateParamsPaymentMethodDatum, PaymentIntent.UpdateParamsPaymentMethodOption, PaymentMethod.CreateParams, PaymentMethodConfiguration.CreateParams, PaymentMethodConfiguration.UpdateParams, PaymentMethodConfiguration, PaymentMethod, SetupAttempt.PaymentMethodDetail, SetupIntent.ConfirmParamsPaymentMethodDatum, SetupIntent.CreateParamsPaymentMethodDatum, and SetupIntent.UpdateParamsPaymentMethodDatumoptional_items on CheckoutSession, PaymentLink.CreateParams, PaymentLink, and checkout.Session.CreateParamspermissions on CheckoutSession and checkout.Session.CreateParamsbillie and satispay on enum checkout.Session.CreateParams.payment_method_typescustom on enums CheckoutSession.ui_mode and checkout.Session.CreateParams.ui_modeshipping_options on checkout.Session.UpdateParamsbillie, nz_bank_account, and satispay on enums ConfirmationToken.CreateParamsPaymentMethodDatum.type, PaymentIntent.ConfirmParamsPaymentMethodDatum.type, PaymentIntent.CreateParamsPaymentMethodDatum.type, PaymentIntent.UpdateParamsPaymentMethodDatum.type, SetupIntent.ConfirmParamsPaymentMethodDatum.type, SetupIntent.CreateParamsPaymentMethodDatum.type, and SetupIntent.UpdateParamsPaymentMethodDatum.typebuyer_id on ConfirmationToken.PaymentMethodPreview.NaverPay, CustomerPaymentMethod.NaverPay, and PaymentMethod.NaverPaybillie, nz_bank_account, and satispay on enums ConfirmationToken.PaymentMethodPreview.type, CustomerPaymentMethod.type, and PaymentMethod.typerefunds on CreditNote.CreateParams, CreditNote.PreviewParams, CreditNotePreviewLines.ListParams, and CreditNotetotal_taxes on CreditNote and Invoicetaxes on CreditNoteLineItem and InvoiceLineItemcheckout_session on CustomerBalanceTransactioncheckout_session_subscription_payment_canceled and checkout_session_subscription_payment on enum CustomerBalanceTransaction.typebillie, nz_bank_account, and satispay on enums CustomerPaymentMethod.ListParams.type, PaymentMethod.CreateParams.type, and PaymentMethod.ListParams.typeinvoice.overpaid on enum Event.typeklarna and nz_bank_account on enums Invoice.CreateParamsPaymentSetting.payment_method_types, Invoice.PaymentSetting.payment_method_types, Invoice.UpdateParamsPaymentSetting.payment_method_types, Subscription.CreateParamsPaymentSetting.payment_method_types, Subscription.PaymentSetting.payment_method_types, and Subscription.UpdateParamsPaymentSetting.payment_method_typespricing on Invoice.AddLinesParamsLine, Invoice.UpdateLinesParamsLine, InvoiceItem.CreateParams, InvoiceItem.UpdateParams, InvoiceItem, InvoiceLineItem.UpdateParams, and InvoiceLineItemtaxability_reason on Invoice.AddLinesParamsLineTaxAmount, Invoice.UpdateLinesParamsLineTaxAmount, and InvoiceLineItem.UpdateParamsTaxAmountjurisdiction_level on Invoice.AddLinesParamsLineTaxAmountTaxRateDatum, Invoice.UpdateLinesParamsLineTaxAmountTaxRateDatum, and InvoiceLineItem.UpdateParamsTaxAmountTaxRateDatumamount_overpaid, confirmation_secret, and payments on Invoiceparent on InvoiceItem, InvoiceLineItem, and Invoiceexpired on enums IssuingAuthorization.status and issuing.Authorization.ListParams.statusnetwork_fallback on enum IssuingAuthorization.RequestHistory.reasonnaver_pay on Mandate.PaymentMethodDetail and SetupAttempt.PaymentMethodDetailsetup_future_usage on PaymentIntent.ConfirmParamsPaymentMethodOptionNaverPay, PaymentIntent.CreateParamsPaymentMethodOptionNaverPay, PaymentIntent.PaymentMethodOption.NaverPay, and PaymentIntent.UpdateParamsPaymentMethodOptionNaverPaydefault_value on PaymentLink.CreateParamsCustomFieldDropdown, PaymentLink.CreateParamsCustomFieldNumeric, PaymentLink.CreateParamsCustomFieldText, PaymentLink.CustomField.Dropdown, PaymentLink.CustomField.Numeric, PaymentLink.CustomField.Text, PaymentLink.UpdateParamsCustomFieldDropdown, PaymentLink.UpdateParamsCustomFieldNumeric, and PaymentLink.UpdateParamsCustomFieldTextbillie and satispay on enums PaymentLink.CreateParams.payment_method_types, PaymentLink.UpdateParams.payment_method_types, and PaymentLink.payment_method_typesnz_bank_transfer on Refund.DestinationDetailcanceled on enum Review.closed_reasoncurrent_period_end and current_period_start on SubscriptionItemwifi on TerminalConfiguration, terminal.Configuration.CreateParams, and terminal.Configuration.UpdateParamsinvoice.overpaid on enums WebhookEndpoint.CreateParams.enabled_events and WebhookEndpoint.UpdateParams.enabled_events2025-03-01.dashboard and 2025-03-31.basil on enum WebhookEndpoint.CreateParams.api_versionFetched March 31, 2026