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-ToolsChangelogAcacia2024-09-30.acacia

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.

Adds contextual filters to billing alertsBreaking changes

What’s new

Moves the filter field inside of the alert type configuration as a list of filters. Also renames the alert type configuration fields to drop the _config suffix.

Aktuelle API-Version
usage_threshold_configenum value

Use usage_threshold_config if you intend for an alert to fire when a usage threshold on a meter is crossed.

Neu
usage_thresholdenum value

Use usage_threshold if you intend for an alert to fire when a usage threshold on a meter is crossed.

Why is this a breaking change?

Because this change moves the filter parameter into the alert configuration, you can no longer apply the filter at the top level of alerts.

Additionally, you can no longer specify usage threshold configurations with usage_threshold_config and instead must use usage_threshold.

Impact

With this change, you can create filters that are unique to each alert type. You can see the filters as part of the alert type configuration.

Changes

ParameterÄndernRessourcen oder Endpoints
usage_thresholdHinzugefügt
Billing.Alert#createBilling.Alert
filterusage_threshold_configEntfernt
Billing.Alert#createBilling.Alert

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: 2024-09-30.acacia
  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 an Alerts API for usage-based billing
  • Adds an event for triggered billing alerts
  • Adds support for listening to triggered billing alerts
  • Adds billing alert resources and endpoints
  • Adds support for subscriptions and subscription items to billing alerts
  • Adds Meter Event v2 API endpoints
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