#nadia_0
1 messages ยท Page 1 of 1 (latest)
Hello nadia_0, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
โข nadia_0, 2 days ago, 16 messages
Hi there ๐ just making sure we're on the same page, it looks like the most recent request to update that Subscription was made form the dashboard rather than from your code, is that correct?
hi @bold geyser yes i made the request on the dashboard this time (faster)
We focus more on helping with our API and SDKs in this forum, but that request looks like it was made without proration_behavior being set to none:
https://dashboard.stripe.com/logs/req_K31wM9wv4BYzqs
so the system used default behavior for that field which is to create prorations:
https://stripe.com/docs/api/subscriptions/update#update_subscription-proration_behavior
I'm trying to think through whether there is a good way to "undo" that.
thanks a lot for your help ๐
I see. So the update created a new Invoice, which had a negative amount because it was just prorations That Invoice was automatically "paid" since it was negative, so the amount was credited to the customer's credit balance.
You should be able to use the steps shown here to make a change to the customer's credit balance, and offset the change made by that update:
https://stripe.com/docs/billing/customer/balance#modifying
but I would strongly recommend you test the process in testmode first to ensure it does what you're hoping.
Any time!
i've tried it but it added money to the customer :
-u KEY: \
-d amount=-530 \
-d currency=eur```
๐ญ
Negative amounts are treated as credits, positive amounts debit the balance.
ahh thanks
i'll do it the other way
thanks
problem solved thanks a lot for your help & patience
have a nice weekend
Glad to hear! Thank you, hope you have a great weekend as well.