#Min.K

1 messages · Page 1 of 1 (latest)

wicked mesaBOT
#

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.

  • Min.K, 18 minutes ago, 4 messages
  • Min.K, 3 hours ago, 3 messages
  • Min.K, 1 day ago, 13 messages
  • Min.K, 1 day ago, 5 messages
  • Min.K, 1 day ago, 11 messages
  • Min.K, 1 day ago, 10 messages
    and 5 more
analog bluff
#

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

pulsar marsh
#

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

analog bluff
#

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?

pulsar marsh
#

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.

wicked mesaBOT
analog bluff
#

Can you list down in details

  1. What is the current Price (Id, amount)
  2. What is the downgrade Price (Id, amount)
  3. What is your request id to call Upcoming Invoice (request Id)
pulsar marsh
#
  1. What is the current Price (Id, amount)
    => id : price_1OEjbaH7t32LLKQx1A1KkPCQ
    => amount : 100 USD

  2. What is the downgrade Price (Id, amount)
    => id : price_1OHie5H7t32LLKQxVKJNpia3
    => amount : 10 USD

  3. 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
thin warren
#

Hi! I'm taking over this thread.

#

Give me a few minutes to catchup.

pulsar marsh
#

Okay!

heavy salmon
pulsar marsh
#
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)

heavy salmon
#

Why would the amount be $0 if you're downgrading to a $10 plan? We'd issue an invoice for $10

pulsar marsh
#

I'm talking about the amount charged immediately when i schedule a subscription.

heavy salmon
#

There wouldn't be an initial invoice for creating a schedule for a subscription unless the phases dictated that