#alvin_63959
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.
- alvin_63959, 1 hour ago, 25 messages
Hello, can you show me the code for the API request that you are making?
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
Hi! I don't work for Stripe, but I can tell you that start_date is not an phase option. it's only an option on the subscriptionschedule itself ๐ see here: https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-start_date
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 you would need to remove it under phase and put it on the subscription schedule itself.
Yep, that should be it as far as I can see. Thanks for the assist Ben!
I see, so I should leave the end date for the first phase right?
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.
Because I want the first phase to end and start the second phase with monthly
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
so first phase should be iterations set to 1 then next phase is 2?
Yep, that sounds right