#sow - Connect Account Status
1 messages · Page 1 of 1 (latest)
Hello again! The values you see in the Dashboard do not have a 1:1 relationship with the values in the API; the API gives you more granular detail. There are various properties to check on an Account object depending on what you're trying to do. Can you give me more details?
Thanks 🙂 , Sure , we are looking for two scenarios, first scenario, whether the stripe account is ready to accept payments and payouts, for that we are looking for charges_enabled and payouts_enabouled boolean property of the account object. There is another scenario, where even though above mentioned properties are true, their account status will be "restricted" if they havent given correct SSN, so we need to track such scenarios and direct the user to the stripe to complete that process.
if we can find the logic what stripe dashboard is using to check completed vs restricted would be good to handle it
The detail you're looking for should be in the requirements hash on the Account object: https://stripe.com/docs/api/accounts/object#account_object-requirements
Got it, does the boolean details_submitted has any relation with it ? like I am looking for a just a single boolean variable if it is available in the object to track it
Or do I need to check the requirements object and look for it is null or empty to see the status Completed vs Restricted ? requirements.alternatives
requirements.currently_due
requirements.eventually_due
requirements.past_due
requirements.pending_verification
All I am looking for building the same completed vs restricted status check
There is no boolean for this kind of thing. Yeah, checking those values for content is probably what you want.
Note that our Dashboard behavior is not static, so I can't tell you "do X, Y, and Z to match the Dashboard" because while that might work today it might not work tomorrow.
Understood, I was trying what Stripe dashboard is doing as that will help us to notify our users to compelte the necessary tasks in Stripe.
So in stripe dashboard, if I have anything due in the requirements object will show as "required" status?
I recommend you not try to mimic the Stripe Dashboard's behavior. Instead you should look at the data on the Account object and display information/take action based on what you see there.
thanks for your help @sharp marsh