#beneordio_api

1 messages · Page 1 of 1 (latest)

wheat saddleBOT
#

👋 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/1287695505580625940

📝 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.

abstract sequoia
#

hi! I'm not sure if they have a Dashboard page but you can access them in the API at least

distant mirage
#

I am no developer, how do i access the API to save down my config?

abstract sequoia
#

sorry this is a discord server for developer questions

distant mirage
#

well this is a developer question, isnt it

#

and i sure developed that config

abstract sequoia
#

it might be in the Dashboard too, I don't know

wheat saddleBOT
smoky kelp
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

distant mirage
#

yeah i still didnt manage to find where i need to save down the customer portal session configuration

smoky kelp
#

this is for a no-code solution

distant mirage
#

can i save my config here?
https://docs.stripe.com/api/customer_portal/configurations/retrieve?shell=true&api=true&resource=billing_portal configurations&action=create

thats the config btw:

$ stripe billing_portal configurations create
--business_profile[privacy_policy_url]="https://www.ordio.com/datenschutz"
--business_profile[terms_of_service_url]="https://www.ordio.com/agb"
--features[customer_update][allowed_updates][]=email
--features[customer_update][allowed_updates][]=tax_id
--features[customer_update][enabled]=true
--features[invoice_history][enabled]=true
--features[payment_method_update][enabled]=false
--features[subscription_cancel][enabled]=false
--features[subscription_pause][enabled]=false
--features[subscription_update][enabled]=true
--features[subscription_update][default_allowed_updates][]=price
--features[subscription_update][proration_behavior]=create_prorations
--features[subscription_update][products][prices][]=price_1MrNbRIBlWedxMGUCcyCGD6c

smoky kelp
#

this is already saved for your account

#

once you create it

#

but you can't access it via the dashboard

#

you need to save the generated configuration id somewhere and then retrieve it using the API

distant mirage
#

okay i understand, but i dont get why i cant enter this:

--features[subscription_update][products][prices][]=price_1MrNbRIBlWedxMGUCcyCGD6c

smoky kelp
#

do you mean when you retrieve?

#

oh I see there's an invalid request

#

would you mind sharing the request ID (req_xxx)

#

it's in the request_log_url

distant mirage
#

In this screenshot im trying to create a billing_portal_configuration

And i want to set one specific price_id that should be displayed in the session (https://docs.stripe.com/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_update-products-prices)

but i cant seem to add these child parameters here. How do i add them?

distant mirage
smoky kelp
#

please for next time just paste the request ID (e.g. req_ok2Mo2uUIZrQZV)

#

I think the problem is that products is an array of objects and you're using it as an object.
--features[subscription_update][products][][prices][]=price_1MrNbRIBlWedxMGUCcyCGD6c

distant mirage
#

The api doc says its an "array of strings" but cant it be just one id?

#

and how do i set it because i cant set it here?

smoky kelp
#

features.subscription_update.products array of objects

#

I added [] between [products] and [prices]

#

please use the snippet I sent you

distant mirage
#

Thanks! now i get this error: req_CiKnhxsDFPbIOs?t=1727083892

smoky kelp
#

both prices and product (ID) are required

#

you can't omit Required parameters

distant mirage
#

I understand, let me add it

#

I get an invalid array message now

req_KbLllUEeqSrRQb?t=1727084281

smoky kelp
#
--features[subscription_update][products][][product]=prod_LYOeMWxhnsAknR
--features[subscription_update][products][][prices][]=price_1MrNbRIBlWedxMGUCcyCGD6c
distant mirage
#

Thanks, i get this error now because i am missing another required parameter:
features[customer_update][allowed_updates]

req_3DVSjApVm6yjgl?t=1727084862

smoky kelp
#

no this parameter is an array of enums

#

meaning you need to pass what type of allowed updates you want the customer to be able to do

#

'price', 'promotion_code' and 'quantity' are the accepted values

distant mirage
#

okay i want promotion code only. let me try it