#guillaumemnt_api

1 messages Ā· Page 1 of 1 (latest)

zenith sailBOT
#

šŸ‘‹ 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/1395769500221178007

šŸ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

gentle swallow
#

Hello, thanks for reaching out.
From the documentation I've read, the information seems only available on the dashboard. LLM suggested to create a draft invoice / checkout with the field automatic_tax=true. In case it's not set up, it'll throw an error.
Although I don't think this approach is "clean" and I don't want to create multiple checkout just to know if the account has enabled automatic_tax

covert galleon
#

You can test using your Sandbox account

gentle swallow
#

what error are you seeing?
I don't see any error, I was expecting to see an object automatic_tax on
stripe tax settings retrieve

{
   "object":"tax.settings",
   "defaults":{
      … 2 items
   },
   "head_office":{
      "address":{
         … 6 items
      }
   },
   "livemode":false,
   "status":"active",
   "status_details":{
      "active":{
         
      }
   }
}
covert galleon
#

What is your ultimate goal here? What Connect Type are you using?

gentle swallow
#

In our platform, we want to let the possibility to organizers (who have their stripe account connected) to choose the tax calculation.
By choosing automatic tax, we're using Stripe Tax API. And we want to check if it's properly setup in the dashboard

covert galleon
#

What connect type are you using with the organizers account?

gentle swallow
#

I'm not sure to understand this question sorry

covert galleon
gentle swallow
#

We're using standard account if it's what you're asking

    const account = await stripeApi.accounts.create({
      type: "standard",
      metadata: {
        organizationId: input.organizationId,
      },
    });
covert galleon
#

Yes!

And not, the response you shared above, what call did you make to get that response?

gentle swallow
#

I wrote
stripe tax settings retrieve
In the sandbox

#

I appreciate the time you're taking for helping me, sorry if I'm not precise enough

covert galleon
#

Let me test this on my end

#

Can you share the request id where you made this request please? I want to see how you made that request

gentle swallow
#

I haven't created a checkout session, it'd be the ultimate way to know if it's enable

covert galleon
#

Can you share the request id where used stripe tax settings retrieve

gentle swallow
#

req_7KakVIFvth0mCH

covert galleon
#

Thank you, spinning up a Standard Connect Account to test this. You should also test this using your Sandbox account. We have test Connect account data: https://docs.stripe.com/connect/testing you can use.

#

To test this, you can create 2 Standard connected Accounts. One, enable tax and the second one do not enable it.

#

Then make that stripe tax settings retrieve call and create Checkout Sessions for both

#

After testing, it looks like you can make this call: https://docs.stripe.com/api/tax/settings/object#tax_settings_object-status using the Stripe account header, https://docs.stripe.com/connect/authentication

You can then look at the status. If it's active, it means the account it set up for tax

active - Tax Settings have the required information and ready for tax calculations.

pending - ax Settings missing some required information and not ready for tax calculations. Check status_details field for more.

#

If you create the Checkout with automatic tax when the status is pending, it errors our and tells you what you need to do

gentle swallow
#

Thanks a lot for your answer, I think I was expecting to see an automatic_tax field, but I imagine it's just something setup for the dashboard.
Merci beaucoup ! šŸ„–

I'll make sure applying what you sent me with the connect/testing documentation page

covert galleon
#

No, automatic_tax is a param for CheckoutSessions in this case. That tax setting GET request does not have that field