#ben_api

1 messages ยท Page 1 of 1 (latest)

versed craterBOT
#

๐Ÿ‘‹ 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/1334148843217883206

๐Ÿ“ 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.

pallid bramble
#

๐Ÿ‘‹ happy to help

#

external_bank_accounts and accounts are 2 different entities

alpine sundial
#

Right, so the external_accounts object in the Account response will eventually be consistent, then. And not as soon as POST to external_account_bank_accounts API has returned?

pallid bramble
#

I'm not sure if there's a delay or not, but usually it shouldn't take long to populate this

alpine sundial
#

The reason I'm asking is because when one adds a new Connect account, it has account requirements. And one of the requirements is requirements.external_account.
Then I submit the external account through the POST to external_account_bank_account, and want to check if there are still requirements due.

Currently I do it by calling GET account, after the POST to external_account_bank_account responds. But if there is no consistency guarantee, I might need to add polling/retries or do this different somehow

pallid bramble
#

I think it should be fine, since object lock happens whenever we need to update multiple objects

alpine sundial
#

Thanks ๐Ÿ˜„ What is object lock? Does it mean the GET Account waits until the objects are updated before giving the response, or does it return the 'old' version?

pallid bramble
#

if the update process isn't finished yet and the account object is still locked the GET Account will fail

#

so you should be fine either way

#

if the GET succeeds normally you should get the list of external accounts

#

if not you should be able to retry the request with a different idempotency key

alpine sundial
#

I'm using the Node SDK and it seems these kinds of errors are auto-retried for it. So I should be good then I think

#

Thanks for the detailed response!

pallid bramble
#

sure let me know if you need any more help