#Mahesh K

1 messages · Page 1 of 1 (latest)

fluid hamletBOT
main dew
steel birch
#

req_A1H48OA9gy2cSx

#

what i am doing is,

#

i am trying to create an invoice in an account

#

and gave the transfer destination as the same account id.

#

is it possible or is there another way to do that.

main dew
#

cus_Ng1cxkJBb7uWcp belongs to acct_1MtmZ0Qwx0sqePgh whereas you're trying to access from the API key of acct_1MlDrrJFyf0NJAEU. You should use the API key of acct_1MtmZ0Qwx0sqePgh instead

steel birch
#

sorry it has solved

#

i think i have sent you the wrong request id.

#

wait a sec...

#

req_O8uIyv3KiaiM8S

#

this is the request id, that i am getting the above error

#

river are you there??

main dew
#

Thanks for waiting! Discord is busy now

#

Looking into req_O8uIyv3KiaiM8S now

steel birch
#

and provide me a solution for the above error

main dew
#

You use Stripe-Account header in the request which means that request is directly made on the connected account instead of platform

#

Can you share what you're trying to do?

steel birch
#

i am trying to create an invoice in the connect accounts.

#

instead in the main account

#

and i gave the transfer destination to the same account.

#

is it possible to do like that?

#

did you got my point?

main dew
#

What do you want to create to create the invoice on the connected account and transfer the fund to itself?

steel birch
#

yes

#

river, are you there??

main dew
#

Yup! I'm here. Discord is shared public channel, so it can get busy

steel birch
#

then how to transfer the charges amount to my platform?

main dew
steel birch
#

could you share the charges that will cut for my connected accounts.

#

on a successful collecting amount and transfer to their bank account

main dew
#

application_fee_amount is the amount that will be received by the platform. The remaining amount after deducting the application_fee_amount is the amount that the connected account will received.

steel birch
#

ok river.

#

Then, no need to carry out the payout soon after the direct charges, right?

#

here in my scenario.

main dew
#

Payout is from the connected account's balance to its bank account. Payout speed depends on the connected account's payout schedule. You can use the default payout schedule unless there's other requirements

steel birch
#

is it required to do payout using payout api , our the stripe attomatically sends the amount to connected bank accounts.

main dew
steel birch
#

req_dSzW5lEjutapC0

#

can you check with this request.

#

await stripe.invoiceItems.create(
{
customer: stripe_customer_details.id,
invoice: stripe_invoice_details.id,
price_data: {
currency: 'USD',
unit_amount: items.si_price * 100,
tax_behavior: 'exclusive',
product: stripe_product_details.id,
},
quantity: items.si_qty,
stripeAccount: accountID
},
)

#

this is the code i wrote.

main dew
steel birch
#

yes

#

you can see my code in the above

#

is there any changes need to be done for the above.

main dew
steel birch
#

invoice: stripe_invoice_details.id,

main dew
#

Your code looks correct. Can you share the full code from creating the invoice?

steel birch
#

yes

main dew
#

Can you double check if the above code is indeed executed? Your stripeAccount seems to be at the wrong place. It should be something like:

stripe.invoiceItems.create(
    {
        customer: stripe_customer_details.id,
        invoice: stripe_invoice_details.id,
        price_data: {
            currency: 'USD',
            unit_amount: items.si_price * 100,
            tax_behavior: 'exclusive',
            product: stripe_product_details.id,
        },
        quantity: items.si_qty,
    }, {
        stripeAccount: accountID
    }
)
steel birch
#

yeah ok sure

#

i will check .

#

yes it worked

main dew
#

Glad to hear that it works!

steel birch
#

stripe_product_details = await stripe.products.create(
{
name: items.si_part_num,
},
{
stripeAccount: accountID
}

#

i am trying to create a product in connected account

#

is it the way to create a product in the connected account

main dew
#

For example,

const product = await stripe.products.create({
  name: 'Basic Dashboard',
  default_price_data: {
    unit_amount: 1000,
    currency: 'usd',
    recurring: {interval: 'month'},
  },
  expand: ['default_price'],
}, {
  stripeAccount: accountID
});
steel birch
#

let me check..

steel birch
#

yes it worked

#

thank you river!!!😊

main dew
#

No problem! Happy to help 😄

steel birch
#

may i know how to add multiple bank account to connect account

main dew
#

Do you mean payout bank on the standard connected account?

steel birch
#

yes

#

river

main dew
steel birch
#

ok river

#

it is helpful