#jd-dev_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/1324363064057004082
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
hello
the customer belongs on the platform account, but you are making your request on the connected account. so it's expected not to work.
I don't understand that how do i make this work?
should the customer also have a conneted account?
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)
it says to create a customer using this api https://docs.stripe.com/api/customers before calling tax calculation api
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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.
you can learn more about this here: https://docs.stripe.com/connect/authentication
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?
yes. this is explained in details in the link I shared
are your saying to remove this part " {
stripeAccount: '{{CONNECTED_ACCOUNT_ID}}',
}" from the api call?
let's take a step back
what is your end goal?
call the tax API from the platform account or the connected account?
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
then how will you make the actual charge? a Direct Charge, Destination Charge, or Separate Charges & Transfer?
it will be a destination charge
got it. so in this case, when you call the Tax Calulation API, remove the Stripe-Account header.
see i still don't understand it what is a stripe account header? how do i remove it?
is this the one
yes
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?
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.
but if i remove Stripe-Account header it will just become this https://docs.stripe.com/tax/tax-for-marketplaces?charge-type=destination-charges
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
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
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)
one thing you could do is call with the Stripe-Account header and use https://docs.stripe.com/api/tax/calculations/create?lang=node#calculate_tax-customer_details instead of passing an actual cus_xxx . That probably works.
Ok so if i follow this and also include on_behalf_of? what happens to the tax collected amount? if it goes to connected account will he see this as tax collected from platform account?
I don't know, sorry.
OK i will try this don't close this chat for now thanks