Create a subscription plan
Create a new subscription plan with one or more pricing variations.
A subscription plan defines the billing structure for subscriptions. Each plan can have multiple variations (e.g., monthly vs. yearly), and each variation can have multiple billing phases (e.g., trial period followed by regular billing). These plans are designed for flexibility, allowing you to combine fixed recurring fees with unit-based or usage-based charges into a single, unified subscription.
How subscription plans work
A subscription plan consists of four hierarchical levels:
- Plan: The top-level container (e.g., "Standard Plan")
- Variations: Different pricing options (e.g., monthly vs. yearly)
- Phases: Sequential billing stages within each variation
- Subscription items: Individual line items within a phase that define how to charge (e.g., a base fee plus per-unit charges)
Phases and billing items
If a trial_duration is defined at the variation level, billing phases begin immediately after the trial ends. Phases execute in sequence based on their ordinal value (1, 2, 3, etc.):
| Concept | Behaviour |
|---|---|
| Cycle control | Each phase has a cycle_duration (e.g., P1M for monthly). Use cycle_count to limit how many cycles occur; if null or omitted, the phase runs indefinitely. |
| Sequential transition | When a phase completes its cycles, the subscription advances to the next ordinal. If no next phase exists, the subscription stops automatically. |
| Item composition | Each phase contains one or more subscription_items defining how charges are calculated: flat items apply a fixed cost multiplied by quantity; usage items are metered at the end of the cycle based on reported consumption. |
A plan combining a base platform fee and monthly user licenses:
Variation: Monthly Team
Phase 1 — ordinal: 1, cycle_duration: P1M
| Item | Type | amount | quantity |
|---|---|---|---|
| Base platform fee | flat | 4900 (£49.00) | 1 |
| User licenses | flat | 1000 (£10.00 per unit) | 5 |
The customer is billed a fixed platform fee plus £10.00 for each of their 5 active licenses every month.
Request
Response
Subscription plan created successfully