SubscriptionSchedule

A subscription schedule manages the lifecycle of a subscription through a series of phases, allowing you to configure billing changes at specific future dates.

  • Unique identifier for the subscription schedule (ULID).

  • Merchant account ID.

  • ID of the customer this schedule belongs to.

  • Current lifecycle state of a subscription schedule:

    • NOT_STARTED — created but waiting for the first phase start date
    • ACTIVE — currently running; a phase is active
    • COMPLETED — all phases have ended (via end_behavior: CANCEL)
    • CANCELED — manually canceled before completion
    • RELEASED — released from the subscription; billing continues independently
    values
    NOT_STARTEDACTIVECOMPLETEDCANCELEDRELEASED
  • What happens when the last phase ends:

    • RELEASE — schedule becomes RELEASED; the subscription continues billing on its own cadence
    • CANCEL — the subscription is immediately canceled; schedule becomes COMPLETED
    • NONE — no action taken; schedule remains active
    values
    RELEASECANCELNONE
  • ID of the subscription created when the schedule was activated. Null until the first phase is applied.

  • ID of the subscription that was released from this schedule.

  • Default settings applied to the subscription created by this schedule.

    Properties: 3
  • Set of key-value pairs attached to the schedule.

    Properties: 1
  • Whether this schedule exists in live mode (true) or test mode (false).

  • Derived from phases[0].start_date. When the workflow begins watching.

  • Zero-based index of the currently active phase.

  • Summary snapshot of the currently active phase (id, phase_index, start_date, end_at).

    Properties: 1
  • When the workflow will next fire (next phase transition or schedule end).

  • If the schedule was canceled, the date of cancellation.

  • If the schedule completed (all phases ended), the completion date.

  • If the schedule was released, the date of release.

  • Ordered list of schedule phases. Applied sequentially by the workflow. The first phase's start_date determines when the subscription is created.

    Properties: 10
  • Application ID if created via a connected application.

  • Customer account ID for connected account scenarios.

  • coming soon — Reserved for future billing mode configuration. Currently accepted and stored but has no effect on billing behavior.

    Properties: 1
  • Time at which the schedule was created.

  • Time at which the schedule was last updated.