#stellarloony-items
1 messages · Page 1 of 1 (latest)
well usually you don't delete the current one, you pass the ID of the current one during an update call but change the price so that it switches to the new one https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#changing (note how it it passes id:subscription.items.data[0].id)
if you do want to delete it, you can do an update call like that but pass deleted:true inside the item hash https://stripe.com/docs/api/subscriptions/update#update_subscription-items-deleted
also https://github.com/stripe/stripe-ruby/issues/673#issuecomment-517874017 helps explain this as well, if that's useful
this is the error i recieve when updating >>>>>> When payment_behavior is
set to pending_if_incomplete, you can only pass supported params. items[2][deleted] is not supported.
yeah unfortunately pending updates are very limited