#idreamofai
1 messages ยท Page 1 of 1 (latest)
You can use this endpoint to find it https://stripe.com/docs/api/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.
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
/**
- 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
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