Authorizations
Enter your JWT in the format: Bearer {token}
Path Parameters
The ID of the workspace.
"ws_a1b2c3d4e5f6g7h8"
The ID of the billing account, which corresponds to a Stripe Customer ID (cus_...).
"cus_a1b2c3d4e5f6g7h8"
Body
The ID of an existing subscription to preview changes for. If omitted, previews a new subscription.
"sub_a1b2c3d4e5f6g7h8"
A list of products and their new quantities to preview. To remove a product, set its quantity to 0 or omit it.
Set to true to preview the invoice for canceling the subscription at the end of the current period.
false
Response
The previewed invoice object.
"in_1Kb..."
"cus_..."
"paid"
Final amount due in the smallest currency unit (e.g., cents).
999
The amount paid on this invoice in the smallest currency unit.
999
"usd"
"2025-10-29T00:40:06.000000Z"
Total of all line items before discounts and taxes.
1099
Total after discounts and taxes.
999
The amount of tax on this invoice.
0
The total discount amount applied to this invoice.
100
["10% Off Coupon"]null
"https://invoice.stripe.com/..."
"https://pay.stripe.com/..."
"AB123-001"