SchedulePhase
A single phase in a subscription schedule. Phases are applied sequentially. When a phase is applied, subscription items are updated to match the phase's items.
- startType: stringFormat: date-time
_date requiredWhen this phase begins.
- endType: string | nullFormat: date-time
_date When this phase ends. Omit for an open-ended (last) phase. When reached and no further phases exist,
end_behaviordetermines what happens to the subscription. - trialType: string | nullFormat: date-time
_end Trial end date for the subscription created by this phase (Phase 0 only). When set, the subscription starts in
trialingstatus and no charge is taken untiltrial_end. The billing schedulestartAtis set to this date. - phaseType: integer
_index Zero-based index. Auto-assigned from array position if omitted.
- billingType: string | null
_cycle _anchor Billing anchor for the subscription created by this phase:
"phase_start"(default) — usestart_dateas the billing anchor"automatic"— inherit the subscription's existing anchor (no change on transition)- ISO 8601 datetime string — use a specific date
- collectionType: "charge_automatically" or "send_invoice"enum
_method How to collect payment during this phase.
send_invoiceis (coming soon). - onType: string | null
_behalf _of Account ID for connected account scenarios.
- trialType: TrialSettings
_settings Properties: 1Controls what happens when a trial period ends.
- metadataType: object | nullProperties: 1
Arbitrary key-value pairs for this phase.
- itemsType: SchedulePhaseItems 1…required
Items active during a phase. At least one item is required per phase. Items without
recurringare one-time charges (captured at phase creation, excluded from all future billing cycles).For the terminal phase with
end_behavior: CANCEL, repeat the previous phase's items. The subscription is canceled immediately when the last phase is applied, so the repeated items are never charged again.

