#Min.K
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.
Yes you don't have a schedule yet to pass in the Invoice Upcoming API, so you probably want to pass the exact subscription item you want to downgrade to preview
So how do we do that? Please be specific.
I used CURL as shown below, but it didn't give me the results I was looking for.
This is a case of downgrading after the end of the current subscription cycle, so it's not proration.
Therefore, I don't think I should pass subscription_proration_date.
curl -XGET https://api.stripe.com/v1/invoices/upcoming?subscription=sub_1OHgd3H7t32LLKQxlBUpO7vb
-u sk_test_51Ms43tH7t32LLKQxNdFEvz8ZB9GQ0AiPZ0k4rquUOAb06Yqk1f5RfM8I8ejUlskv2Fhok5TA1MwETZvbPqn6s7AB00aviEtDl9:
-d "subscription_items[0][id]"=si_P5sNDz3pxt3EiE
-d "subscription_items[0][deleted]"=true
-d "subscription_items[1][price]"=price_1OHie5H7t32LLKQxVKJNpia3
-d "subscription_items[1][quantity]"=1
-d "subscription_proration_date"=1729144800
How the result is different than what you are looking for? I am seeing you change subscription_item[1] to a new Price (the downgraded price?) but also delete the subscription_item[0]? Why don't you just change the subscription[0] to the new Price?
The amount to be charged immediately should be $0 because the downgrade should occur after the end of the current subscription cycle.
However, the amount of the product you want to change in the future is represented by the billing amount, 10 USD.
Can you list down in details
- What is the current Price (Id, amount)
- What is the downgrade Price (Id, amount)
- What is your request id to call Upcoming Invoice (request Id)
-
What is the current Price (Id, amount)
=> id : price_1OEjbaH7t32LLKQx1A1KkPCQ
=> amount : 100 USD -
What is the downgrade Price (Id, amount)
=> id : price_1OHie5H7t32LLKQxVKJNpia3
=> amount : 10 USD -
What is your request id to call Upcoming Invoice (request Id)
=> reuest id : req_1OCkmTzPkji13O
Request CURL
curl -XGET https://api.stripe.com/v1/invoices/upcoming?subscription=sub_1OHgd3H7t32LLKQxlBUpO7vb \
-u sk_test_51Ms43tH7t32LLKQxNdFEvz8ZB9GQ0AiPZ0k4rquUOAb06Yqk1f5RfM8I8ejUlskv2Fhok5TA1MwETZvbPqn6s7AB00aviEtDl9: \
-d "subscription_items[0][id]"=si_P5sNDz3pxt3EiE \
-d "subscription_items[0][deleted]"=true \
-d "subscription_items[1][price]"=price_1OHie5H7t32LLKQxVKJNpia3 \
-d "subscription_items[1][quantity]"=1 \
-d "subscription_proration_date"=1729144800
Okay!
Sorry, not understanding why the downgrade would result in a $0 payment?
Sorry, not understanding why the downgrade would result in a $0 payment?
This is because if you schedule a downgrade after the current cycle of the subscription ends, then the amount charged to the customer immediately is zero. (Enroll in a subscription schedule)
Why would the amount be $0 if you're downgrading to a $10 plan? We'd issue an invoice for $10
I'm talking about the amount charged immediately when i schedule a subscription.
There wouldn't be an initial invoice for creating a schedule for a subscription unless the phases dictated that