#ade
1 messages · Page 1 of 1 (latest)
I don't think there is a property for before the form has been submitted. Can you tell me a bit more about what you are trying to do here?
I want to know when I should resend an account link to the user or mark the user as onboarded on my side
The details_submitted attribute on the account will tell you whether they have submitted their initial onboarding details. For account links it is a bit trickier, we have an expires_at property on them so if it is after that time you can serve a new link. Though also account links are single use so if you are directly redirecting your users to them you should just generate a new link every time as the old URL will just bring them to the URL you specified for the link's refresh_url
okay that makes sense
I listened for webhooks in test mode and the details_submitted for the account I was testing for was never true ,
but payouts_enabled was true when the account completd the details
Interesting do you have an account ID that that happened for? (acct_123)?
Hi there 👋 taking over, as my colleague needs to step away
Feel free to @ me when you get that account ID
Is the issue here that you are expecting payouts_enabled = false in this scenario?
Also, do you have an Event ID for the webhook you are referring to in the below quote?
I listened for webhooks in test mode and the details_submitted for the account I was testing for was never true ,
"evt_1MhJT2FoTnzjJYgPeA5FUV0j"
"evt_1MhJIMCB9tvy58uMLjMgn9Rk",
"evt_1MhJGCCB9tvy58uMrFSlUOZl",
"evt_1MhJG6CB9tvy58uM5ZeUkb0S",
"evt_1MhJG4CB9tvy58uM6JCyaH8u",
and "evt_1MhJFjCB9tvy58uMz15dyzDd",
are the events I got for the account
Okay, which one were you looking at when you said "I listened for webhooks in test mode and the details_submitted for the account I was testing for was never true ,"
It's not true for all of them? Or for one specifically?
Is the issue here that you are expecting payouts_enabled = false in this scenario?
I was expecting
details_submitted= true in at least one of them
I believe that will only be true once all details are submitted and approved, but this account still has unfulfilled requirements. You'll need to look at the requirements hash on the Account object to discern what to ask for before details_submitted becomes true