#masud-connect-portalconfiguration
1 messages ยท Page 1 of 1 (latest)
HI ๐
Can you share the API request ID that gave you the error message you shared? It will start with req_
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_ikZzMxCZ2eY7Dd
this is the request id, but one thing to note is that this happening on the Connect accounts log. and not under our platform account log.
require 'stripe'
Stripe.api_key = @organization.stripe_account.access_token
I'm using the Connect accounts access_token and not ours. Which is probably why the log is on the connect account. So makes me wonder if we used OUR platform accounts info, will it go through since we enabled the session portal.
It looks to me like the request is occurring on the Connect Account and they don't have a billing portal session configuration.
So the CA needs a portal configuration that you can pass in when creating the session
https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-configuration
So the only way for the portal link to work is if i tell the connect account to go enable it?
If you can create billing portal sessions on their behalf, you should be able to create portal configurations too
https://stripe.com/docs/api/customer_portal/configurations/create
If you can how do we know if we can? They're a connect account on our platform, so i'm guessing that means yes since we have their access token.
You are using an OAuth access token that allows you to create objects on their account so I would think so. But you sholud be able to test this pretty quickly yourself
sweet, thank you !
Happy to shed what ๐ก I can ๐