#Ketlark

1 messages · Page 1 of 1 (latest)

wind robinBOT
grim rampart
#

Hi there, this is just an example code, You can try passing a dict containing bank account information.

weak heart
#

Yes but i use the sdk in typescript, and the input type is a string

#

i can't put a dict with infos

frozen adder
#

Hey! Taking over for my colleague. Let me catch up.

#

When calling the API, you can send the dic, here's for example

external_account:{
    object: 'bank_account',
    country: 'FR',
    currency: 'EUR',
    account_number: 'FR1420041010050500013M02606'
  }
#

Do you mean like the sdk is blocking you from doing this?

weak heart
#

yes i cannot pass an object

#

this param is typed as string 😦

frozen adder
#

I see, you are using Typescript, and the property is strongly typed, for this case, you need to not use the SDK, try doing a call like normal API call

weak heart
#

maybe you can transfer this issue to api integration in order to handle a object type as input ?

frozen adder
#

if we do so, then the sdk will take either a String or an Object

weak heart
#

but atm i will use the raw API, thanks for your help

weak heart
frozen adder
#

Thanks for your feedback in the meanwhile!

weak heart
#

np dude, keep doing an amazing work