Manage subscription plans, billing cycles, and subscriptions. Use when running `stateset-subscriptions`, enrolling customers, or handling pause/resume/cancel operations.
Handle recurring billing plans and customer subscriptions.
monthly, quarterly, annual), and trial period.stateset-subscriptions ... or stateset "pause subscription sub_123"--apply.create_subscription_plan, create_subscription, pause_subscription, resume_subscription, cancel_subscription, skip_billing_cycle, list_billing_cycles.list_billing_cycles — no --apply needed.create_subscription_plan, create_subscription, pause_subscription, resume_subscription, cancel_subscription, skip_billing_cycle — requires --apply.stateset subscriptions create-plan --name "Pro Monthly" --interval monthly --price 29.99 --apply
stateset subscriptions create --customer cust_123 --plan plan_456 --apply
stateset subscriptions pause sub_123 --apply
stateset subscriptions cancel sub_123 --at-period-end --apply
Subscription: Active -> Paused -> Active (or Cancelled/Expired)
Billing Cycle: Scheduled -> Charged -> Paid (or Failed/Skipped)
{"status":"active","subscription_id":"sub_123","plan":"monthly","next_charge_date":"2025-02-01","amount":29.99}
PLAN_ARCHIVED: Archived plans cannot accept new enrollments.BILLING_PAST_DUE: Payment failed for the current billing cycle.DUPLICATE_SUBSCRIPTION: Customer already has an active subscription to this plan.