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.

Invoicing resources now specify how they were generatedBreaking changes

What’s new

We’re introducing a new parent field on invoices, invoice items, and invoice line items. The parent field allows you to view the details of the upstream object that generated the invoice, invoice item, or invoice line item (such as a subscription, a quote, or other). It replaces top level fields that we previously used to reference these objects.

Why is this a breaking change?

  • On the Invoice object, we deprecated the quote, subscription, subscription_details, and subscription_proration_date fields.
  • On the Invoice Item object, we deprecated the subscription_item and subscription fields.
  • On the Invoice Line Item object, we deprecated the type, subscription, subscription_item, invoice_item, proration, and proration_details fields.

Impact

Replace field references on invoicing objects with their new locations in the parent field.

On Invoice objects:

  • Use invoice.parent.subscription_details.subscription (verify invoice.parent.type is subscription_details) instead of invoice.subscription.
  • This also applies to:
    • quote
    • subscription_details
    • subscription_proration_date

On Invoice Item objects:

  • Use invoiceitem.parent.subscription_details.subscription (verify invoiceitem.parent.type is subscription_details) instead of invoice_item.subscription
  • This also applies to the subscription_item field

On Invoice Line Item objects:

  • Use line_item.parent.subscription_item_details.subscription_item (verify line_item.parent.type is subscription_item_details) instead of line_item.subscription_item.
  • This also applies to:
    • subscription
    • invoice_item
    • proration
    • proration_details

Changes

ParameterÄndernRessourcen oder Endpoints
subscription_itemsubscriptionEntfernt
InvoiceItem
quotesubscription_detailssubscriptionsubscription_proration_dateEntfernt
Invoice
invoice_itemproration_detailsprorationsubscriptionsubscription_itemtypeEntfernt
InvoiceLineItem
parentHinzugefügt
InvoiceItemInvoiceInvoiceLineItem

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

  • Adds subscription item-level billing periods and removes subscription-level periods
  • Adds support for last aggregation formula on meters
  • Adds new webhook event types for Billing Meters
  • Adds new webhook event types for billing credits
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