Skip to main content
PATCH
Move the company onto another plan

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

application/json
plan_key
string

Key of the plan to move to.

billing_interval
enum<string>

How the plan is paid for.

Available options:
monthly,
annual
monthly_price_cents
integer | null

What the plan costs each month, sized between the catalog's; it buys that much usage plus its tier's bonus. Null is the plan's own price.

Required range: x >= 1
keep_current_plan
boolean

True stays on the plan in force and drops the plan chosen for next month, whatever its key, price or interval. The other fields are then ignored.

expected_monthly_charge_cents
integer

The monthly charge, after any annual discount and before the credit card fee, the merchant was shown. When the choice, laid over the plan waiting or in force now, would charge anything else, nothing is saved and the answer is 409 plan_charge_changed with the charge it would be in details.monthly_charge_cents.

Required range: x >= 0
expected_monthly_total_cents
integer

The monthly total, the credit card fee on the saved payment method included, the merchant was shown. When the choice would now total anything else, as after a switch to a card, nothing is saved and the answer is 409 plan_charge_changed with the total it would be in details.monthly_total_cents.

Required range: x >= 0

Response

Success

The credits section of the billing page.

credits
object
required

The company's credits: its plan, what its usage has drawn this month, and what more cost. One credit is one dollar, and every kind of usage draws on one balance. Priced but not billed or for sale yet.