SubscriptionUpdateRequest
Request body for updating an existing subscription. All fields are optional — only provided fields are changed.
- Type: string | nullFormat: date-time
billing _cycle _anchor New billing cycle anchor date (ISO 8601).
- Type: object | null · BillingCycleAnchorConfig
billing _cycle _anchor _config Advanced billing cycle configuration. Allows precise control over when billing cycles occur. All fields are optional integers with specific ranges.
- Type: integer
day _of _month min:1max:31requiredDay of month for billing (1–31).
- Type: integer | null
hour min:0max:23Hour of day for billing in UTC (0–23).
- Type: integer | null
minute min:0max:59Minute of hour for billing (0–59).
- Type: integer | null
month min:1max:12Month of year for billing (1–12).
- Type: integer | null
second min:0max:59Second of minute for billing (0–59).
- Type: string | nullFormat: date-time
cancel _at New scheduled cancellation date (ISO 8601).
- Type: boolean
cancel _at _period _end If
true, the subscription remains active until the end of the current billing period, then cancels. Iffalse, re-activates a subscription that was previously set to cancel. - Type: object · CancellationDetails
cancellation _details Details about why this subscription was cancelled.
- Type: string | null
comment max length:5000Free-form text comment explaining the cancellation reason.
- Type: string | nullenum
feedback Predefined cancellation reason category provided by the customer.
valuescustomer _service low _quality missing _features other switched _service too _complex too _expensive unused
- Type: stringenum
collection _method New payment collection method.
send_invoiceis (coming soon).valuescharge _automatically send _invoice
- Type: integer
days _until _due min:1New number of days until invoice is due (for
send_invoicecollection method). - Type: string
default _payment _method ID of the new default payment method.
- Type: array 1…20
items Replace all subscription items with this new set.
Subscription item referencing an existing price from your product catalog.
Currency Handling:
currencyis optional at item level- Falls back to the subscription-level
currencyif not provided - At least one of item.currency or subscription.currency must be set
- Type: string
price requiredPrice ID from your product catalog (ULID format).
- Type: object · RecurringConfig
recurring requiredRecurring billing configuration.
- Type: string
currency min length:3max length:3Three-letter ISO currency code (e.g.
usd). Optional — falls back to subscription.currency if not provided. - Type: integer
quantity min:1Quantity of the subscription item.
- Type: number | null
unit _amount min:0Unit amount override in cents. Falls back to the catalog price if omitted.
- Type: object
metadata Updated metadata key-value pairs.
- Type: anything
property Name
- Type: string
on _behalf _of New connected account ID.
trial _end - enumconst:now
End the trial immediately.
valuesnow
- Type: object · TrialSettings
trial _settings Controls what happens when a trial period ends.
- Type: object
end _behavior Behavior when the trial ends.

