Subscriptions
The subscription_update_preview object
What updating a subscription would charge, worked out without changing anything.
Attributes
objectstringRequiredString naming the object's type.
preview_availablebooleanRequiredfalsewhen a provider bills the subscription: the amounts are then 0, and the difference is charged on the next invoice.currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
proration_behaviorstringRequiredHow the change is prorated:
create_prorationsornone.proration_itemsarray of objectsRequiredThe proration lines the update would add.
Show child attributes
proration_items.descriptionstringRequiredWhat the line is for, as it would appear on the invoice.
proration_items.unit_amountintegerRequiredProrated amount per unit, in the smallest currency unit; negative for a credit.
proration_items.quantityintegerRequiredQuantity the line charges or credits.
proration_items.amountintegerRequiredThe line's total,
unit_amount×quantity, in the smallest currency unit; negative for a credit.proration_items.product_idstringRequiredID of the product the line is for.
proration_items.product_price_idstringRequiredID of the price the line is for.
proration_items.period_starttimestampRequiredUnix timestamp in seconds.
proration_items.period_endtimestampRequiredUnix timestamp in seconds.
proration_items.currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
amount_due_nowintegerRequiredNet of the proration lines, in the smallest currency unit. Negative means a credit, applied to the next invoice rather than refunded.
next_invoice_subtotalintegerRequiredRecurring cost of the new items for a full period, in the smallest currency unit, before taxes and fees.
next_billing_datetimestampNullableUnix timestamp in seconds.
current_period_starttimestampRequiredUnix timestamp in seconds.
current_period_endtimestampRequiredUnix timestamp in seconds.
The next period's invoice with the change applied, priced as renewals bill it; omitted when a provider bills the subscription.