#geoff-roberts_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/1326596720976597013
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! When you use the API to create a Tax Calculation it should tell you if the Tax ID provided is invalid. See here for details: https://docs.stripe.com/tax/custom#tax-ids
Will the field itself throw an error if the format of the ID is not valid?
The field on the website you mean?
Yes
That's your field, that's not something Stirpe has any control over.
Is there a Stripe field that we can use instead?
That does validate the format of the data?
We're looking to ensure that if a tax ID is entered because the buyer should be tax exempt, that tax is not applied at checkout.
No, there isn't a Stripe UI component for this.
For an integration like this that's something you'll have to handle on your end using the Tax API I referred to above.
OK—but we should be able to collect a Tax ID value (via our own field), and based on the presence of a Tax ID make sure that the transaction is tax exempt?
As far as I understand your question and situation, yes. Give it a try in test mode and see if it works for your use case.