#jcu1012-pending-updates
1 messages ยท Page 1 of 1 (latest)
Hey! Yep, deleted is not a supported parameter for pending updates: https://stripe.com/docs/billing/subscriptions/pending-updates-reference
But is it possible to understand why it's not possible to Delete items in such cases ? And what the difference between setting quantity to 0 and deleting them is ?
I'm not sure of the 'why' to be honest, it's just not possible. There may be a workaround however. Can you share the payload for your update call now
Does the API process subscriptions differently if they don't have a product specified vs. having a 0 quantity product as an item part of the subscription ?
Well you can't have a subscription without an iteam/product
My recommendation is to set quantity: 0 for the item you want to delete, and then following the successful 'pending update' you can then delete the item
As long as PaymentBehavior is set to Pending, how can I delete the item ?
You'd use this endpoint: https://stripe.com/docs/api/subscription_items/delete
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
The deletion limitation only applies to updates with pending_if_incomplete
Thank you so much for this ๐
Sure, np!