#vancouver_trader - portal configuration
1 messages · Page 1 of 1 (latest)
Can you send me the ID of the customer portal that you saw this behavior with?
And are you using a specific portal configuration or the default one for the account?
this was my request body - {
"cancel_at": "1652328000",
"metadata": {
"action": "end_date_updated"
},
"proration_behavior": "none"
}
its sandbox account
customer — cus_JtVL4BrbRc1jdy
plan — plan_JtVLv0t9Jg0DhR
subscription — sub_JtVLOj2SB9T3HU
Do you have the ID of the session that that call created?
call ?
how do I find that ?
POST /v1/subscriptions/sub_JtVLOj2SB9T3HU
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
req_vbtpvQO5oduJVb
see that flag..Prorate changes - it is still turned on
Ah I see, so proration behavior is a thing that needs to be specified each time you perform an action on the Subscription
Setting the proration behavior to none on the create call will mean that the creation is not prorated, but it does not set the behavior generally for future updates and whatnot
Right, changing the subscription in the dashboard is a separate update so you will choose whether to prorate the changes or not with the "prorate changes" option in the upper right of that page
i am confused
does the flag proration_behavior work or not ? Why it did not work with my request ?
proration_behavior flag is exactly the same option available on right side of the page right ?
We can not rely on that manual page setting. There are hundreds of customer..so multiplied effort
It does work, but it only works one call/change at a time
Unfortunately there is not a way to set it so that proration will automatically be off on the Dashboard page
How can I do it while customer creates subscription..and make sure it doesnt turn on if customer updates subcription ?
I understood that there is no generic option to turn off completely but it can be turned off on subscription level, right ?
And when I pass proration_behavior flag with none, is it not expected to be reflected on stripe portal UI (right side corner, I shared screenshot earlier)
Unfortunately not, this is not a subscription level setting and I don't think there is a way to set a default for the dashboard.
what it is for than ?
what is this proration_behavior flag suppose to do & how can I verify it is set to none so prorate charges wont be applied
In the creation request you are specifying whether you want to prorate the initial payment period. So if you create the subscription midway through the subscription cycle you are determining whether you charge for the full month or half month
And then for subsequent updates you are specifying the same thing each time but that only applies to that specific update
so I set flag to none when I created subscription will make sure that prorate charges wont apply for first month. Then after 1 1/5 month I update suscription with flag to none, will make sure there wont be prorate charge for second month if I cancel subscription. correct..so this way I can pass on flag each time and make sure no prorate charges.
and last question - req_vbtpvQO5oduJVb why didnt show that UI badge disabled for prorate changes ? How do I make sure that stripe understood my request to not prorate charge?
Hello! Taking over and catching up...
The proration_behavior property on Subscription creation and update requests only applies to that individual request. There is no persistent or "sticky" proration behavior that applies to the Subscription over time. If you look at the Subscription object itself you can see there is no proration_behavior property: https://stripe.com/docs/api/subscriptions/object