Use a plan_id from List plans, e.g. starter.
Defaults to monthly.
Date/time the new plan starts. Optional — defaults to now. Cannot be later than the current subscription's end time; a later value is set to that end time. Do not combine with at_period_end: true.
Default: false (switch now or at effective_from). true = switch when the current paid period ends; the current plan runs until then. Do not combine with effective_from.
Your own order or invoice number, stored on the history record.
The date your payment covers (end of the paid period). Must be in the future. Sent again with the same plan it records a renewal in place. Upward does not extend it: the member returns to Free when it passes unless you report the next payment first. Do not combine with at_period_end or a failed payment.
Defaults to paid. failed reports a failed payment on the current plan (same plan_id and billing_mode): it is shown as past due and keeps access until the paid-through date, then the member returns to Free.