#rian_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1359989993870856543
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello, thanks for the info, I think the portal can create schedules but may not be able to updating a pre-existing schedule. when you try this with a subscription without a schedule do you get this error as well?
it just immediately downgraded rather than at the end of billing period, evt_id: evt_1RCQJhFqArqfkwbMuCNbEdiM
customer: cus_NPekGzuMzZo6vr
or it mightve been this event actually: evt_1RCR0OFqArqfkwbM4I6P07iD
after i saved the downgrade settings
Hi there - I'll be taking over for my colleague Pompey
You can't update Subscriptions in the Customer Portal that have an existing Schedule, as Pompey suggested - thats among the limitations of the portal that we document here: https://docs.stripe.com/customer-management#customer-portal-limitations
but then how do i downgrade at the end of billing cycle?
if i remove the subscription schedule
from the portal?
yes, through the portal session with the customer portal api
this is my billing configuration
{
"id": "bpc_1QwXO8FqArqfkwbMD3pNaujd",
"object": "billing_portal.configuration",
"active": true,
"application": null,
"business_profile": {
"headline": "Premium Super Remove Addons",
"privacy_policy_url": null,
"terms_of_service_url": null
},
"created": 1740525488,
"default_return_url": null,
"features": {
"customer_update": {
"allowed_updates": [
"address",
"shipping",
"phone",
"email"
],
"enabled": true
},
"invoice_history": {
"enabled": true
},
"payment_method_update": {
"enabled": true
},
"subscription_cancel": {
"cancellation_reason": {
"enabled": false,
"options": [
"too_expensive",
"missing_features",
"switched_service",
"unused",
"other"
]
},
"enabled": true,
"mode": "at_period_end",
"proration_behavior": "none"
},
"subscription_pause": {
"enabled": false
},
"subscription_update": {
"default_allowed_updates": [
"price"
],
"enabled": true,
"proration_behavior": "none",
"schedule_at_period_end": {
"conditions": []
}
}
},
"is_default": false,
"livemode": true,
"login_page": {
"enabled": false,
"url": null
},
"metadata": {},
"updated": 1740525488
}
It seems like you need to add decreasing_item_amount to schedule_at_period_end.conditions: https://docs.stripe.com/api/customer_portal/configurations/update#update_portal_configuration-features-subscription_update-schedule_at_period_end-conditions-type
However, we describe what I think is the functionality that parameter controls as a preview feature here: https://docs.stripe.com/customer-management/configure-portal
Looking further
yeah my settings right now look like this, since we want to prorate immediately on upgrade but wait until end of billing cycle on downgrade, i will try to update my billing portal configuration to include the decreasing item amount
this worked! thank you so much!