#Stealth-subscription
1 messages · Page 1 of 1 (latest)
Hi! Give me a few minutes to look into this.
When changing a subscription price, this creates a proration that will be added to the invoice of the next billing period of the subscription.
If you want the customer to be changed immediately, you need to set proration_behavior to always_invoice. You can learn more about this here: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment
thanks
Should I create a propration_behavior on schedule phaes or on scheduleupdateoptions?
Both have prorationbehavior property
{
ProrationBehavior = "PB1",
EndBehavior = "release",
Phases = new List<SubscriptionSchedulePhaseOptions>
{
new SubscriptionSchedulePhaseOptions
{
},
new SubscriptionSchedulePhaseOptions
{
ProrationBehavior = "PB2",
}
}
};```
Well, that depends. What are you trying to do?
I am trying to send invoice after all phases are complete. When last phase (second) is finished invoice should be created with prorated changes.
Then you'd pass the proration_behaviour parameter in that specific phase
What would happen if I passed it in ScehduleUpdateOptions?
What would be different from passing it in specific phase?
This is highlighted in the API ref:
https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior
https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-phases-proration_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I assume invoice would be created when schedule is released. Behavior would be the same as if I did that in last phase. Am I wrong?
The top-level parameter is only applied if the current phases is impacted
Are changes prorated at the beginning of the phase or in the end? StartDate vs EndDate?
Prorations would be created and applied as soon as the changes are made, so start_date
thanks