Creates a new subscription against an active recurring Price. Starts in `trialing` if trialDays is set, else `incomplete` (awaiting first payment).
AuthorizationRequiredBearer <token>API key as Bearer token
In: header
application/jsonRequiredpriceIdstringSingle-item shortcut. Use this OR items[]. Must be active + recurring.
quantityintegerNumber of units of the priceId shortcut (default 1).
1Maximum: 9007199254740991itemsarray<object>Multi-item path. Each item references a recurring Price; all items must share the same recurring cycle and currency (Phase 1).
contactIdstringCRM contact id; optional if customerEmail provided
customerEmailstringEmail for late linking when contactId is unknown
trialDaysintegerTrial length in days; omit/0 for no trial. Mutually exclusive with billingCycleAnchor.
0Maximum: 9007199254740991billingCycleAnchorstringAbsolute first-billing date; when set (and in the future), the first paid cycle begins on this date and the sub is in trialing until then. Mutually exclusive with trialDays.
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"Format: "date-time"cancelAtstringAbsolute scheduled end date; the sub auto-cancels on the renewal pass once now >= cancelAt.
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"Format: "date-time"dunningEnabledbooleanDefaults to true. When false, a failed renewal payment marks the subscription unpaid immediately with no past-due grace or automatic retries.
notesstringMemo printed on every renewal invoice generated for this subscription.
5000taxIdsarray<object>Host tax-ID snapshot. Forwarded onto each renewal invoice unchanged.
autoChargebooleanDefaults to true. When false, the scheduler stops at finalize and the customer pays each renewal invoice via the emailed payment link.
paymentDueDaysintegerDays the customer has to pay each renewal invoice when autoCharge=false. Each renewal's dueAt = renewalDate + paymentDueDays.
0Maximum: 9007199254740991taxRatenumberSingle tax rate (percent) applied to every renewal invoice subtotal. Persisted on the sub; the scheduler applies it on each renewal.
0Maximum: 100metadataobject