#artem.d
1 messages · Page 1 of 1 (latest)
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.
Thanks
Hey! Taking over for my colleague. Let me catch up.
For both responses, you are having the right account_holder acct_1M6a0LReai8ZHv3o
Yes, but in the second case, there is added bank accounts.
The acocunts represents the accounts that were collected as part of this Session:
https://stripe.com/docs/api/financial_connections/sessions/object#financial_connections_session_object-accounts
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?
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
You need to collect the Financial Connections account:
https://stripe.com/docs/financial-connections/other-data-powered-products?platform=web#collect-an-account
Thanks, I'll try it.
But wait
It's a client-side method.
I need to receive an account on server only.
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