#miha_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1253229975717412874
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hi, I'm unsure what you're asking. Can you clarify please?
It is even better if you have an example
https://docs.stripe.com/billing/customer/tax-ids
Stripe provides automatic validation to help determine โโif the formatting is correct when you add the ID to our system. You can see the results of the validation in the Dashboard along with other customer information, including details returned from the government databases, and the registered name and address.
In one place we do:
Stripe::Customer.create_tax_id(stripe_customer, type: stripe_tax_type, value: tax_number)
and in another:
Stripe::Customer.update(customer, address: {
line1: acc.legal_setting.address_line_1,
line2: acc.legal_setting.address_line_2,
city: acc.legal_setting.city,
postal_code: acc.legal_setting.postal_code,
state: acc.legal_setting.state,
country: acc.legal_setting.country_code
})
And, according to your docs, once you create a customer tax ID, the validation process starts. So if we provide the address after providing tax ID: will that affect validation? Can validation fail because of missing/incorrect address at tax id creation time that would pass if the address was provided before?
To be clear, that documentioned mentions 'Stripe provides automatic validation to help determine โโif the formatting is correct when you add the ID to our system. '.
But it's clearly not just checking for formatting, otherwise validation would be near-instant. EU VAT gets checked against VIES, you even show that in the screenshot.
The Dashboard displays the results of the validation within the customer details, including information returned from the government databases, and the registered name and address.
There is a bit of explanation for UK and EU that you don't validate address, but no additional detail for Australian Business Numbers (ABNs) or United States EIN
I'm still looking at this on my end
I think it should work on the two ways you have the tax ID. However, I recommend that you test this on your end with the test tax ids: https://docs.stripe.com/billing/customer/tax-ids#customer-tax-id-verfication.
the test ids will always do what they say they'll do. they don't actually check the address
it should work on the two ways you have the tax ID.
what do you mean by that?
I tested this, and it worked.. I first pass the test tax ID, and then I add the address.
However, I was not thinking that our test IDs just work regardless
Good call
Let me ask a teammate, hang tight
Can you clarify where the address comes to play on the tax validation?
well that's what I'm asking you ๐
Ohh, haha!
because in EU and UK you explicitly call out that it doesn't but you don't for the rest
You can see the results of the validation in the Dashboard along with other customer information, including details returned from the government databases, and the registered name and address.
so is the address just displayed there or is your tax validation done with address information
I think I totally misunderstood you, sorry about that. I was going too quickly.
I confirmed with a teammate that address does not play into this.
When you pass the customer tax id, we start the validation.
Then, if you update the address, there is no additional validation and there is not correlation to the tax
Right, I assumed as much. But do you only validate the tax number itself or is the address checked against government results too? So in other words: at the start of the tax validation process do you only send the number, or do you send number + address?
It appears number only
Great, thank you! Maybe you should clarify this in the docs, because it wasn't clear. Not to me, and seemingly you either ๐
Yeap, not to me either and I think I misread the question thinking you were saying they were related.