Adds support for invoice items metadata and period in subscriptions and schedules
What’s new
We introduced a new way to customize the metadata and period fields for one-off invoice items generated by subscriptions and subscription schedules:.
- You can directly attach
metadatawhen configuringadd_invoice_items, eliminating the need to add this information later in subsequent and separate API calls. - You can specify custom
period.startandperiod.enddates that override the default subscription billing cycle dates. This gives you precise control over revenue recognition periods for one-off charges. We’ve also included timestamp indicators (such asmax_item_period_startandmin_item_period_endfor subscriptions,phase_startandphase_endfor schedules). This helps you align dates to important timestamps such as subscription billing periods or subscription schedule phase dates.
Impact
Specify the metadata or the period field for add_invoice_items using the following API endpoints:
- Create or Update subscriptions.
- Create or Update schedules.
- Create a preview invoice by specifying the schedule _ details .
Changes
Upgrade
- View your current API version in Workbench.
- 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-08-27. basil
- Upgrade the API version used for webhook endpoints .
- Test your integration against the new version.
- If you use Connect, test your Connect integration .
Learn more about Stripe API upgrades.