Preview a tier switch
Return a financial preview for switching the subscription into a target tier, with optional quantity overrides. This call does not change anything.
Autorisierungen
Customer access token. Send it as Authorization: Bearer . Obtain it server side via POST /customers/{id}/authenticate (use the response accessToken), or from a customer portal session. The token must carry the customer:plan:switch permission.
Pfadparameter
The subscription UUID.
"1280792f-4e23-793d-8e9c-3a1bf36630bd"
Body
Antwort
The switch preview. May be null when no schedule exists yet.
Financial preview of a tier switch. creditAmount and chargeAmount are absolute decimal strings, the direction is implied by the field name.
Credit for unused time on the current items. 0.00 when the target tier does not credit.
"14.50"
Charge for the partial period on the new items.
"24.50"
"EUR"
Date the switch is calculated for. For end_of_period tiers the preview uses the current moment, so the amounts are an approximation.
Recurring amount for one billing period. Amounts are decimal strings.
Hints about side effects, for example that an active discount will not carry over.
["active_discount_will_be_lost"]