#rajveer_api

1 messages ¡ Page 1 of 1 (latest)

heavy crescentBOT
#

👋 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/1216629386225254451

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

tight tendonBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

vague ore
faint oak
#

okay wait i will send you my request Id and error both.

#

here is req id: 'req_Pjb1beINS4CMUJ'

error is:Error initiating withdrawal: StripeInvalidRequestError: No such external account: ' btok_1Ot2HQSD98LCdufVFOa8NYr8'

vague ore
#

Okie so the external account should be in the form ba_xxx

#

not btok_xxx

faint oak
#

no this is my bank account token see i will send my bank token create api code to you:
app.post('/create-bank-account-token', async (req, res) => {
try {
const bankAccountToken = await stripe.tokens.create({
bank_account: {
country: 'IN',
currency: 'INR',
account_holder_name: req.body.account_holder_name,
account_holder_type: req.body.account_holder_type,
routing_number: 'HDFC0000261',
account_number: '000123456789'
},
});
console.log(bankAccountToken);
console.log(bankAccountToken.id);

    res.json({ token: bankAccountToken.id });
} catch (err) {
    console.error('Error creating bank account token:', err);
    res.status(500).json({ error: 'Could not create bank account token' });
}

});

vague ore
#

I know that, but please check the link I sent

#

You need to create an External Account using that token

faint oak
#

sorry but i don't understand

#

i was see that site but i don't know what can i actually do?

vague ore
faint oak
#

yess

vague ore
#

Yeah just choose Node.js and copy the code, modify to use the token you just generated

faint oak
#

can you please create and give me the code?

vague ore
#

You can just choose in the page and take them

faint oak
#

listen i was create this api:
stripe.accounts.createExternalAccount(
'acct_1032D82eZvKYlo2C', // The ID of the Stripe account you're adding the external account to
{
external_account: {
object: 'bank_account',
country: 'IN',
currency: 'inr',
account_holder_name: 'Mansi Purohit',
account_holder_type: 'individual', // Or 'company' if it's a business account
account_number: 'HDFC0000261',
routing_number: '000123456789', // IFSC code for Indian accounts
},
},
function(err, bankAccount) {
// Handle the response or error
if (err) {
console.error(err);
} else {
console.log(bankAccount);
}
}
);

but in this the problem is account id so how can i get it?

vague ore
#

Wait, are you creating Bank Account to Payout on your own account?

#

In that case you only can setup in Dashboard