#developer12345 - customer portal

1 messages · Page 1 of 1 (latest)

modest bough
#

Hello! Just starting a thread for you -- I'll review and respond as soon as I can 🙂

#

Can you share the request ID of that error?

#

Which documentation are you referring to?

#

I suspect that you need to make that call using the connected account context in the Stripe-header, but it depends on exactly what you're trying to do

wet oasis
modest bough
wet oasis
#

So a couple questions from there...the documentation has this: If you’re using the customer portal with Stripe Connect, make sure you configure the customer portal for the platform, not a connected account.

If I pass the connected account Id in a test, I get an error message saying it isn't configured at the connected account level. Additionally - if one were only given the customerId and nothing else - is there any way to do a lookup to figure out which connected account they are on?

#

RequestID for that 2nd test is: req_efyT9nTX8QYUSp

modest bough
#

No - how would you end up with such a customer id without context?

#

Did you try following the link in the error to set up your test mode settings?

wet oasis
#

No, I didn't go thru that process yet because the documentation says not to set it up at the connected account level.

For context - we are pulling the customerId out of an existing system and that is all that is currently stored so I don't necessarily have the stripe regional account unless we make changes in that external system for all new customers going forward. (All existing customers would have been created on the platform account).

timber vault
#

Hi 👋 I'm stepping in for @modest bough .
My esteemed colleague is correct, you will only be able to create a customer portal session using the account the customer belongs to. Additionally the error message for your second request appears to be saying the session needs some configuration. While you can configure the portal session in the Dashboard you can also create a portal session configuration using the API.
https://stripe.com/docs/api/customer_portal/configurations/create

wet oasis
#

fair - I will try the configurations - but does that mean the statement in the documentation is incorrect? is there a use case in which we shouldn't configure the portal at the connected account level?