Preview Subscription
Preview upcoming subscription renewal with invoice preview.
Fetches subscription items and computes renewal totals using pure computation — no rows are created, no invoice numbers claimed, no billing cycles decremented, no floating items attached, no events emitted.
Works for both User and API Key authentication. Account access is automatically validated via endpoint dependency.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
subscription_id
account_id
Query parameters
expand
Response
Successful Response
subscription
upcoming_invoice
Errors
422
Unprocessable Entity Error