#prodigiousGhost

1 messages · Page 1 of 1 (latest)

amber laurelBOT
noble wadi
#

Can you share which default object are you referring here?

forest citrus
#

{
                    "id": "ba_1N45JyPdJ1lM6NRqLxYiiXjD",
                    "object": "bank_account",
                    "account": "acct_1N3rzXPdJ1lM6NRq",
                    "account_holder_name": null,
                    "account_holder_type": null,
                    "account_type": null,
                    "available_payout_methods": [
                        "standard"
                    ],
                    "bank_name": "STRIPE TEST BANK",
                    "country": "GB",
                    "currency": "eur",
                    "default_for_currency": true,
                    "fingerprint": "dlZ3uXJpqD5CqAaj",
                    "future_requirements": {
                        "currently_due": [],
                        "errors": [],
                        "past_due": [],
                        "pending_verification": []
                    },
                    "last4": "5432",
                    "metadata": {},
                    "requirements": {
                        "currently_due": [],
                        "errors": [],
                        "past_due": [],
                        "pending_verification": []
                    },
                    "routing_number": "110000000",
                    "status": "new"
                },

#

Is it safe for me to send back parts of this object to my app via JSON?

#

"default_for_currency": true --> I'm sorry lol, just realised that the other object i have is also set to true, but has a different currency attached to it

noble wadi
#

What data you have difficulty with when you tried to find it?

#

Is it safe for me to send back parts of this object to my app via JSON?
Yes per response you shared

forest citrus
#

Ok, that's good

#

can a user be paid out via a card ?

#

if a user was to have both a card and a bank account attached, how can i get the default?

#

[
                {
                    "id": "ba_1N45JyPdJ1lM6NRqLxYiiXjD",
                    "object": "bank_account",
                    "account": "acct_1N3rzXPdJ1lM6NRq",
                    "account_holder_name": null,
                    "account_holder_type": null,
                    "account_type": null,
                    "available_payout_methods": [
                        "standard"
                    ],
                    "bank_name": "STRIPE TEST BANK",
                    "country": "GB",
                    "currency": "eur",
                    "default_for_currency": true,
                    "last4": "5432",
                    "routing_number": "110000000",
                    "status": "new"
                },
                {
                    "id": "ba_1N3s0APdJ1lM6NRqu4haZmWz",
                    "object": "bank_account",
                    "account": "acct_1N3rzXPdJ1lM6NRq",
                    "account_holder_name": null,
                    "account_holder_type": null,
                    "account_type": null,
                    "available_payout_methods": [
                        "standard"
                    ],
                    "bank_name": "STRIPE TEST BANK",
                    "country": "GB",
                    "currency": "gbp",
                    "default_for_currency": true,
                    "last4": "2345",
                    "routing_number": "10-88-00",
                    "status": "new"
                }
            ],

#

this is an array of 2 bank account objects, as you can see they have different currencies set, therefore both are set to true as default

#

Looking on the stripe dashboard, i can see that Stripe has pre-selected a default account already. I am only interested in that default account

#

So with this API response how can i determine the same default account stripe dashboard has selected

noble wadi
forest citrus
#

Ok I see

#

what about the issue with automatic defaults?

noble wadi
#

default_for_currency is the default currency of each specified currency, but not default settlement currency. The screenshot is you shared is the external bank account of the default settlement currency.

One way I can think of is to

  1. Get the default_currency on the account: https://stripe.com/docs/api/accounts/object#account_object-default_currency
  2. Find the bank account with default_for_currency for the default_currency in Step 1
forest citrus
#

Alreight

#

Alright*

#

I will try this, thank you