#mike_best-practices
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/1242856218322800683
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Unfortunatley not, it looks like you need either a Customer or Account to use our tax IDs API. Can you tell me more about what you are trying to do?
on a user (tenant) registration we require at least following info:
- countryCode (US, CA, FR, DE, etc.)
- taxId (registration number | null = no registration at all)
later the customer can register for stripe tax api to utilize tax features but the taxId has been already stored in his account... 🤷♂️
Ah so you are using connect, but want to delay when you actually create the account? I am not sure if we have a flow that can cover that but can look in to it
I think it is important not only for connected accounts (vendors) but also for the customers (without stripe accounts) as they can have multiple tax-registrations as well... 🤷♂️
I am still not seeing a way to do this without either of those two objects. For Customers, it may make sense to make a dummy customer with no data and add the Customer's details later when you collect them
well, we are platform and the customers are the customers for the vendors while vendors are the customers for us. we don't want to create the vendors' customers in our account
Hello! I'm taking over and catching up...
I'm not sure I 100% understand the issue you're facing. What do you mean by "validate Tax ID provided by a user" exactly?
I agree the expression "by user" can be confusing. I try to reword: when anybody is registering to our platform they must 1) select their country and 2) choose between "no-tax-registration" or "tax-registration". If they select tax-registration they must enter tax-id and we would like to validate it (verify if this is correct) before we allow the registration.
Gotcha. We do perform some validation, but it's not comprehensive. Ultimately it's up to you to verify the IDs on your end, as documented here: https://docs.stripe.com/billing/customer/tax-ids#validation
Yes, that's from where I use the patterns but I have no idea how to validate the code during the registration process on your side?
I can simply validate the format by using your suggested regex pattern however it's not real validation - just checking the format
What do you mean by "real validation"?
Such as If the vat really exists and is active.
You can validate a VAT using VIES: https://ec.europa.eu/taxation_customs/vies/#/vat-validation
I think they have an API somewhere as well.
Yeah, I think there's info here about it: https://ec.europa.eu/taxation_customs/vies/#/technical-information
I know they have. I thought I can utilise your APIs to check tax-ids from more regions (not just eu)
You can, as long as there's an existing Customer. If you don't have a Customer, you can't.
I see. So I would have to create every new registered tenant as customer, right?
Not planned but possible
Sounds like it, yes.
Not sure I understand, are you asking about the Stripe API to create a Tax ID? If so, that's here: https://docs.stripe.com/api/tax_ids
Ok, I’ll figure out