The Plan Object
Attributes
A plan is a reusable pricing catalog entry. Subscribe a customer to a plan instead of setting amount/frequency directly on the subscription, and every field that defines “how much, how often” is resolved from the plan.
The unique identifier of the plan (MAX 64; MIN 36).
Example: 00000000-0000-4000-8000-000000000001
The unique identifier of the account the plan belongs to (MAX 64; MIN 36).
Example: 00000000-0000-4000-8000-000000000002
The additional accounts the plan is shared with, excluding the owner in account_id. Empty for a plan that belongs to a single account. Returned only, the field is not accepted when creating a plan.
Example: [“00000000-0000-4000-8000-000000000003”]
The plan name (MAX 255; MIN 3).
Example: Streaming Pro
The plan description. No length limit is currently enforced.
Example: Access to Pro features, billed monthly
Your own identifier for the plan. No length limit is currently enforced.
Example: streaming-pro-monthly
Status of the plan.
Possible values:
ACTIVE= The plan can be subscribed to.CANCELED= The plan no longer accepts new subscriptions. Canceling a plan also cancels every subscription currently linked to it.
The default price charged in any country without an explicit entry in country_prices.
The billing frequency for the plan. Every subscription created from this plan inherits it — do not send frequency when subscribing with a plan_id.
Explicit per-country prices. A country not listed here falls back to base_amount.
Payment method types accepted for subscriptions on this plan.
Example: ["CARD", "PIX"]
Key-value pairs attached to the plan itself. This is independent of any metadata set directly on a subscription — see the Subscription object for that.
An optional leading ladder of phases (for example, a trial) before the plan’s regular price applies. Omit for a flat plan with no trial.
The number of live subscriptions (in any non-terminal status) currently on this plan. This is the set a cancel would affect.
Example: 12
Sorted ISO α2 codes — the distinct union of every country this plan explicitly prices, at the plan level or inside any phase. An empty array means the plan applies globally via base_amount, not that it has no coverage.
Related
- Create Plan
- Retrieve Plan
- List Plans
- Cancel Plan
- The Subscription Object — see
plan_idfor how a subscription links back to its plan