#zohaob

1 messages · Page 1 of 1 (latest)

raven axleBOT
thin herald
#

?

brisk kestrel
#

Please respond in this thread

#

Error this : TypeError: Cannot read properties of undefined (reading 'financialAccounts')

#

quoting here fo context

#

Can you look at the docs I shared and let me know where you see a problem?

#

@thin herald

thin herald
#

yes

brisk kestrel
#

Can you share the API request ID when you are attempting to create a Financial Account?

thin herald
#

i am ubale to creating stripe financial account using same things

brisk kestrel
thin herald
#

const financialAccount = await stripe.treasury.financialAccounts.create(
{
supported_currencies: ['usd'],
features: {
card_issuing: {requested: true},
deposit_insurance: {requested: true},
financial_addresses: {aba: {requested: true}},
inbound_transfers: {ach: {requested: true}},
intra_stripe_flows: {requested: true},
outbound_payments: {ach: {requested: true}, us_domestic_wire: {requested: true}},
outbound_transfers: {ach: {requested: true}, us_domestic_wire: {requested: true}},
},
},
{stripeAccount: '{{CONNECTED_ACCOUNT_ID}}'}
);

#

m using same payload with stripe coonect account id

brisk kestrel
#

Okay. But could you share the request ID?

thin herald
#

how can i share request id where its appear?

brisk kestrel
thin herald
#

its not making any request its giving me error before precedding request

brisk kestrel
#

Okay so that is an issue with client library. What version of of Stripe are you using?

thin herald
#

"stripe": "^8.170.0",

brisk kestrel
#

And that's Node.Js, right?

thin herald
#

yes

brisk kestrel
#

That version is pretty old and likely does not include Financial Accounts. The current version is 10.13.0

thin herald
#

should i use this version now?

brisk kestrel
#

Well you should always be careful and test when upgrading any library but I think if you test out using the current version you should be able to create the Financial Account record.

thin herald
#

which one version 10 or 8

pearl blade