#L0rdandBooz

1 messages ยท Page 1 of 1 (latest)

serene lynxBOT
azure barn
wide wagon
#

wrong api ๐Ÿ™‚

distant swan
#

sometimes ctrl+c in edge don't want to copy immediately which sometimes makes me upset because some people complained to Microsoft about it before lol.

#

(So it's possible they thought it copied the correct url only for it to actually not copy it)

wide wagon
#

ok thats good to know thank you!

#

@azure barn are you still looking into this? ๐Ÿ˜ƒ

oblique plover
wide wagon
#

no it is a treasury financial account

#

const financialAccount = await stripe.treasury.financialAccounts.retrieve(
'financial account',
{
stripeAccount: 'connect account',
}
);

oblique plover
#

OK, can you share me the full API response here?

wide wagon
#

{
id: 'fa_1MZR8ZPsp1htdbSGw3M83uUo',
object: 'treasury.financial_account',
active_features: [
'inbound_transfers.ach',
'card_issuing',
'outbound_payments.ach',
'outbound_payments.us_domestic_wire',
'financial_addresses.aba',
'deposit_insurance',
'intra_stripe_flows',
'outbound_transfers.ach',
'outbound_transfers.us_domestic_wire'
],
balance: {
cash: { usd: 290124 },
inbound_pending: { usd: 0 },
outbound_pending: { usd: 1930 }
},
country: 'US',
created: 1675914571,
financial_addresses: [ { aba: [Object], supported_networks: [Array], type: 'aba' } ],
livemode: true,
metadata: {},
pending_features: [],
platform_restrictions: { inbound_flows: 'unrestricted', outbound_flows: 'unrestricted' },
restricted_features: [],
status: 'open',
status_details: { closed: null },
supported_currencies: [ 'usd' ]
}

This is the financial addresses thing expanded
{
aba: {
account_holder_name: 'Devote',
account_number_last4: '2609',
bank_name: 'Evolve Bank and Trust',
routing_number: '084106768'
},
supported_networks: [ 'ach', 'us_domestic_wire' ],
type: 'aba'
}

oblique plover
#

It looks like the response did include the full account ID fa_1MZR8ZPsp1htdbSGw3M83uUo'

wide wagon
#

no the account_number on the financial addresses spot. Sorry I could've been more clear about that

oblique plover
#

Got it.

#

OK, So I believe you want to retrieve the account_number (https://stripe.com/docs/api/treasury/financial_accounts/object?lang=java#financial_account_object-financial_addresses-aba-account_number).

This field is not included by default. To include it in the response, expand the account_number field.

wide wagon
#

woah that is cool. Would you mind showing me how to implement that on my existing call?

oblique plover
#
const financialAccount = await stripe.treasury.financialAccounts.retrieve(
      'financial account',
        {
            expand: ['aba.account_number']
            stripeAccount: 'connect account',
        }
  );```
wide wagon
#

thank you so much jack you're always such a big help!

oblique plover
#
      'financial account',
        {
          expand: ['aba.account_number']
        },
        {
            stripeAccount: 'connect account',
        }
  );```
#

Correction, the code should look like above