Preview Subscription

View as Markdown

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_idstringRequired
account_idstringRequired

Query parameters

expandlist of strings or nullOptional

Response

Successful Response
subscriptionobject
upcoming_invoiceobject

Errors

422
Unprocessable Entity Error