#miha_api

1 messages ยท Page 1 of 1 (latest)

ruby mistBOT
#

๐Ÿ‘‹ 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.

exotic linden
#

Hi, I'm unsure what you're asking. Can you clarify please?

#

It is even better if you have an example

sour pumice
#

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?

exotic linden
#

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

sour pumice
#

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

exotic linden
#

I'm still looking at this on my end

sour pumice
#

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?

exotic linden
#

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?

sour pumice
#

well that's what I'm asking you ๐Ÿ˜‚

exotic linden
#

Ohh, haha!

sour pumice
#

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

exotic linden
#

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

sour pumice
#

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?

exotic linden
#

It appears number only

sour pumice
#

Great, thank you! Maybe you should clarify this in the docs, because it wasn't clear. Not to me, and seemingly you either ๐Ÿ˜…

exotic linden
#

Yeap, not to me either and I think I misread the question thinking you were saying they were related.

sour pumice
#

heh, we both learned something today ๐Ÿ˜„

#

thanks!