Generates a draft invoice for a subscription's current period without advancing the period. Used for the first-period invoice on a non-trial subscription, or one-off rebilling.
AuthorizationRequiredBearer <token>API key as Bearer token
In: header
idRequiredstringSubscription id, discoverable via list_subscriptions
Mark Subscription Unpaid
Marks a subscription as unpaid (terminal). Admin override that bypasses dunning retries regardless of dunningEnabled. Called by payment processor webhooks for unrecoverable failures.
Preview Upcoming Subscription Invoice
Returns a non-persisted preview of the invoice the next renewal will generate (Stripe-style invoice.upcoming). Returns `invoice: null` when the subscription is set to cancel at period end. Rejects incomplete, canceled, and unpaid subscriptions (no future cycle exists to preview). For past_due subscriptions, the preview reflects the cycle AFTER the current retry, not the in-flight unpaid invoice itself. To inspect the current cycle's open invoice, use `list_invoices` with `subscriptionId` and `status: payment_failed`.