#chrisg_customer-portal-configuration-discussion

1 messages ¡ Page 1 of 1 (latest)

indigo nestBOT
#

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

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

coral wave
buoyant willow
#

i already read that. i am wondering about the right way to call the API.

#

if we do create new configuration objects every time we call the API, are there limits that we could run into?

coral wave
#

Why would you do that?

#

What are you trying to accomplish exactly?

buoyant willow
#

we want to have two separate configurations for the customer portal (one for consumer subscriptions and one for business subscriptions). the stripe dashboard UI does not allow us to create multiple configurations afaict so we need to create configurations via the API

#

so if i do that, do i only need to call the API twice to create the configuration objects and then reuse those IDs whenever i create a customer portal session for a user, or should i be creating a new configuration object every time i create a new customer portal session?

coral wave
#

Sounds like you should only need two configurations that you choose from, depending on whether it's consumer or business, ya?

buoyant willow
#

yup

#

just trying to make sure we're not doing anything crazy before we actually write this code

coral wave
#

If you think about it like 'one config per product lines', I think that maps; you have consumer and business product lines, so you need two configs.

indigo nestBOT
#

chrisg_customer-portal-configuration-discussion

fluid shard
#

Do we need to create the configurations with each API key for the various sandboxes/test mode/production? Or can we just use any API key to create the portal configuration and expect that configuration ID to be found across environments?

weary pine
#

Hi @fluid shard I'm taking over this thread

#

The API keys for sandboxes/test mode/production are different. So you'll want to use the respective API key to create configuration for each environement.