#Pete100
1 messages · Page 1 of 1 (latest)
To remove an item on the subscription, you could set deleted of the item to true: https://stripe.com/docs/api/subscriptions/update#update_subscription-items-deleted
To add an item, you'd just append new item to items list: https://stripe.com/docs/api/subscriptions/update#update_subscription-items
You can do it in one single request for removing and adding items in Subscription Update API
I tried. Not sure why it didn't work:
That would be awesome!
Could you try following parameters in postman?
- items[0][id]
- items[0][deleted]
ahh must be. sorry. let me try now
Worked like a charm. I've tested before in postman. I must have forgotten everything over the holidays 🤦♂️ Many thanks. Really appreciate it
No problem!
With upgrading the subscription in this doc: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade
You could update the item to its new price ID directly which will also have proration as well.
In any case, both ways (updating item directly or removing and adding new item) will work.
Ah I saw that. Fair enough
Sorry 1 more question if that's okay. Does it trigger customer.subscription.updated ? I don't seem to see it in the webhooks
nm, it's disabled