#micklove_api

1 messages ยท Page 1 of 1 (latest)

dull eagleBOT
#

๐Ÿ‘‹ 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/1296038461538570247

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

ionic root
#

๐Ÿ‘‹ happy to help

#

and use these

urban island
#

Hi Tarzan, thanks for the assistance, I did read the https://docs.stripe.com/api/external_account_bank_accounts/create?lang=cli#account_create_bank_account-external_account-account_number document, and i have used the Stripe cli previously.... however, in the external_accounts create, the cli parameter --external-account takes takes a string... as a dictionary and is required... (i tried settting each -d parameter (as per the example you provided), however, i got an error saying the --external-id parameter was required

ionic root
#

would you mind sharing the request ID?

urban island
#

The problem, with that particular command I ran, was that the format of the dictionary was invalid, so it never sent... 2 secs, I will try it again, and give you the command I used

ionic root
#

stripe external_accounts create acct_xyz
-d "external_account[country]"=US
-d "external_account[currency]"=usd
-d "external_account[account_holder_name]"="Jenny Rosen"
-d "external_account[account_holder_type]"=individual
-d "external_account[routing_number]"=110000000
-d "external_account[account_number]"=000123456789

#

can you try this please?

urban island
#

ah, ok... I was doing this...

stripe external_accounts create
--api-key dummy_key
--stripe-account acct1234
--external-account
-d "external_account[account_number]=1234"
-d "external_account[country]=NZ"
-d "external_account[currency]=NZD"
-d "external_account[object]=bank_account"
-d "external_account[account_holder_name]=Russell T Crowethorne"
-d "external_account[account_holder_type]=company"
-d "external_account[routing_number]="

I think the --external-account field is extraneous

#

I tried with your example.... now I get a proper response (even thought it's an error), about the format of the NZ routing and bank account number in my example... that's good, thank you for that (I got further than I had before)

#

stripe external_accounts create acct_someaccount
-d "external_account[account_number]=1234"
-d "external_account[country]=NZ"
-d "external_account[currency]=NZD"
-d "external_account[object]=bank_account"
-d "external_account[account_holder_name]=Russell T Crowethorne"
-d "external_account[account_holder_type]=company"
-d "external_account[routing_number]="
--api-key dummy_key

#

So, now I just need to know what the format of the NZ routing and bank account numbers is, and i'll be done ๐Ÿ™‚

ionic root
#

what I gave you is an example

dull eagleBOT
ionic root
#

you need to adapt it to your own case

urban island
#

Yeah, I did (i used my own keys and the connected account id, I was able to make the request, now i'm just trying to work out what the format of the bank account number and routing id are)

Thanks for that, glad I can use the stripe cli to check the values now

polar frigate
#

it doesn't having a routing_number, you pass the full number to account_number, same as an IBAN

urban island
#

Thanks for the link, very helpful, will definitely go through that

Yeah, i had tried using the full account_number previously..., with no luck (req req_aQncp1pnJK4SOh)

stripe external_accounts create  acct_xxxxx\
  -d "external_account[account_number]=1100000000000010" \
  -d "external_account[country]=NZ" \
  -d "external_account[currency]=NZD" \
  -d "external_account[object]=bank_account" \
  -d "external_account[account_holder_name]=Russell T Crowethorne" \
  -d "external_account[account_holder_type]=company" \
  -d "external_account[routing_number]=" \
--api-key blah
{
  "error": {
    "message": "You have provided a hash of routing number and account number for a NZ bank account, but it looks like the routing number is formatted incorrectly.",
    "request_log_url": "https://dashboard.stripe.com/xxxx - req_aQncp1pnJK4SOh",
    "type": "invalid_request_error"
  }
}
polar frigate
#

you shouldn't have -d "external_account[routing_number]=" \ at all I would say, should be omitted

urban island
#

good point, will try without it

#

haha, well spotted, that got it ๐Ÿ™‚

#

Thank you @polar frigate , you have made me very happy (and @ionic root too) ๐Ÿ™