#jahanzaib
1 messages · Page 1 of 1 (latest)
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_EANtDTPXNpHL08
its under Easefix Project
acct_1Lu9lQDI33TeiIno (this is the connected account id)
OK, so you are making a API call on behalf of a connected account, but the request is missing the Stripe-Account header
how to set header in api call ? do i have to pass another param ?
const payout = await stripe.payouts.create({
amount: parseInt(data.amount * 100),
currency: data.currency,
destination: data.destination
});
this is my object
do i have to add another key in this object
?
So your code should be something like
const payout = await stripe.payouts.create({
amount: parseInt(data.amount * 100),
currency: data.currency,
destination: data.destination
},{
stripeAccount: '{{CONNECTED_STRIPE_ACCOUNT_ID}}'
});```
just gimme a minute let me try that
can i also pass sourceTransaction in that ?? because its giving me insufficient balance error in test mode
sure, you can do that, make the to pass a resource ID that was created in the connected account.
const payout = await stripe.payouts.create({
amount: parseInt(data.amount * 100),
currency: data.currency,
destination: data.destination,
source_transaction : data.sourceTransaction
}, {
stripeAccount: data.connectedAccountId
});
is this fine ?? beacause in documention there was no source transaction param was defined
Ah, sorry there's no source_transaction for payout, source_transaction is a param for transfer
You can transfer some funds from platform to the connected account, and call the payout API again
ok, my case is when a user completes a certain job i want to transfer money to merchant's external bank account at that instance....before i was creating a transfer when job ends and stripe took 7 days to create a payout
so thats why i am creating a payout manually when the job ends...do i have to make transfer also ?
You described your problem clearly.
The first few payout usually take a longer time, and the payout speed also varies depending on the connected account's country. In addition, manual payout won't speed up the payout.
its based in UK
Or are you talking about instant payout? https://stripe.com/docs/payouts/instant-payouts
i just have to pass method in the object? that will do it ?
const payout = await stripe.payouts.create({
amount: parseInt(data.amount * 100),
currency: data.currency,
destination: data.destination,
method: 'instant'
}, {
stripeAccount: data.connectedAccountId
});
like this ?
Yes. Just note that instant payout is not available to new accounts.
if my bank account supports instant payout....so when i create a transfer to my connected account stripe will automaticaly create a instant payout for me or do i have to create a transfer and payout both manually ??
No, transfers and payouts are two different APIs, calling transfers API won't trigger payouts
yes they are two different apis....but before when i was just creating a transfer to connected account...and stripe used to automatically created a payout for that transfer in my bank account
That means you were on auto payout previously, in which Stripe would automatically creates payouts and send funds to external accounts
do i have to contact stripe to enable an instant payout for my account ?
can stripe support auto instant payout ?
https://dashboard.stripe.com/payouts/instant_payouts_eligibility you can visit this page to check whether your account is eligible for instant payout
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
What do you mean by auto instant payout?
that when i create a transfer stripe automatically create a instant payout for that transfer (not 7 days)
and i dont have to create a payout manually
That's not an instant payout, but instead opting in to an automated payout schedule: https://stripe.com/docs/connect/manage-payout-schedule
Is this for your account, or a connected account?
Judging by the API call you shared here, standard connected accounts?
yes
This is explained here: https://stripe.com/docs/connect/dashboard/managing-individual-accounts#updating-accounts
let userData = {
country: 'GB',
type: 'custom',
requested_capabilities: ['card_payments', 'transfers'],
business_type: 'individual',
email: req.spData.email,
individual: {
first_name: req.spData.firstName,
last_name: req.spData.lastName,
email: req.spData.email,
phone: req.spData.phonePreFix + req.spData.phoneNumber,
dob: {
day: dob.format('D'),
month: dob.format('M'),
year: dob.format('YYYY'),
},
address: {
line1: req.body.primaryAddress,
line2: req.body.primaryAddress,
city: req.body.city || '',
postal_code: req.body.postalCode || '',
state: req.body.state || '',
country: 'GB',
},
},
tos_acceptance: {
date: dateTime,
ip: clientIp
},
business_profile: {
mcc: '7392',
name: req.spData.firstName + ' ' + req.spData.lastName,
product_description: 'home services',
support_phone: '+18444463889',
url: 'easefix.com',
}
};
let newConnectedAccount = await createConnectedAccountOnStripe(userData, 3);
thats how i am creating a connected account
Ah, custom accounts. You'll need to update their payout schedule via the API: https://stripe.com/docs/api/accounts/update#update_account-settings-payouts-schedule
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Not sure if its possible via the Dashboard, you'd need to check the via the steps at the URL I shared earlier
payout_schedule: {
interval: ‘daily,
},
if i add this in the above object
my payout will be paid off in a day (not 7 days)
?
There'd be daily payouts generated yes
and will transfer money in my bank account in a day also ?
Payout speeds depends on the country: https://stripe.com/docs/payouts#payout-speed
my account is based in UK, so it means i can receive funds in max 3 days ?
Yes
If you're using a UK bank account, then you likely qualify for instant payouts if you need them faster
ok thanks for your help...Appreciate it!!