Skip to main content
Previews the pricing impact of creating or updating a subscription without making changes. When a customer already has an active subscription, Stigg automatically detects it and calculates proration — no subscriptionId is needed.

Mutation

Parameters

PreviewSubscriptionInput
required
Input for previewing subscription

Return Type

Returns a SubscriptionPreviewV2 with:

InvoicePreview Fields

Examples

Preview New Subscription

Preview Upgrade

Pass the customer’s ID and the target planId. The backend automatically detects the customer’s active subscription and calculates proration.

Preview with Coupon

Common Use Cases

Show pricing before customer confirms purchase.
Show pricing impact of upgrading to a higher plan.
Show discount amount before applying coupon.