#idreamofai

1 messages ยท Page 1 of 1 (latest)

viral snowBOT
wet sphinx
karmic flare
#

oh yeah lol, ty for the reminder ๐Ÿ™‚

#

Do you know what type that returns? tries using Stripe.ApiList and Stripe.Account and neither are valid

wet sphinx
#

What do you mean?

#

Can you share your code?

karmic flare
#

/**

  • Lists Stripe accounts.
  • @param {Stripe.AccountCreateParams} params - Parameters for listing the account.
  • @returns {Promise<Stripe.ApiList>} A promise that resolves with the list of accounts.
    */
    async function listAccounts(params: Stripe.AccountListParams): Promise<Stripe.ApiList>{
    try {
    const accounts = await stripe.accounts.list(params);
    return accounts;
    } catch (error) {
    console.error("Error creating the account:", error);
    handleStripeError(error as Stripe.errors.StripeError);
    }
    }
#

but the return type is invalid

#

using typescript

wet sphinx
#

It'll be a list

#

Idk the name of the type though

karmic flare
#

ok ty

#

the express account doesnt show in the list. So its not connected. But it exists in my dashboard dropdown of accounts.

#

The problem may be that i named it the same as my standard account.

#

All I want to do is delete it. But i cant connect to it, cant delete from the express dashboard, and I cant find the account ID

wet sphinx
#

Ask our support team

#

Not sure how else to get your account id