刷新帐户时discoverAndAddAccounts或getLoginAccounts

时间:2013-12-11 10:00:39

标签: java intuit-partner-platform customer-account-data-api

我在下面的示例中使用了相同的AggCatService。我正在使用Java SDK。

  1. 第一次用户在我的应用程序中添加新机构时,我调用discoverAndAddAccounts将凭据添加到intuit服务器。我是否还需要为每个帐户执行getLoginAccounts来刷新帐户,或者getAccountTransactions是否足够?

  2. 稍后,当我想从添加的帐户中获取最新信息时,我是否应该再次调用discoverAndAddAccounts,还是应该为每个帐户执行getLoginAccounts和getAccountTransactions?

  3. 如果我在刷新时再次调用discoverAndAddAccounts,我是否会将重复的凭据信息添加到Intuit服务器,或者Intuit是否知道已添加凭据?

  4. 感谢您的帮助。

1 个答案:

答案 0 :(得分:1)

1 |要获取刷新信息,应在DiscoverAndAddAccounts API调用后立即调用UpdateInstituitionLogin并将刷新标志设置为true。

参考 - https://developer.intuit.com/docs/0020_customeraccountdata/customer_account_data_api/0020_api_documentation/0075_updateinstitutionlogin#Update_Institution_Login

2 |获取刷新信息后,您可以直接调用GetAccount,getAccountTransactions API。

https://developer.intuit.com/docs/0020_customeraccountdata/customer_account_data_api/0020_api_documentation/0035_getaccount

3 |理想情况下,它应该添加增量。如果没有,那么您可以通过将现有accountId与API响应相同来以编程方式执行此操作。 我没有对任何真正的FI进行测试。我使用CC_Bank但它总是返回一个静态的帐户列表。   - https://developer.intuit.com/docs/0020_customeraccountdata/customer_account_data_api/testing_calls_to_the_api

我可以确认行为并更新这篇文章。

由于