Skip to main content
POST
Preview an organization billing change

Authorizations

Authorization
string
header
required

Account Service Key, prefixed with pho_ask_, sent as Authorization: Bearer <key>. Acts on behalf of its owning account, subject to the permissions and credential restrictions of each operation. Account access tokens and OAuth grants also use the Bearer header. In organizations that require SSO, Account Service Keys are not accepted for managing the organization's SSO settings, deleting the organization, or checking whether it can be deleted.

Path Parameters

organizationId
string
required

Body

application/json
fixedCharge
object
required

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

Response

What the change would bill.

balanceAfterCents
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).

Required range: -9007199254740991 <= x <= 9007199254740991
dueNow
object
required

Charged when the change is made, priced as the change bills it. No lines when it charges nothing now.

nextCharge
object | 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.

planChange
object | null
required

Set for a plan change, null otherwise.

quote
object | 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.

timeZone
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.