#yurtdweller_api

1 messages ยท Page 1 of 1 (latest)

elder cargoBOT
#

๐Ÿ‘‹ 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.

quasi roost
#

๐Ÿ‘‹ taking a look at the req

arctic pagoda
#

thanks

quasi roost
#

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.

arctic pagoda
#

ok

quasi roost
arctic pagoda
#

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
    );
quasi roost
arctic pagoda
#

ok seems like I need to use retrieve then?

quasi roost
#

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

arctic pagoda
#

ok, I got it to work with retrieve so maybe i'll just use that

elder cargoBOT
arctic pagoda
#

Do you know what options I have for using configuration update for subscriptions_update and trial_update_behavior?

#

or is that not changable?

quasi roost
#

You can update the products, the proration behavior and the specify if the changes should only be made at period end.

arctic pagoda
#

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' 
      }
    ],
  },

chilly maple
#

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.

arctic pagoda
#

i think so thank you

chilly maple
#

Ok great.