#manatee_docs
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/1344603447823171588
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
You'd probably use the API
can i ask for example incorrect postal code?
i.e. create a Customer without a valid address and pass tax[validate_location]: 'immediately: https://docs.stripe.com/api/customers/create#create_customer-tax-validate_location
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I would guess anything would work as the API doesn't validate those strings for correctness
๐ฒ
So i can create customer with param given above tax[validate_location]: 'immediately and wrong tax location
i.e address.country USA address.postalCode NotExisting
and i won't get error?
No, you should get the error. That is what you asked for:
How can i create customer to get that error
We validate the address meets our tax requirements: https://docs.stripe.com/tax/customer-locations
If you tell us to
ye, but then i asked about incorrect tax location example, and You said that anything will work
Yes, if you aren't validating the address for tax purposes then any string is valid for an address
But if you want to validate the address for automatic tax computation, and it doesn't meet the requirements, you'll get the error. Try it, you'll see
oh i see, got it now, Thanks for all the help!
so if i pass:
address.Country = USA
address.state = not existing
with param tax[validate_location]: 'immediately
i should get error instantly right?
Yes that is my understanding
thanks. Have great day
(as country: 'USA' is invalid โ we require two-letter codes, so us)
Plus, US needs at least the country and postal code: https://docs.stripe.com/tax/customer-locations#supported-formats