Create plan
Create a new plan with optional consumption model, visibility, and plan group assignment.
Authorizations
Headers
Unique key used to safely retry this write for 24 hours without applying it twice.
1 - 200API version used by this reference. Send this header to select this contract explicitly.
Body
11^[a-z0-9_]+$metered, credits, balance Credits and balance plans. Omitted, credits plans and free plans stop usage when the plan and purchased amounts run out, and paid balance plans bill the missing balance as overage. A new credits plan always stops usage: it allows overage only with a price per credit, which is set after creation, and then PATCH /v1/plans/{id} turns overage on.
Credits plans only. What happens to unused plan credits at each reset; omitted means they expire.
- Option 1
- Option 2
Credits plans only. The most plan credits a subscription spends per day or per week; omitted or null means no limit.
Balance plans only. What happens to unused plan balance at each reset; omitted means it expires.
- Option 1
- Option 2
Balance plans only. The most plan balance a subscription spends per day or per week, in USD cents; omitted or null means no limit.
Make this plan the default plan of its plan group: customers created with that planGroupId start on it, and a paid plan of the group that ends from the customer portal, a revoked payment authorization or exhausted dunning moves to it instead of canceling. Requires a free plan with a planGroupId; replaces the group's previous default plan.
Response
Success
metered, credits, balance Credits and balance plans: true stops usage when the plan and purchased amounts run out; false lets usage continue and bills the missing amount as overage at the next renewal (credits at the price per credit). Trials and free plans always stop.
Credits plans only; null for other consumption models. What happens to unused plan credits at each reset. Purchased credits never expire and never count toward maxPlanCredits.
- Option 1
- Option 2
Credits plans only. The most plan credits a subscription spends per day or per week; null means no limit.
Balance plans only; null for other consumption models. What happens to unused plan balance at each reset. Purchased balance never expires and never counts toward maxPlanBalance.
- Option 1
- Option 2
Balance plans only. The most plan balance a subscription spends per day or per week, in USD cents; null means no limit.
-9007199254740991 <= x <= 9007199254740991Countries with their own currency or prices in the current version. Buyers from any other country pay the USD prices.
"plan"