Preview pending charges that will bill on the final invoice if not waived
Return the queued (uninvoiced) Stripe invoice items for this workspace’s customer.
Used by CancelPanel to surface orphan prorations BEFORE the user confirms
cancellation — a queued $134 charge from a prior plan-switch will still flush
onto the final cycle invoice unless explicitly waived via
cancel?waive_pending_charges=true.
Implementation note: uses InvoiceItem.list(pending=True) directly rather
than Invoice.create_preview because the latter conflates renewal recurring
line items with prorations and requires brittle line-flag classification on
Stripe API 2025-03-31.basil (see comment on preview_change_plan).
Authorizations
Headers
Path Parameters
Cookies
Response
Successful Response
Pending charges that will be billed on the final cycle invoice if not waived.
pending_total includes credits (negative items); pending_items shows
only positive lines so the UI surfaces what the user will actually pay.
