#Feetscha
1 messages · Page 1 of 1 (latest)
Can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
I think there's some kind of known, legacy issue here and I think the workaround is to set quantity: 0 on the item: https://stripe.com/docs/billing/subscriptions/pending-updates-reference
ah okay I'll try that, sec
thanks that seems to work but I still have another issue with upgradiing. let me test for a second to explain my problem
the customer cus_NWvSQNOSXw987h just made a subscription to my basic plan and then upgraded to have a second subscription item as well. afterwards I wanted to upgrade the the subscription again and remove the new subscription item again. in my case I need to refund the customer because of proration I guess, but I rather let him use the feature for the remaining period.
Sorry, not understanding the issue
in my case I need to refund the customer because of proration I guess, but I rather let him use the feature for the remaining period.
Sounds like you want to schedule the update?
yes I want to schedule the update in case the user removes an item of the subscription but not when he adds a new one, because then I want him to use the feature right away. But when I schedule my subscription when a user cancels an item I would need to let him know that he successfully canceled the item right away even though it didn't happen yet. is there a way to do that?
Sounds like you probably need a Schedule in that case: https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#downgrading-subscriptions
I think so too, but I feel like I have troubles implementing that because removing and adding items to the subscription is both a subscription update where the client sends the priceIds he wants to update. So he could both add a new subscription and remove another one where I want to schedule the removed item when the period ends and add the other one immediately
*so he could both add and remove a subscription item at the same time, where I want to schedule the removed item when the period ends and add the other one immediately
Well you can't update a Subscription directly if its controlled by a Schedule. So maybe you just need to go all in on the Schedule
Otherwise there's not really anyway to do a downgrade/upgrade update at a specific interval without a Schedule. Other than scheduling that update yourself, via a queue/cron or similar
but how do I let a client know that he canceled the subscription when it actually didnt happen yet? is there a way to handle that via stripe ?
because I want to let him know he canceled the subscription item and can use its item for the remaining time, but when I just schedule that I dont really understand how to implement that other than having my own logic for that
Not sure what you'd want us to handle? You'd just use the start_date/end_date from the related phase on the Schedule to communicate when the upgrade/downgrade will happen
i.e. you create a new phase that downgrades to price_xyz, and then use start_date (https://stripe.com/docs/api/subscription_schedules/object#subscription_schedule_object-phases-start_date) to confirm to user that its schedule to happen on X
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
okay got it, thank you.
Is there a webhook that listens for when I schedule a subscription update? (not when the update actually happens)
Yeah, there's subscription_schedule.* events
okay found them. thanks a lot and sorry for the rather confusing questions.
np! hope that helped