Accéder directement au contenu
Créez un compte
ou
connecter-vous
Logo de la documentation Stripe
/
Demander à l'assistant IA
Créez un compte
Connectez-vous
Démarrer
Paiements
Revenus
Plateformes et places de marché
Gestion de fonds
Outils de développement
Aperçu
Gestion des versions
Journal des modifications
    Présentation
    Basil
    Acacia
    Versions précédentes
Mettre à niveau votre version de l'API
Actualiser votre version du SDK
Outils de développement
SDK
API
Tests
Workbench
Destinations d'événements
Workflows
CLI Stripe
Shell Stripe
Dashboard des développeurs
Boîte à outils des agents
Intégrer des LLMStripe pour Visual Studio CodeAlertes d'intégrité de StripeChargements de fichiers
Sécurité et confidentialité
Sécurité
Confidentialité
Extensions Stripe
Stripe Apps
Connecteurs Stripe
Partenaires
Partner ecosystem
Certification des partenaires
AccueilOutils de développementChangelogBasil2025-03-31.basil

Remarque

Cette page n'est pas encore disponible dans cette langue. Nous faisons tout notre possible pour proposer notre documentation dans davantage de langues et nous vous fournirons la version traduite dès qu'elle sera disponible.

Adds support for multiple (partial) payments on invoicesBreaking changes

What’s new

We’re introducing support for multiple (partial) payments on invoices and credit notes. Invoices also track over-payments and can track out of band payments now. In addition, we’re adding a confirmation_secret field on the Invoice object to enhance support for using the Payment Element.

Why is this a breaking change?

  • Removed the payment_intent, charge, paid, and paid_out_of_band fields from the Invoice object.
  • Removed the invoice field from the Payment Intent and Charge objects.
  • Deprecated the refund field on the Credit Note object and replaced it with a refunds array.
  • The amount_paid field on the Invoice object now reflects out of band payments.

Impact

We introduced the Invoice Payment object to represent the connection between payments and invoices and removed previous invoice and payment pointers on relevant objects. Make sure that you update your integration to no longer assume that a single invoice must be paid by a single payment, and use the new Invoice Payment object to understand the connection between payments and invoices.

Inspect the invoice.payments array for payment information

You can inspect invoice.payments when interacting with the Invoice object by expanding the payments property:

Command Line
cURL
curl -G https://api.stripe.com/v1/invoices/{INVOICE_ID} \ -u "
sk_test_BQokikJOvBiI2HlWgH4olfQ2
:"
\ -d "expand[]"=payments

The invoice.payments array provides a list of all the payments associated with the invoice and their respective allocation and payment status.

Use the new Invoice Payment endpoints for payments and invoice connection

To understand the connection between a Payment Intent and Invoice object, you can use the List Invoice Payment endpoint:

Command Line
cURL
curl -G https://api.stripe.com/v1/invoice_payments \ -u "
sk_test_BQokikJOvBiI2HlWgH4olfQ2
:"
\ -d "payment[type]"=payment_intent \ -d "payment[payment_intent]"={PAYMENT_INTENT_ID}

Use confirmation_secret for Payment Element integrations

For Payment Element integrations, especially Subscription integrations, that previously relied on expanding invoice.payment_intent.client_secret or latest_invoice.payment_intent.client_secret, you can now use the new invoice.confirmation_secret.client_secret field on the Invoice object by expanding confirmation_secret:

Command Line
cURL
curl -G https://api.stripe.com/v1/invoices/{INVOICE_ID} \ -u "
sk_test_BQokikJOvBiI2HlWgH4olfQ2
:"
\ -d "expand[]"=confirmation_secret

Changes

Modifierressource
Ajouté
InvoicePayment
endpoints Modifierressource
retrievelistAjouté
InvoicePayment
paramètresModifierRessources ou endpoints
chargepayment_intenttransfer_datapaidapplication_fee_amountpaid_out_of_bandSupprimé
Invoice
refundsAjouté
CreditNoteCreditNote#createCreditNote#preview_lines
 + 1 de plus
CreditNote#preview
refundSupprimé
CreditNoteCreditNote#createCreditNote#preview_lines
 + 1 de plus
CreditNote#preview
amount_overpaidpaymentsconfirmation_secretAjouté
Invoice
invoiceSupprimé
PaymentIntentCharge
valeurModifierénumérations
invoice.overpaidAjouté
WebhookEndpoint#create.enabled_eventsWebhookEndpoint#update.enabled_eventsEvent.type

Upgrade

  1. View your current API version in Workbench.
  2. If you use an SDK, upgrade to the corresponding SDK version for this API version.
    • If you don’t use an SDK, update your API requests to include Stripe-Version: 2025-03-31.basil
  3. Upgrade the API version used for webhook endpoints.
  4. Test your integration against the new version.
  5. If you use Connect, test your Connect integration.
  6. In Workbench, perform the upgrade. You can roll back the version for 72 hours.

Learn more about Stripe API upgrades.

Related changes

  • Replaces top-level price fields with improved price modeling on Invoice Items and Invoice Line Items
  • Replaces top-level tax-related properties with improved tax modeling on Invoices, Invoice Line Items, and Credit Note Line Items
  • Adds jurisdiction level and taxability reason to manual tax amounts on invoices
Cette page vous a-t-elle été utile ?
OuiNon
Besoin d'aide ? Contactez le service Support.
Rejoignez notre programme d'accès anticipé.
Consultez notre log des modifications.
Des questions ? Contactez l'équipe commerciale.
LLM ? Lire llms.txt.
Propulsé par Markdoc