#rajveer_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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.
- rajveer_api, 2 days ago, 26 messages
Could you elaborate? Which API you called and what is its ID? req_xxx from https://dashboard.stripe.com/test/logs
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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'
Okie so the external account should be in the form ba_xxx
not btok_xxx
You want to create one first, using this API https://docs.stripe.com/api/external_account_bank_accounts/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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' });
}
});
I know that, but please check the link I sent
You need to create an External Account using that token
sorry but i don't understand
i was see that site but i don't know what can i actually do?
Do you see the example code here?
yess
Yeah just choose Node.js and copy the code, modify to use the token you just generated
can you please create and give me the code?
You can just choose in the page and take them
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?