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
Ressources pour les développeurs
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
Essentials
SDK
API
Tests
CLI Stripe
Exemples de projets
Outils
Workbench
Dashboard des développeurs
Shell Stripe
Stripe pour Visual Studio Code
Fonctionnalités
Workflows
Destinations d'événements
Alertes d'intégrité de StripeChargements de fichiers
Solutions d'IA
Boîte à outils des agents
Modèle de protocole contextuel
Sécurité et confidentialité
Sécurité
Confidentialité
Extensions Stripe
Créer des applications Stripe
Utiliser les applications de Stripe
Partenaires
Partner ecosystem
Certification des partenaires
AccueilRessources pour les développeursChangelogBasil2025-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.

Replaces top-level tax-related properties with improved tax modeling on Invoices, Invoice Line Items, and Credit Note Line ItemsBreaking changes

What’s new

We’re introducing a new taxes concept on Invoice Line Items and Credit Note Line Items that contains tax-related data and unifies the structure of tax objects in preparation for adding new types of tax objects. This replaces the top-level tax-related properties on the Invoice Line Item and Credit Note Line Item objects.

We’re also introducing a new total_taxes property on the Invoice and Credit Note objects for aggregated tax information.

Why is this a breaking change?

  • tax_rates and tax_amounts are no longer available on the Invoice Line Item and Credit Note Line Item objects.
  • total_tax_amounts is no longer available on the Invoice object.

Impact

Tax Rate IDs on Invoice Line Items and Credit Note Line Items are now nested inside the new taxes property:

  • Replace line_item.tax_rates[0] with line_item.taxes[0].tax_rate_details.tax_rate (after verifying that line_item.taxes[0].type is tax_rate_details)
  • Replace line_item.tax_amounts[0].amount with line_item.taxes[0].amount

Tax totals on Invoices and Credit Notes are now stored in total_taxes:

  • Replace invoice.total_tax_amounts[0].amount with invoice.total_taxes[0].amount (after verifying that invoice.total_taxes[0].type is tax_rate_details)

Changes

paramètresModifierRessources ou endpoints
tax_amountsSupprimé
CreditNoteCreditNoteLineItemInvoiceLineItem
amount_excluding_taxunit_amount_excluding_taxSupprimé
CreditNoteLineItemInvoiceLineItem
tax_ratesSupprimé
InvoiceLineItem
taxtotal_tax_amountsSupprimé
Invoice
total_taxesAjouté
CreditNoteInvoice
taxesAjouté
CreditNoteLineItemInvoiceLineItem

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
  • Adds support for multiple (partial) payments on invoices
  • 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