#yurtdweller_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/1420138717863219221
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- yurtdweller_api, 6 days ago, 51 messages
๐ taking a look at the req
thanks
the bpc object does seem to reflect the updates, but i'm not seeing that in the response, let me see if that is expected.
ok
looks like the product details are only returned if expanded
https://docs.stripe.com/api/customer_portal/configurations/object#portal_configuration_object-features-subscription_update-products
ok, if I am using update, what do I need to pass along to it for the response to expand it?
const configuration = await stripe.billingPortal.configurations.update(
PORTAL_CONFIGURATION_ID[environment],
FEATURE_PARAMS
);
expand: ['features.subscription_update.products']
https://docs.stripe.com/expand
ok seems like I need to use retrieve then?
I believe it should work with update. Our examples just use retreive. I haven't had a chance to test it yet, juggling a few threads
ok, I got it to work with retrieve so maybe i'll just use that
Do you know what options I have for using configuration update for subscriptions_update and trial_update_behavior?
or is that not changable?
You can update the products, the proration behavior and the specify if the changes should only be made at period end.
hmm ok i'm having trouble setting the condition
subscription_update: {
enabled: true,
default_allowed_updates: ['price', 'promotion_code'],
products: PRODUCT_CONFIGURATIONS[environment],
proration_behavior: 'none',
schedule_at_period_end: {
conditions: [],
},
is it supposed to be a string?
if I use shortening_interval will that preserve the trial?
I'm using the nodesdk and typescript
It does not like the condition defined this way:
subscription_update: {
enabled: true,
default_allowed_updates: ['price', 'promotion_code'],
products: PRODUCT_CONFIGURATIONS[environment],
proration_behavior: 'none',
schedule_at_period_end: {
conditions: ['shortening_interval'],
},
},
ok I figured it out:
schedule_at_period_end: {
conditions: [
{
type: 'price_increase'
}
],
},
Hi there,
I took over for my colleague who had to step away. Do I understand that you were able to get yourself unblocked with the last code example? Just want to make sure you have everything you need.
i think so thank you
Ok great.