#jd-dev_api

1 messages ¡ Page 1 of 1 (latest)

bleak dewBOT
#

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

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

half magnet
#

hi there!

vernal berry
#

hello

half magnet
#

the customer belongs on the platform account, but you are making your request on the connected account. so it's expected not to work.

vernal berry
#

I don't understand that how do i make this work?

#

should the customer also have a conneted account?

half magnet
#

you have two options:

  • create the customer on the connected account. then do the same request and it will work
  • or keep the same customer, but make the API request directly on your paltform (without the Stripe-Account header)
vernal berry
half magnet
#

yes that's correct

#

but you didn't set the Stripe-Account header, so the customer was created on the platform instead of the connected account.

vernal berry
#

One more this this "Stripe Account header" it is the stripe account object that you write with api to run api on behalf of connected account?

half magnet
#

yes. this is explained in details in the link I shared

vernal berry
#

are your saying to remove this part " {
stripeAccount: '{{CONNECTED_ACCOUNT_ID}}',
}" from the api call?

half magnet
#

let's take a step back

#

what is your end goal?

#

call the tax API from the platform account or the connected account?

vernal berry
#

I am trying to calculate tax for my platform customer and then connected account is the one that is resposible to paying taxes.

#

I am just charging the platform fee/ application fee for my platform services

half magnet
#

then how will you make the actual charge? a Direct Charge, Destination Charge, or Separate Charges & Transfer?

vernal berry
#

it will be a destination charge

half magnet
#

got it. so in this case, when you call the Tax Calulation API, remove the Stripe-Account header.

vernal berry
#

see i still don't understand it what is a stripe account header? how do i remove it?

half magnet
#

yes

bleak dewBOT
vernal berry
#

Ok so if i do that then I am following the "Tax for markeplate" use case according to this documentation https://docs.stripe.com/tax/connect but I want connected express account holder for tax resposiblities

#

anyone?

minor bane
#

if you remove Stripe-Account then the request is just happening directly on your main platform account so it's not a Connect/marketplace use case

#

but I want connected express account holder for tax resposiblities
then AFAIK you should run the Tax Calculation API call on the connected account(liek you tried), which means you need to create the Customer object on the connected account in that case.

vernal berry
minor bane
#

yes, but see this part about on_behalf_of

#

that's what you want I think.

vernal berry
#

i create the platform account for customer before any connected account is included. while user is ordering i create the account and then after some washer (connected account) accepts it then it gets assigned to that washer. I am building an online laundry platform

vernal berry
# minor bane yes, but see this part about on_behalf_of

I am assuming if i follow this then platform is the one who is resposible for paying taxes. Is there any way in my use case as i explained above that i connected account is the one resposible for taxes. I cannot create customer account using Stripe_account header because that is not possible in my use case

minor bane
#

true. I'm not entirely sure we support Destination + OBO models on this Tax Calculation API(looking internally I think the answer is no and that model is not supported yet)

vernal berry
minor bane
#

I don't know, sorry.

vernal berry
#

OK i will try this don't close this chat for now thanks