#alvin-subscriptionschedule-invoice

1 messages · Page 1 of 1 (latest)

meager gullBOT
#

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.

swift wharf
#

@brittle crystal what do you need help with?

trail flint
#

Hi, so I have scheduled subscription to downgrade

#

I have 2 phases, one is current and one is future

swift wharf
#

Hello! Please try to ask a clear question all in one end to end message. Not short sentences with a few words.

trail flint
#

okay sorry, here it goes, based on the screenshot it has a scheduled downgrade but why was the next invoice still the current subscription and not the new subscription?

swift wharf
#

Sorry that's still really vague. You shared no code, no exact response, nothing easy to help you debug

trail flint
#

wait ah,

#

I have two phases for downgrade subsription
one is the current, second is the new subscription downgrade. So when I created it, it will still invoice the current subscription
and not the new one. Question is how to like the next invoice should be the downgraded subscription

From 202.40 to 53.90

swift wharf
#

I'm really sorry. Those are picture with almost no info and I don't follow how you are framing/wording your question unfortunately. What does

Question is how to like the next invoice should be the downgraded subscription
mean? What's not working?

trail flint
#

Why is the subscription still be charged for Standard Plan and not the Essential Plan based on the picture

I newly created the subscription so I paid for Standard then I scheduled a downgrade right away which leads me to this

swift wharf
#

I'm really sorry I just don't understand you. What does

Why is the subscription still be charged for Standard Plan and not the Essential Plan based on the picture
mean? Why wouldn't they be charged for the Standard Plan? It's only December 11 today

trail flint
#

so if its December 11 today and I scheduled a downgrade subscription schedule would I still be charged for Dec 12 to Dec 13 for the current subscription?

Phase 1 end date to be December 12
Phase 2 starts = end_date of the phase 1

Dec 12 to Dec 13 is still charged for the current one

swift wharf
#

What does "is still charged" mean? Nothing has happened yet? I'm sorry I really don't follow I just don't get it

#

alvin-subscriptionschedule-invoice

trail flint
#

and this one
cus_PAYLDR0fiYkDYB

swift wharf
#

Please try test clocks that I shared. You seem lost and I have no idea what the question is after all this back and forth. You can use Test Clocks to simulate time in Test mode and then look at the exact Invoice(s) created over time to answer your question

swift wharf
#

@trail flint if you have a question please ask it here not in the main channel

trail flint
#

About this one
Subscription Schedule again

Says there Dec 12 - 13 Standard Plan and Dec 13 to Forever is Essential Plan but the upcoming invoice is set to Dec 13 - 14 for Standard Plan
any reason?

sub_1OMDEdGFC7Ks3wO6Km5nGIxh

swift wharf
#

but the upcoming invoice is set to Dec 13 - 14 for Standard Plan
I'm so sorry you keep saying the same thing with no details. What does that mean? Are you writing real code for it? Are you clicking somewhere?

#

Is it just a Dashboard question?

trail flint
#

It is about Subscription Schedule Downgrade
Scenario is Customer is downgrading a subscription now customer wants to cancel the downgrade subscription so I opted to use the Subscription Schedule downgrade based on this use cases https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases

Now, I followed https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#downgrading-subscriptions this use case

Eg.
Current Subscription: Standard Plan
Selected Downgrade Subscription Plan: Essential Plan

Use case example
var options = new SubscriptionScheduleCreateOptions
{
Customer = "{{CUSTOMER_ID}}",
StartDate = SubscriptionScheduleStartDate.Now,
EndBehavior = "release",
Phases = new List<SubscriptionSchedulePhaseOptions>
{
new SubscriptionSchedulePhaseOptions
{
Items = new List<SubscriptionSchedulePhaseItemOptions>
{
new SubscriptionSchedulePhaseItemOptions
{
Price = "STANDRD PLAN",
Quantity = 1,
},
},
StartDate = StartDate,
EndDate = EndDATE
},
new SubscriptionSchedulePhaseOptions
{
Items = new List<SubscriptionSchedulePhaseItemOptions>
{
new SubscriptionSchedulePhaseItemOptions
{
Price = "Essential Plan",
Quantity = 1,
},
},
StartDate = EndDate of Phase 1
Iterations = 1,
},
},
};
var service = new SubscriptionScheduleService();
service.Create(options);

The result of this would be Dec 12 - Dec 13 is still STANDARD PLAN

Dec 13 - Forever is the ESSENTIAL PLAN

Question is
Why is it still invoicing for the STANDARD PLAN and not the ESSENTIAL PLAN right away

This is a daily plan

does this all make sense?

swift wharf
#

It's the same info again. You are completely avoiding my question unfortunately.

Why is it still invoicing for the STANDARD PLAN and not the ESSENTIAL PLAN right away
what does this mean? Are you, the developer, calling the Upcoming Invoice API https://stripe.com/docs/api/invoices/upcoming and getting something you don't expect? Or something else?

trail flint
#

The next invoice is still the STANDARD PLAN
and not the ESSENTIAL PLAN. Can you please look at the customer id I am referring to?

swift wharf
#

Why aren't you answering my question though

#

Are you talking about the Dashboard or are you a developerwriting only code? You still have no answered this at all

#

Also looking at your start/end date your math seems wrong. They are off by one hour which might be the root cause of your problem, though I still don't follow you sadly

trail flint
#

I am a developer

swift wharf
#

that's not my question 😦

trail flint
#

Developer writing a code

swift wharf
#

damn I'm not sure what to do, it's been an hour of back and forth and we don't seem to understand each other at all

#

Also looking at your start/end date your math seems wrong. They are off by one hour which might be the root cause of your problem
I assume this is your error

#

^ does that make sense @trail flint ?