#roaring_connect-company
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/1384261897108455425
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
'''
const testUpdates = {
business_type: 'company',
business_profile: {
product_description: OUR_STRIPE_PROD_DESC,
mcc: OUR_STRIPE_MCC,
},
company: {
name: 'mk',
tax_id: '332537847',
phone: '5408509923',
address: {
line1: '61 Presidential Way',
city: 'Palm Coast',
state: 'FL',
postal_code: '32164',
country: 'US',
},
owners_provided: true,
owners: [
{
first_name: 'Max',
last_name: 'Knivets',
email: 'knivets.m@gmail.com',
},
],
},
representative: {
first_name: 'Max',
last_name: 'Knivets',
email: 'knivets.m@gmail.com',
phone: '5408509932',
address: {
line1: '62 Presidential Way',
city: 'Palm Coast',
state: 'FL',
postal_code: '32164',
country: 'US',
},
dob: {
day: 15,
month: 8,
year: 2002,
},
ssn_last_4: '9911',
relationship: {
title: 'Owner',
},
},
external_account: {
object: 'bank_account',
country: 'US',
currency: 'usd',
account_holder_name: 'Max Knivets',
account_holder_type: 'company',
routing_number:
process.env.NEXT_PUBLIC_IS_LIVE == 'true' ? '026009593' : '110000000',
account_number:
process.env.NEXT_PUBLIC_IS_LIVE == 'true'
? '483108230014'
: '000123456789',
},
tos_acceptance: {
date: Math.floor(Date.now() / 1000),
ip: '',
},
};
'''
This is what the payload looks like
I think its with how the payload is structured.
@serene harness
Do you have an example request ID for the update request?
A request id? I have the error
Stripe Error: {
type: 'StripeInvalidRequestError',
message: 'Received unknown parameter: representative',
code: 'parameter_unknown',
param: 'representative',
statusCode: 400
}
Or as a matter of fact.
Is there a way that instead of me onboarding them, they can just make a stripe connect account and I would still see their account details?
Tired of fucking around with this API
What type of connected accounts are you creating? Custom connected accounts?
I guess custom where my platform onboards them
But I thought Stripe had a page that could handle that for you and then I could do payouts to them from my account
We do have a Stripe hosted onboarding flow for custom accounts
https://docs.stripe.com/connect/custom/hosted-onboarding
And then once they fully onboard, Ill just see them on my dashboard right? Since to initiate a payout, I need their stripe id
You will see the information the connected account provides through the onboardling flow. However, the account will be created through the platform and the platform will provide the onboarding link to the owner of the connected account.
So I need to make sure I provide the link right?
Regarding your error message, that is actually expected behavior. In your API call you are passsing in the parameter called representative which is not a valid parameter for the update an account API
https://docs.stripe.com/api/accounts/update
Though you can create people separately and designate them as representatives via the API if you already have the info on hand https://docs.stripe.com/api/accounts/object#account_object-company-owners_provided
When you follow the guide, you create the account through the API and in a second step create an account link, which the owner of the connected account has to use to get to the onboarding portal.
Theres not a button on the dashboard like the create button I can use
Bc here I am seeing I can create the connect account and then hit the button to request information
And wouldnt that replace the whole process?
Are you asking about creating custom connected accounts through the dashboard?
Yes
Just to forgo talking to the API and offload that to stripe to colllect the individual or company data for me
?
@worthy pawn
Yes, you can create the connected account through the dashboard. There is +create button on the connected account view https://dashboard.stripe.com/test/connect/accounts
Choose the connected account type and go through the steps to create the account. When the account is created, you can click onRequest Information button that will show the link for the onboarding of the connected account
roaring_connect-company