SubscriptionUpdateRequest
Request body for updating an existing subscription. All fields are optional — only provided fields are changed.
- defaultType: string
_payment _method ID of the new default payment method.
- collectionType: "charge_automatically" or "send_invoice"enum
_method New payment collection method.
send_invoiceis (coming soon). - daysType: integer
_until _due min:1New number of days until invoice is due (for
send_invoicecollection method). - 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. - cancelType: string | nullFormat: date-time
_at New scheduled cancellation date (ISO 8601).
- 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.
- billingType: string | nullFormat: date-time
_cycle _anchor New billing cycle anchor date (ISO 8601).
- billingType: BillingCycleAnchorConfig
_cycle _anchor _config Properties: 5Advanced billing cycle configuration. Allows precise control over when billing cycles occur. All fields are optional integers with specific ranges.
- trialType: TrialSettings
_settings Properties: 1Controls what happens when a trial period ends.
- cancellationType: CancellationDetails
_details Properties: 2Details about why this subscription was cancelled.
- onType: string
_behalf _of New connected account ID.
- paymentType: "allow_incomplete" or "default_incomplete"enum
_behavior Controls when and how charges are collected after the update. Only
allow_incompleteanddefault_incompleteare accepted on update —error_if_incompleteandsend_invoiceare creation-only behaviors.-
allow_incomplete— without anchor: charge attempted inline immediately after the update; success →active; failure →past_due. Withbilling_cycle_anchor: charge deferred to the anchor date; success →active; failure →past_due. Up to 3 total charge attempts; exhaustion →canceled. -
default_incomplete— without anchor: charge attempted inline immediately after the update; success →active; failure →past_due. Withbilling_cycle_anchor: subscription staysincompleteuntil the anchor date; charge fires at the anchor date; success →active; failure →past_due. Up to 3 total charge attempts; exhaustion →incomplete_expired.
-
- itemsType: array 1…20
Replace all subscription items with this new set.
- metadataType: objectProperties: 1
Updated metadata key-value pairs.

