Preview a subscription update
Calculates the recurring price, next invoice line items and total, and any amount that would be charged immediately for a proposed subscription update. The request uses the same plan, charge-period, and feature fields as Update a subscription. This endpoint does not change the subscription, create an invoice, charge the customer, or write the proposed update to Kelviq.
For manual billing methods, nextInvoice is null. Amount fields without the Units suffix use the currency’s major unit; fields ending in Units use its minor unit.
Authorizations
The Server API Key obtained from the kelviq application. Pass as a Bearer token in the Authorization header. Example: 'Authorization: Bearer YOUR_API_KEY'
Path Parameters
The unique identifier of the subscription whose update will be previewed.
Body
The identifier of the proposed new plan.
"new_plan_enterprise"
The proposed charging period for the subscription.
ONE_TIME, MONTHLY, YEARLY, WEEKLY, DAILY, TWENTY_EIGHT_DAYS, THREE_MONTHS, SIX_MONTHS "YEARLY"
List of proposed features and quantities for the subscription.
The IP Address of the customer, for location-based pricing.
"103.154.35.20"
The proposed trial end. Accepts "now" or a future ISO 8601 datetime.
"2027-12-31 23:59:59"
Response
The proposed update was priced successfully; no changes were applied.
ISO 4217 currency code for all amounts in the response.
"USD"
The subscription's new recurring amount in the currency's major unit.
50
The subscription's new recurring amount in the currency's minor unit.
5000
Amount that would be charged immediately in the currency's major unit. This is non-zero only when the update uses immediate invoicing.
39.5
Amount that would be charged immediately in the currency's minor unit.
3950
Preview of the next provider invoice. null for billing methods that do not provide invoice previews.