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
metadata
when configuringadd_
, eliminating the need to add this information later in subsequent and separate API calls.invoice_ items You can specify custom
period.
andstart period.
dates 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 asend max_
anditem_ period_ start min_
for subscriptions,item_ period_ end phase_
andstart phase_
for schedules). This helps you align dates to important timestamps such as subscription billing periods or subscription schedule phase dates.end
Impact
Specify the metadata
or the period
field for add_
using the following API endpoints:
- Create or Update subscriptions.
- Create or Update schedules.
- Create a preview invoice by specifying the
schedule_
.details