Previews the billing changes that would occur when attaching multiple plans, without actually making any changes.
Use this endpoint to show customers what they will be charged before confirming a multi-plan subscription.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the customer to attach the plans to.
The list of plans to attach to the customer.
1The ID of the entity to attach the plans to.
Free trial configuration applied to all plans. Pass an object to set a custom trial, or null to remove any trial.
Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately.
List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code.
URL to redirect to after successful checkout.
Additional parameters to pass into the creation of the Stripe checkout session.
Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects.
always, if_required, never Only applicable when the customer has an existing Stripe subscription. If true, creates a new separate subscription instead of merging into the existing one.
Customer details to set when creating a customer
OK
The ID of the customer.
List of line items for the current billing period.
The total amount in cents before discounts for the current billing period.
The final amount in cents after discounts for the current billing period.
The three-letter ISO currency code (e.g., 'usd').
Products or subscription changes being added or updated.
Products or subscription changes being removed or ended.
Preview of the next billing cycle, if applicable. This shows what the customer will be charged in subsequent cycles.
Expand the response with additional data.