Renew subscription
renew_subscriptionRenew a subscription: advance current_term_started_at and current_term_ends_at forward by one billing cadence (or accept explicit dates), optionally update mrr_cents/seats/plan_name (for renewals with uplift). Writes a subscription_events row of type 'renewed'. Link to the closed-won renewal opportunity_id when available.
When to use: On close-win of a renewal opp. Handles term-date math by cadence.
Example: Renew Acme's Pro Annual subscription for another 12 months at the same MRR.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | A uuid. | |
| notes | No | Free-text note stored on the 'renewed' subscription_events row (e.g. uplift terms); not written to the subscription itself. | |
| new_seats | No | Seat count after the renewal — omit to keep the current seats, or pass null to clear them; the 'renewed' event records the resulting seats. | |
| new_mrr_cents | No | An integer ≥ 0. | |
| new_plan_name | No | Plan name after the renewal (e.g. a tier change); omitted keeps the subscription's current plan_name. | |
| opportunity_id | No | A uuid. | |
| new_current_term_ends_at | No | Must match /^\d{4}-\d{2}-\d{2}$/. | |
| new_current_term_started_at | No | Must match /^\d{4}-\d{2}-\d{2}$/. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | ||
| subscription | No |