#guillaumemnt_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/1395769500221178007
š Have more to share? Add more details, code, screenshots, videos, etc. below.
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
hi, what error are you seeing? Can you share the request id where you see this error? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
As for enabling it, you can look at https://docs.stripe.com/payments/checkout/taxes
You can test using your Sandbox account
I'd like to get the status from dashboard
https://dashboard.stripe.com/test/settings/tax/integrations
and with this value, send it when creating an invoice, let me retrieve the id request if it can be useful for you
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 error are you seeing?
I don't see any error, I was expecting to see an objectautomatic_taxon
stripe tax settings retrieve
{
"object":"tax.settings",
"defaults":{
⦠2 items
},
"head_office":{
"address":{
⦠6 items
}
},
"livemode":false,
"status":"active",
"status_details":{
"active":{
}
}
}
What is your ultimate goal here? What Connect Type are you using?
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
What connect type are you using with the organizers account?
I'm not sure to understand this question sorry
Can you share a request ID where you tried making the Checkout Session creation with the automatic tax? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
We're using standard account if it's what you're asking
const account = await stripeApi.accounts.create({
type: "standard",
metadata: {
organizationId: input.organizationId,
},
});
Yes!
And not, the response you shared above, what call did you make to get that response?
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
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
I haven't created a checkout session, it'd be the ultimate way to know if it's enable
Can you share the request id where used stripe tax settings retrieve
req_7KakVIFvth0mCH
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
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
No, automatic_tax is a param for CheckoutSessions in this case. That tax setting GET request does not have that field