#beneordio_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/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.
- bene_paymentlink-customer, 6 days ago, 16 messages
- beneordio_api, 6 days ago, 6 messages
hi! I'm not sure if they have a Dashboard page but you can access them in the API at least
I am no developer, how do i access the API to save down my config?
sorry this is a discord server for developer questions
you can use https://docs.stripe.com/api/customer_portal/configurations/retrieve to access a configuration you created
it might be in the Dashboard too, I don't know
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
yeah i still didnt manage to find where i need to save down the customer portal session configuration
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
this is for a no-code solution
whereas this https://docs.stripe.com/customer-management/integrate-customer-portal explains how to create customer portal configurations using the API
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Datenschutzhinweis
Allgemeine Geschäftsbedingungen
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
okay i understand, but i dont get why i cant enter this:
--features[subscription_update][products][prices][]=price_1MrNbRIBlWedxMGUCcyCGD6c
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
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?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
req_ok2Mo2uUIZrQZV?t=1727083169
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
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?
features.subscription_update.products array of objects
I added [] between [products] and [prices]
please use the snippet I sent you
Thanks! now i get this error: req_CiKnhxsDFPbIOs?t=1727083892
I understand, let me add it
I get an invalid array message now
req_KbLllUEeqSrRQb?t=1727084281
--features[subscription_update][products][][product]=prod_LYOeMWxhnsAknR
--features[subscription_update][products][][prices][]=price_1MrNbRIBlWedxMGUCcyCGD6c
Thanks, i get this error now because i am missing another required parameter:
features[customer_update][allowed_updates]
req_3DVSjApVm6yjgl?t=1727084862
Do i need to name the price_id here again in order to make sure the cusotmer can update to it?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
okay i want promotion code only. let me try it