#hemal_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1301161858962821121
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
ba_1QCbPi08Mst8GkZ8Xg3Fww1p exists on a different account (acct_1Q7x7008Mst8GkZ8)
If this is a Connect scenario then maybe you meant to pass the Stripe-Account header in your request: https://docs.stripe.com/connect/authentication
I guess no, cause when I retrieve my stripe account, in external_account field I got two accounts and one of them is: ba_1QCbPi08Mst8GkZ8Xg3Fww1p
{
"id": "ba_1QCbPi08Mst8GkZ8Xg3Fww1p",
"object": "bank_account",
"account": "acct_1Q7x7008Mst8GkZ8",
"account_holder_name": "Jenny Rosen",
"account_holder_type": "individual",
"account_type": null,
"available_payout_methods": [
"standard",
"instant"
],
"bank_name": "STRIPE TEST BANK",
"country": "US",
"currency": "usd",
"default_for_currency": true,
"fingerprint": "yKFgSyYYGNZQe4ne",
"future_requirements": {
"currently_due": [],
"errors": [],
"past_due": [],
"pending_verification": []
},
"last4": "6789",
"metadata": {},
"requirements": {
"currently_due": [],
"errors": [],
"past_due": [],
"pending_verification": []
},
"routing_number": "110000000",
"status": "verified"
}
You can see the ID I reference right there on the account field
Your request used the API keys from acct_1Q7vGD021oVRUlBp
Two totally different accounts
As I said, if this is a Connect setup and acct_1Q7vGD021oVRUlBp is the platform, then you need to pass the Stripe-Account header
So why do I get this external_account in a different account?
How do I fetch the correct external accounts related to my stripe connect account?
I don't know. How did you retrieve it? Maybe you created it with the wrong API keys
You'd use this API: https://docs.stripe.com/api/external_account_bank_accounts/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Okay let me try
I see, so basically few days before I was working with the different stripe account and now working with another stripe account, that's why I got the error of "no such external accounts"
and I forgot to change the secret and publishable keys
Yup that tracks
now I will try with the correct account, thanks for your time buddy!!