#theodore_api
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/1341833052900294706
📝 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.
- theodore_best-practices, 5 days ago, 14 messages
Hi đź‘‹
The error message is pretty explicit but let me see if I can help. Can you share an API request ID for this error? 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
Hey so I can't seem to find it. I set the date to Feb 18 and it shows no results.
It says a combination of individuals and companies can use the Person api.
But I get that error when attempting to use the Person api with individual
Hi, taking over as my teammate needs to step away. We document how you can find the request here here: https://support.stripe.com/questions/finding-the-id-for-an-api-request
I'm sorry but I can't see the request id. I set the date to yesterday but I get no results. I made the api calls yesterday in test mode. I'm using a test secret key. Could it be that I'm using try catch in my code? I'm capturing the error with try catch, I just can't see it in the logs.
I'm seeing requests from February 3. I made requests yesterday. If I change th date to yesterday I get "no results".
From the limited context you provided, it sounds like you're trying to add a person on an account type individual. Can you walk me through what you're exactly trying to accomplish?
I'm trying to onboard individuals with the Person Api. I can show you the screenshot again of the docs. They say I can use the Person api to onboard individuals. Maybe the docs are inaccurate.
Right, so what are the exact steps you're taking? What are you relly trying to do? What integartion documentation are you following?
app.get('/stripe/onboard', async (req, res) => {
try {
const account = await stripe.accounts.create({
country: 'CA',
business_type: 'individual',
business_profile: {
mcc: 1711,
product_description: 'products',
url: 'www.example.com'
},
capabilities: {
card_payments: {
requested: true
},
transfers: {
requested: true
}
},
controller: {
fees: {
payer: 'application',
},
losses: {
payments: 'application',
},
stripe_dashboard: {
type: 'express',
},
}
})
await stripe.accounts.createPerson(
account.id,
{
first_name: 'Jenny',
last_name: 'Rosen',
dob: {
day: 19,
month: 9,
year: 1980,
},
address: {
line1: '60 Oneway Way',
postal_code: 't2g 1b3',
city: 'Calgary',
state: 'AB'
},
email: 'jenny.rosen@example.com',
phone: '403 800 9899',
}
);
const accountLink = await stripe.accountLinks.create({
account: account.id,
refresh_url: 'https://www.example.com',
return_url: 'https://www.example.com',
type: 'account_onboarding',
});
res.json({ 'account_link': accountLink.url });
} catch (e) {
res.json({ 'err_code': e.code, 'err_msg': e.message })
}
res.end();
});
This is my expressjs endpoint. I'm trying to onboard individuals with the Node api.
I get this error: {"err_msg":"Adding additional persons is not supported for accounts with business type individual."}
What integration documentation are you following?
During the verification process, information about the persons associated with an account needs to be collected. If you onboard:
Only companies, use the Persons API to collect this information.
Only individuals, you can use the Persons API or the individual hash on the Account object.
A combination of individuals and companies, use the Persons API to collect this information. This way you collect information in the same manner regardless of business type.
I'm trying to do the third option, combination of individuals and companies.
Can you share the account creation request ID with me?
If you look at this document, https://docs.stripe.com/connect/required-verification-information it states:
If you’re onboarding Express or Standard accounts, you don’t need to collect information because Stripe does it for you through the Stripe-provided UIs. However, you can review the type of information that’s collected from your users on this page.
I suspect that we're aleady collecting the details, and hence when you make the request using the Persons API, you get that error.
I'm collecting account information in my app then prefilling with the api.
here's my request id: req_qm0WS5TgpwiRpB
Taking a look
👍
Yeah, that account is an 'individual'. You can create an AccountLink to collect the required information: https://docs.stripe.com/api/account_links/create#create_account_link-type
Can you try that?
Yes I can create an account link. I'm collecting account info in my app and sending it to Stripe via the Api. I guess it's simply not possible to use the Person Api as the docs suggest.
Thanks for looking into this.
That is beacuse you're using Express, and that information is collected for you: https://docs.stripe.com/connect/required-verification-information: 'If you’re onboarding Express or Standard accounts, you don’t need to collect information because Stripe does it for you through the Stripe-provided UIs. However, you can review the type of information that’s collected from your users on this page.'.