Yodlee get_accounts 有时 returns 零结果/空响应

Yodlee get_accounts sometimes returns zero result / empty response

场景如下:

  1. 用户成功登录银行(通过Fastlink)
  2. 用户登录后,我立即获得用户的 provider_accounts(通过 /providerAccounts API)
  3. 然后当我打电话获取帐户时,(通过 /accounts)我有时会收到空响应(找到零个帐户?)

当我稍后尝试(几秒或几分钟后)时,我得到了一些帐户信息。

这是因为 Yodlee 在我拨打 /accounts api 电话时仍在尝试收集帐户信息吗?

这是因为帐户仍在 added/linked。

使用FastLink回调提供的requestIdproviderAccountId,您需要不断轮询以了解帐户链接过程的刷新状态,并且一次大功告成,可以调用get accounts了

在“Add/Update Account Process Status”部分阅读有关刷新状态的更多信息。

Yodlee 现在使用 webhook 使事情变得更容易。在这里阅读更多: Using Webhooks with the Yodlee Core API

TL/DR:您需要等待 add/link 完成后才能检索帐户。