#L0rdandBooz
1 messages ยท Page 1 of 1 (latest)
what's a financial_address? i don't see any such parameter on the account object : https://stripe.com/docs/api/financial_connections/accounts/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
wrong api ๐
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)
Hi @wide wagon are you using this API (https://stripe.com/docs/api/financial_connections/accounts/retrieve) to retrieve a financial connection account?
no it is a treasury financial account
const financialAccount = await stripe.treasury.financialAccounts.retrieve(
'financial account',
{
stripeAccount: 'connect account',
}
);
OK, can you share me the full API response here?
{
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'
}
It looks like the response did include the full account ID fa_1MZR8ZPsp1htdbSGw3M83uUo'
no the account_number on the financial addresses spot. Sorry I could've been more clear about that
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.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
woah that is cool. Would you mind showing me how to implement that on my existing call?
const financialAccount = await stripe.treasury.financialAccounts.retrieve(
'financial account',
{
expand: ['aba.account_number']
stripeAccount: 'connect account',
}
);```
thank you so much jack you're always such a big help!