SubscriptionUpdateRequest
Request body for updating an existing subscription. All fields are optional — only provided fields are changed.
- billingType: string | nullFormat: date-time
_cycle _anchor New billing cycle anchor date (ISO 8601).
- billingType: object | null
_cycle _anchor _config Advanced billing cycle configuration. Allows precise control over when billing cycles occur. All fields are optional integers with specific ranges.
- dayType: integer
_of _month min:1max:31requiredDay of month for billing (1–31).
- hourType: integer | nullmin:0max:23
Hour of day for billing in UTC (0–23).
- minuteType: integer | nullmin:0max:59
Minute of hour for billing (0–59).
- monthType: integer | nullmin:1max:12
Month of year for billing (1–12).
- secondType: integer | nullmin:0max:59
Second of minute for billing (0–59).
- cancelType: string | nullFormat: date-time
_at New scheduled cancellation date (ISO 8601).
- cancelType: boolean
_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. - cancellationType: object · CancellationDetails
_details Details about why this subscription was cancelled.
- commentType: string | nullmax length:5000
Free-form text comment explaining the cancellation reason.
- feedbackType: string | nullenum
Predefined cancellation reason category provided by the customer.
values- customer
_service - low
_quality - missing
_features - other
- switched
_service - too
_complex - too
_expensive - unused
- collectionType: stringenum
_method New payment collection method.
send_invoiceis (coming soon).values- charge
_automatically - send
_invoice
- daysType: integer
_until _due min:1New number of days until invoice is due (for
send_invoicecollection method). - defaultType: string
_payment _method ID of the new default payment method.
- itemsType: array 1…20
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
- priceType: stringrequired
Price ID from your product catalog (ULID format).
- recurringType: objectrequired
Recurring billing configuration.
- currencyType: stringmin length:3max length:3
Three-letter ISO currency code (e.g.
usd). Optional — falls back to subscription.currency if not provided. - quantityType: integermin:1
Quantity of the subscription item.
- unitType: number | null
_amount min:0Unit amount override in cents. Falls back to the catalog price if omitted.
- metadataType: object
Updated metadata key-value pairs.
- propertyType: anything
Name
- onType: string
_behalf _of New connected account ID.
- trial
_end New trial end date (ISO 8601 datetime), or
"now"to end the trial immediately. When set to"now", the billing schedule is rebuilt and the first charge fires right away.- enumconst:now
End the trial immediately.
values- now
- trialType: object
_settings Controls what happens when a trial period ends.
- endType: object
_behavior Behavior when the trial ends.

