#roaring_connect-company

1 messages ¡ Page 1 of 1 (latest)

serene harnessBOT
#

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

void berry
#

'''
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

worthy pawn
#

Do you have an example request ID for the update request?

void berry
#

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

worthy pawn
#

What type of connected accounts are you creating? Custom connected accounts?

void berry
#

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

worthy pawn
void berry
#

And then once they fully onboard, Ill just see them on my dashboard right? Since to initiate a payout, I need their stripe id

worthy pawn
#

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.

void berry
#

So I need to make sure I provide the link right?

worthy pawn
#

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

burnt plume
worthy pawn
void berry
#

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?

worthy pawn
#

Are you asking about creating custom connected accounts through the dashboard?

void berry
#

Yes

#

Just to forgo talking to the API and offload that to stripe to colllect the individual or company data for me

#

?

#

@worthy pawn

worthy pawn
#

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

serene harnessBOT
glass grail
#

roaring_connect-company