Skip to main content
POST /v1/organizations/{organizationId}/billing/preview Previews a fixed-charge quantity change on the selected organization’s own subscription, such as SSO. Prices the change by the billing engine exactly as making it would bill it now: dueNow is that invoice, with taxes and the payer’s credits applied. A quantity already paid for this period is not billed again, so a purchase after a release can be free. nextCharge is what is charged in advance at the next period start. For a fixed-charge change, pass quote on with the purchase so it is refused if the price or period no longer hold. This operation does not change billing.
TypeScript

Parameters

string
required

Body

FixedChargeChange
required
A quantity change made now, as a purchase or release makes it.

Returns

200 What the change would bill. PreviewOrganizationChangeResponse
integer | null
required
The payer’s credit balance once dueNow is charged: the credit the change issues included, less what dueNow uses. In dueNow’s currency. Null when the change charges nothing now (a downgrade).
BillingPreviewInvoice
required
Charged when the change is made, priced as the change bills it. No lines when it charges nothing now.
BillingNextCharge | null
required
What is charged in advance at the next period start for what is held after the change. Usage and a minimum commitment are billed after the period. Null when nothing is, or the subscription ends first.
BillingPlanChangeEffect | null
required
Set for a plan change, null otherwise.
FixedChargeQuote | null
required
Set for a fixed-charge change, null otherwise: the unit price, currency and period the preview was priced on. Pass them on with the purchase so it is refused if they no longer hold.
string
required
The IANA time zone the payer is billed in, e.g. America/Los_Angeles. Billing periods start and end at its midnights, so read their calendar dates in it.