SubscriptionUpdatePreview
Unused time that would be credited at the current price, in the smallest currency unit.
500Time that would be charged at the new price, in the smallest currency unit. An interval change charges the full new price rather than a fraction of it.
1200The computed difference, charge minus credit. This is the amount that would move,
except when refundCapped is true: a refund cannot exceed what the payment funding
the current period received, so less than net would be refunded.
700Whether the difference would be charged, refunded, or neither. none means the
difference rounds to zero and no money moves.
Possible values: [charge, refund, none]
chargeTrue when the refund would be smaller than the magnitude of net, because a refund
cannot exceed the amount the payment funding the current period received.
falseThe date the change would take effect.
1636366897The end date of the current subscription period. Measured in seconds since the Unix epoch.
1636366897The end of the billing period the change would start. Present only for an interval
or intervalCount change, which restarts the period.
1667902897When the next payment would be taken. Present only for an interval or
intervalCount change.
1667902897{
"credit": 500,
"charge": 1200,
"net": 700,
"direction": "charge",
"refundCapped": false,
"effectiveAt": 1636366897,
"currentPeriodEnd": 1636366897,
"newPeriodEnd": 1667902897,
"nextPaymentAt": 1667902897
}