#__rxor__
1 messages · Page 1 of 1 (latest)
Hello! 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.
Sorry @sly wren for my next post with same problem but I cant manage it
Im trying to change customer subscription amount.
the amount may be custom not specified by price_id
I would need more details. Are you upgrading/downgrading? Do you want to change it immediately, or in the next cycle? etc.
depends of customer choice He can upgrade or downgrade his subscription because he decides what amount pay to us. I want to change it for next and future cycles currect cycle must stay the same
Then you should add proration_behavior: "none" to your update call: https://stripe.com/docs/api/subscriptions/update#update_subscription-proration_behavior
What's wrong exactly?
sec i will paste code
and result
In [28]: stripe.Subscription.modify('sub_1OVCiSJZ9pJk48QC1B5un04g', items=[{"id": "si_PJqPwnhJMKzijM", "price_data": {"tax_behavior": "unspecified", "unit_amount": 1300 * 100, "currency": "pln", "product": e.id, "recurring": {"interval": "day, "interval_count": 30}}}], proration_behavior=None)
for this call subscription amount for next invoice shloud be set for 1300 pln right?
but it set for 2102 pln
That might have been from your older prorations.
Okay So what I need to do just to reach my given value without any extra amount?
You could try removing the other Invoice Items for that Customer:
- List all for Customer: https://stripe.com/docs/api/invoiceitems/list#list_invoiceitems-customer
- Delete one by one: https://stripe.com/docs/api/invoiceitems/delete
Okay thanks I will try
Happy to help.