provider DELETE /v1/subscription_items/{item}
@utdk/stripe /v1/subscription_items/{item}
Delete a subscription item
<p>Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription.</p>
item path required
string

Try it

Authentication
Configure credentials for Stripe API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

deletesubscriptionitemsitem
DELETE/v1/subscription_items/{item}
<p>Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription.</p>

Parameters

required

Input

Delete all usage for the given subscription item. Allowed only when the current plan's `usage_type` is `metered`.

Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`.

Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.

If set, the proration will be calculated as though the subscription was updated at the given time. This can be used to apply the same proration that was previewed with the [upcoming invoice](/api/invoices/create_preview) endpoint.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import stripe from '@utdk/stripe';

await stripe.deletesubscriptionitemsitem()