Adds subscription item-level billing periods and removes subscription-level periodsBreaking changes
What’s new
Subscription items now track their respective billing periods directly instead of as a top-level shared billing period on the subscription resource.
Why is this a breaking change?
current_andperiod_ start current_fields are no longer available on the subscription resource.period_ end previous_on theattributes customer.webhook now include that the subscription item’s billing period has changed.subscription. updated
Impact
Update any code that references subscription-level current_ and current_ fields. Instead, access the subscription item’s billing periods directly using items.data.current_period_end and items.data.current_period_start fields.
Make sure that your integration correctly handles the previous_ field on the customer. webhook. For instance, for price or quantity changes, inspect the previous_ field.