#artem.d

1 messages · Page 1 of 1 (latest)

worldly sonnetBOT
drifting geode
#

Hi there! Pasting the rest of your message in this thread:

A bit later I tried to create a session with the same account id (acct_1M6a0LReai8ZHv3o) in the same way as I did above, and here is the result:
{
id: 'fcsess_1M6aGRDFAnJw4ZCMUHUfCMS1',
object: 'financial_connections.session',
account_holder: { account: 'acct_1M6a0LReai8ZHv3o', type: 'account' },
accounts: {
object: 'list',
data: [],
has_more: false,
total_count: 0,
url: '/v1/financial_connections/accounts'
},
client_secret: 'fcsess_client_secret_3xfmQmJoMi8qsR0cQ1g8XXJ3',
filters: { countries: [ 'US' ] },
livemode: false,
permissions: [ 'ownership', 'payment_method', 'transactions' ]
}

The accounts.data array is empty, while after linking my bank account I could see it exists. Could you please tell me, what am I doing wrong? How can I fix it? I also found that if I use existing session id, everything works correctly.
Thanks.

robust flame
#

Thanks

thorn fox
#

Hey! Taking over for my colleague. Let me catch up.

#

For both responses, you are having the right account_holder acct_1M6a0LReai8ZHv3o

robust flame
#

Yes, but in the second case, there is added bank accounts.

thorn fox
robust flame
#

OK, I linked account on client side. Then (later) I need to pull transactions (on server, without linking account on client). There will be two different sessions. How can I do it?

thorn fox
#

The first financial connection fcsess_1M6a4ODFAnJw4ZCMNuRKE6ue is in a completed status, that's why you see the related accounts to it. However, the second one fcsess_1M6aGRDFAnJw4ZCMUHUfCMS1 is still in initialized state, once completed you'll get the related accounts to it in the array you are mentioning

robust flame
#

How can I complete it?

#

I can't find it in docs.

thorn fox
robust flame
#

Thanks, I'll try it.

#

But wait

#

It's a client-side method.

#

I need to receive an account on server only.

thorn fox
#

AFAIK, you can't. You need to get your customer on your frontend in order to allow them to connect their accounts. You can't do this on their behalf on backend side

robust flame
#

So, I can not do it using something cron job... that's weird.

#

OK, thanks for making me know.