Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription.
Parameters
- idstringRequired
Unique identifier for the object.
- payment_
behaviorenum Controls how Stripe handles payment when a subscription update requires payment and
collection_.method=charge_ automatically Possible enum valuesallow_incomplete This is the default behavior since 2019-03-14. Transition the subscription to
status=past_if payment fails. If you have payment retries configured, Stripe automatically retries the payment. If the payment requires action, you receive andue invoice.webhook and must manage additional user actions. For example, SCA regulations might require 3DS authentication to complete payment. See the SCA Migration Guide for Billing to learn more.payment_ action_ required default_incomplete When payment is required, transition the subscription to
status=past_without attempting payment. You must request explicit confirmation of the Invoice’s PaymentIntent. The resulting Invoice has auto_advance=false, so Stripe doesn’t automatically attempt payment, retry payment, or finalize the subscription.due error_if_ incomplete If payment fails, return an HTTP
402status code and don’t update the subscription. This behavior doesn’t support payments that require user action, such as 3DS authentication, because it returns an error instead of creating a PaymentIntent withstatus=requires_. To handle payments that require action, useaction allow_orincomplete default_instead. This behavior was the default for API versions before 2019-03-14.incomplete pending_if_ incomplete If payment fails, Stripe creates a pending update, which applies only if the payment eventually succeeds. This behavior doesn’t support all attributes and payment methods. This option is the simplest way to ensure the customer completes payment before Stripe applies the update.
- proration_
behaviorenum Determines how to handle prorations when the billing cycle changes (e.g., when switching plans, resetting
billing_, or starting a trial), or if an item’scycle_ anchor=now quantitychanges. The default value iscreate_.prorations Possible enum valuesalways_invoice Always invoice immediately for prorations.
create_prorations Will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under certain conditions.
noneDisable creating prorations in this request.
More parameters
- clear_
usageboolean - proration_
datetimestamp
Returns
A subscription item object with a deleted flag upon success. Otherwise, this call raises an error, such as if the subscription item has already been deleted.
curl -X DELETE https://api.stripe.com/v1/subscription_items/{{SUBSCRIPTION_ITEM_ID}} \ -u "sk_test_...sk_test_...:" \ -H "Stripe-Version: 2026-10-28.endive"{ "id": "si_NcLYdDxLHxlFo7", "object": "subscription_item", "deleted": true}