#nintendoengineer
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ when you're working with Custom accounts, you'll want to use fields like requirements to know whether there are still outstanding onboarding requirements that must be completed.
https://stripe.com/docs/api/accounts/object#account_object-requirements
If an account is disabled due to a missing requirement, that will be flagged in requirements.disabled_reason.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hi, thanks for taking this up for me. So I am not having issues with the requirements, necessarily. It's more so that there is supposed to be a status property, but when I drill into the object in TypeScript, this property does not exist. I need to read this property to know if I can flag my user as verified
The field you mentioned, company.verification.document.status, isn't referenced in our API spec either:
https://stripe.com/docs/api/accounts/object#account_object-company-verification-document
Can you point me to where you're seeing a reference to that field?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
True, I don't see it in your API spec either. The confusing bit is here, in your docs: https://stripe.com/docs/connect/handling-api-verification#company-information
And then specifically this part in the image
It links to the Account object in your API reference, but then the status is indeed not there, as you mentioned as well
Weird, those fields are inside of verification for the individual hash in our reference.
Yeah we also noticed. Supposedly it's on company as well. Do you think it's a documentation issue or an implementation issue?
My suspicion is a documentation miss that may have cascaded into other places, but I'm going to ask a teammate to take another look.
Taking another look at the structure of individual, do you see company.verification.status (instead .document.status) in the typescript definitions?
Unfortunately also not present:
What are the type definitions for the Company.Verification object type?
Sorry yeah I see I printed the wrong screen. here are Verification and Verificcation.Document, since document is the only property on Verification
Did you by chance notice this while going through this flow with an Account? If so, could you share that ID?
I have not, sorry to say. I was first implementing the entire flow, part of which includes listening to your account.updated event. In my handler I wanted to read this status value. Since I couldn't, I didn't want to test an incomplete KYC flow as of yet
Makes sense, was just wondering if there were any relevant objects my teammate and I could look at.
There should be some test accounts I've created, would those suffice? They have not yet been updated. Or wait, there might be one with updated data. Is a test account also fine?
Yeah, test accounts are fine.
I will fetch the id from DDB, one sec
So it's not one that has had an account update yet, so there are requirements due. The account id is acct_1OHDTBGhJeaig9xD
If you need an account that has actually fulfilled all requirements, let me know, then I will have to provide the data through our platform
Haha nice profile pic, btw ๐คฃ is that how it feels working tech support?
Hahaha, some days, but I mostly did it because I enjoy when people get a kick out of it
Hahaha it definitely sets the right mood
We think this is an issue that our teams need to address, and that may take some time. I think it would be better if we move our discussion to a support case for this.
Could you please fill out the form here, and when you are selecting the topic choose "API Integration":
https://support.stripe.com/contact/email
Please also check the "I am a developer" checkbox that appears, and mention Toby in your description. If you let me know once you have I'll go find the case and take it.
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
I have a baby here that needs to sleep. I'll do this right after and notify you. Just don't know how long that will take. This one here is unpredictable.
In the meantime, do you know if there is another way of checking company status verification? If this is something we will also take up in the case, then let's leave it for that ๐
I don't think there is a way to directly check it, but you can infer it from requirements hash. If the verification failed, then it should be mentioned in requirements.errors. If they are still in progress, then you'll see related entries in requirements.pending_verification.
Perfect, that helps me out in the meantime. Thanks for your help so far, Toby. I will notify you once I've made the case ๐