#bhaumik1665_api
1 messages ¡ Page 1 of 1 (latest)
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.
- bhaumik1665_api, 4 days ago, 14 messages
- bhaumik1665_api, 6 days ago, 67 messages
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1242379130876596274
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi @ancient pendant you can use subscription schedule to schedule the downgrade https://docs.stripe.com/billing/subscriptions/subscription-schedules/use-cases#downgrading-subscriptions
You can either create a subscription schedule and let it create a subscription, or create a schedule from an existing subscription. https://docs.stripe.com/api/subscription_schedules/create#create_subscription_schedule-from_subscription
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hello @feral storm, I have already tried with Subscription Schedule, but its creates a new subscription and not add updates to the existing subscription.
one screenshot shows "Update scheduled" (Done manually from stripe dashboard)
one screenshot shows "Starts 17 Jun" (Done via Schedule::create() API)
I want to create Schedule that shows behaves same as Manual operation from stripe dashboard.
SubscriptionSchedule::create() -> This is creating subscription for the future date.
https://docs.stripe.com/api/subscription_schedules/create#create_subscription_schedule-from_subscription
Have you checked this API that creates a schedule from an existing subscription?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yes, if I add from_subscription its not allowing me to add phases.
and if I add only phases then its creating future date subscription.
Hey! Taking over for my colleague. Let me catch up.
Have you tried to create a subscription schedule from an existing subscription
and then update the subscription to add a new phase ?
you mean that first I create subscription schedule with from_subscription of existing subscription ID.
and then I update that newly created subscription schedule to add phases to it?
yes
can I use a combination of two
- 1st (https://docs.stripe.com/billing/subscriptions/subscription-schedules/use-cases?lang=php#changing-subscriptions)
- 2nd (https://docs.stripe.com/billing/subscriptions/subscription-schedules/use-cases?lang=php#increasing-quantity)
and in 2nd instead of increase I can use decrease.
what are your thoughts?
from 1st I create a subscription and from 2nd I update it with 2 phases. (1st phase original subscription quantities 2nd phase reduced quantities)
trying.
I have one more question, when I use subscription::update for upgrades of quantities immediately.
when I use payment_behavior:default_incomplete and proration_behavior:always_invoice its creating invoice for prorated amount.
but the problem is that.
sometimes the invoice is incomplete and sometimes the invoice is complete. I dont understand why it happens.
it should stay fix (either incomplete or complete)
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
Could you please share IDs of both examples?
Yes, Invoice IDs of both cases, in_xxx
https://dashboard.stripe.com/test/invoices/in_1PIoVLHpCCuanh4qZURn25ln -> This has not generated payment intent (the payment was completed directly)
https://dashboard.stripe.com/test/invoices/in_1PIOZtHpCCuanh4qbC3HsXdX -> This has generated payment intent (incomplete first and then I used Stripe.confirmCardPayment() in frontend to complete that payment.)
The first one was paid automatically using the customer balance, so the amount due was 0. Therefore it didn't have the PaymentIntent and was marked as paid immediately.
can I make any configuration so that the update operation doesn't use customer balance and always create invoice + payment intent?
It allways applies automatically, unless you reset the customer balance.