Change plan
Schedules a move to another plan at the start of the next period. The plan must have the same billing mode and currency. Mid-period changes with proration aren’t supported.
Authentication
A secret key (rl_sk_test_..., rl_sk_live_...) or a restricted key with limited scopes (rl_rk_test_..., rl_rk_live_...). A restricted key can carry agent: true and an expires_at, and is what a coding agent should hold. Keys end in a checksum so secret scanners can recognize them. People create, roll and revoke keys in the dashboard; GET /v1/api_keys lists them, masked.
Path parameters
The subscription ID (sub_...).
Request
The plan (ID or key) to move to at the next period.
Response
incomplete is waiting for a first payment or a payment method. past_due has an unpaid invoice; checks are denied until it’s paid.
charge_automatically charges the saved payment method. send_invoice emails a payment link from the provider.
The plan taking over at current_period_end, if a change is scheduled.
Seats. 1 unless the plan has per_seat: true.