#mike_best-practices

1 messages · Page 1 of 1 (latest)

alpine nacelleBOT
#

👋 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.

urban latch
#

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?

rose nymph
#

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... 🤷‍♂️

urban latch
#

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

rose nymph
#

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... 🤷‍♂️

alpine nacelleBOT
urban latch
#

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

rose nymph
#

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

shrewd wadi
#

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?

rose nymph
#

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.

shrewd wadi
rose nymph
#

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

shrewd wadi
#

What do you mean by "real validation"?

rose nymph
#

Such as If the vat really exists and is active.

shrewd wadi
#

I think they have an API somewhere as well.

rose nymph
#

I know they have. I thought I can utilise your APIs to check tax-ids from more regions (not just eu)

shrewd wadi
#

You can, as long as there's an existing Customer. If you don't have a Customer, you can't.

rose nymph
#

I see. So I would have to create every new registered tenant as customer, right?

#

Not planned but possible

shrewd wadi
#

Sounds like it, yes.

rose nymph
#

Ok. Thank you

#

Could you direct me to the right endpoints for the verification?

shrewd wadi
rose nymph
#

Ok, I’ll figure out