#alvin_63959

1 messages ยท Page 1 of 1 (latest)

near hemlockBOT
#

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.

zenith minnow
#

Hello, can you show me the code for the API request that you are making?

brave trail
#

var phases = new List<SubscriptionSchedulePhaseOptions>
{
new SubscriptionSchedulePhaseOptions
{
Items = GetCurrentPhase(subscription),
StartDate = AccountSubscription.StartDate.DateTime,
EndDate = AccountSubscription.EndDate.DateTime,
ProrationBehavior = "none"
},
new SubscriptionSchedulePhaseOptions
{
Items = GetScheduledPhase(selectedSubscription),
ProrationBehavior = "none",
//StartDate = AccountSubscription.EndDate.DateTime,
Iterations = 1
},
};

I am passing datetime type

minor dagger
brave trail
#

so I should be removing it? is that it?

#

startDate under phase ha

minor dagger
#

yes you would need to remove it under phase and put it on the subscription schedule itself.

zenith minnow
#

Yep, that should be it as far as I can see. Thanks for the assist Ben!

brave trail
#

I see, so I should leave the end date for the first phase right?

minor dagger
#

it depends on what behavior you want, but yes if you want the phase to end, you can leave end_date there on the phase.

brave trail
#

Because I want the first phase to end and start the second phase with monthly

zenith minnow
#

If these are monthly prices, the easier way to do that would be to set iterations on the phase, that tells Stripe to change to the next phase after a certain number of cycles of the phase

#

So setting iterations: 1 would tell Stripe to go to the next phase exactly when the monthly cycle ends

#

Removes the room for error when calculating when the month should end

brave trail
#

so first phase should be iterations set to 1 then next phase is 2?

zenith minnow
#

Yep, that sounds right