Create subscription
Use when onboarding a customer to a plan or starting a new subscription. Ideal for draft subscriptions (activate later) or active from start.
Request body
AutoInvoiceThreshold triggers a mid-period invoice when usage (in subscription currency) exceeds this amount. Standalone subscriptions only; all plan prices must be usage-based. Immutable after creation.
BillingAnchor overrides the derived anchor for anniversary billing. For monthly billing, the day-of-month defines cycle boundaries (shorter first period if start is before that day).
Deprecated: use SubscriptionCoupons instead.
CustomerID takes priority over ExternalCustomerID when both are provided.
LineItemCommitments sets per-line-item commitment config, keyed by price_id.
Deprecated: use SubscriptionCoupons instead.
TrialPeriodDays: nil = inherit from plan prices, 0 = no trial, >0 = override in days.
Response
Created
ActivePauseID references the current active pause configuration This will be null if no pause is active or scheduled
AutoInvoiceThreshold is the usage amount (in subscription currency) that triggers an intermediate invoice. Overrides the plan-level threshold when set. Nil means: inherit from the plan's threshold (which may also be nil = disabled).
BillingAnchor is the reference point that aligns future billing cycle dates. It sets the day of week for week intervals, the day of month for month and year intervals, and the month of year for year intervals. The timestamp is in UTC format.
BillingPeriodCount is the total number units of the billing period.
CancelAt is the date the subscription will be canceled
CancelAtPeriodEnd is whether the subscription was canceled at the end of the current period
CanceledAt is the date the subscription was canceled
CollectionMethod determines how invoices are collected
CommitmentAmount is the minimum amount a customer commits to paying for a billing period
Currency is the currency of the subscription in lowercase 3 digit ISO codes
CurrentPeriodEnd is the end of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created.
CurrentPeriodStart is the end of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created.
CustomerID is the identifier for the customer in our system
EndDate is the end date of the subscription
EnvironmentID is the environment identifier for the subscription
GatewayPaymentMethodID is the gateway payment method ID for this subscription
ID is the unique identifier for the subscription
InvoicingCustomerID is the customer ID to use for invoicing This can differ from the subscription customer (e.g., parent company invoicing for child company)
LookupKey is the key used to lookup the subscription in our system
OverageFactor is a multiplier applied to usage beyond the commitment amount
ParentSubscriptionID is the parent subscription ID for hierarchy (e.g. child subscription under a parent)
PaymentBehavior determines how subscription payments are handled
PlanID is the identifier for the plan in our system
StartDate is the start date of the subscription
SyncedPriceSequence is the plan-price sequence up to which this subscription's line items have been reconciled. Bumped by the plan-price sync after a successful pass.
TrialEnd is the end date of the trial period
TrialStart is the start date of the trial period
Version is used for optimistic locking