Weiter zum Inhalt
Konto erstellen
oder
anmelden
Das Logo der Stripe-Dokumentation
/
KI fragen
Konto erstellen
Anmelden
Jetzt starten
Zahlungen
Umsatz
Plattformen und Marktplätze
Geldmanagement
Entwickler-Tools
Übersicht
Versionierung
Änderungsprotokoll
    Übersicht
    Basilikum
    Acacia
    Vorherige Versionen
Aktualisieren Sie Ihre API-Version
Ihre SDK-Version aktualisieren
Entwickler-Tools
SDKs
API
Tests
Workbench
Ereignisziele
Arbeitsabläufe
Stripe-CLI
Stripe Shell
Entwickler-Dashboard
Agent-Toolkit
Mit LLMs entwickelnStripe für Visual Studio CodeStripe-StatuswarnungenHochgeladene Dateien
Sicherheit und Datenschutz
Sicherheit
Datenschutz
Extend Stripe
Stripe-Apps
Stripe Connectors
Partner
Partner-Ecosystem
Partner-Zertifizierung
StartseiteEntwickler-ToolsChangelogBasil2025-03-31.basil

Notiz

Bis jetzt ist diese Seite noch nicht in dieser Sprache verfügbar. Wir arbeiten aber verstärkt daran, unsere Dokumentation in weiteren Sprachen bereitzustellen, und werden die Übersetzung sofort anzeigen, sobald diese verfügbar ist.

Replaces top-level price fields with improved price modeling on Invoice Items and Invoice Line ItemsBreaking changes

What’s new

We’re introducing a new polymorphic pricing concept on Invoice Items and Invoice Line Items. It contains all price-related data and unifies the structure of pricing objects (Price and Plan) to prepare for adding new pricing object types. We’re also moving unit amount data into pricing.

Why is this a breaking change?

  • price and plan fields are no longer available on Invoice Items and Invoice Line Items.
  • Move unit_amount and unit_amount_decimal to the new pricing concept on Invoice Items and Invoice Line Items.

Impact

Replace all references to price or plan on Invoice Items or Invoice Line Items with the pricing field:

  • Instead of invoice_item.price.id, use invoice_item.pricing.price_details.price after verifying that invoice_item.pricing.type is price_details
  • When creating or updating Invoice Items, use the pricing parameter instead of price (e.g., set pricing.price instead of passing the price parameter)
  • For unit amounts, use pricing.unit_amount_decimal instead of unit_amount or unit_amount_decimal
  • When creating or updating Invoice Items, use the unit_amount_decimal parameter instead of unit_amount

Changes

ParameterÄndernRessourcen oder Endpoints
planpriceunit_amount_decimalunit_amountEntfernt
InvoiceItem
planpriceEntfernt
InvoiceLineItem
pricingHinzugefügt
Invoice#add_lines.lines[]Invoice#update_lines.lines[]InvoiceItem#create
 + 4 weitere
InvoiceItem#updateInvoiceLineItem#updateInvoiceItemInvoiceLineItem
priceEntfernt
Invoice#add_lines.lines[]Invoice#update_lines.lines[]InvoiceItem#create
 + 4 weitere
InvoiceItem#updateInvoiceItemInvoiceLineItem#updateInvoiceLineItem
unit_amountEntfernt
InvoiceItem#createInvoiceItem#updateInvoiceItem

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 tax-related properties with improved tax modeling on Invoices, Invoice Line Items, and Credit Note Line Items
  • Adds support for multiple (partial) payments on invoices
  • Adds jurisdiction level and taxability reason to manual tax amounts on invoices
War diese Seite hilfreich?
JaNein
Benötigen Sie Hilfe? Kontaktieren Sie den Kundensupport.
Nehmen Sie an unserem Programm für frühzeitigen Zugriff teil.
Schauen Sie sich unser Änderungsprotokoll an.
Fragen? Sales-Team kontaktieren.
LLM? Lesen Sie llms.txt.
Unterstützt von Markdoc