#kamil1999_api
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/1295464363624366174
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- kamil1999_api, 2 days ago, 17 messages
- kamil_connect-subscription, 3 days ago, 20 messages
- kamil1999_api, 6 days ago, 23 messages
Can you share a request ID where you're seeing this error?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
currently not, i have only error message
That's not much to go with unfortunately, we'll need a reference point to start the investigation. Just the error message isn't enough.. Can you share the platform and the connected account ID?
hmmm, i will try get more data
sorry, its not after onboarding, its on buying normal stripe subscription
im still lookig
wait, i have somethinh
error:
customer_tax_location_invalid
The customer's location isn't recognized. Set a valid customer address in order to automatically calculate tax.
Logs:
{
"automatic_tax": {
"enabled": "true"
},
"customer": "cus_Ptlc4Kv2iE7FYc",
"expand": {
"0": "latest_invoice",
"1": "latest_invoice.payment_intent"
},
"items": {
"0": {
"price": "price_1NqM47BofmnoZGzp7Ae1AEp5"
}
},
"payment_behavior": "default_incomplete",
"payment_settings": {
"save_default_payment_method": "on_subscription"
},
"trial_end": "1730126807"
}
is this enough ?
Is there a request ID? req_xxx ?
nvm, found one - https://dashboard.stripe.com/test/logs/req_qChDCUg9dXCg06
There's no address associated with the customer
Nope, only email was provided - https://dashboard.stripe.com/test/logs/req_97ZTzO4MurN4tJ
thats strange
so through form maybe its optional
can i do also such fast and cool resarch ? How you so fast find it?
and to make payments work i should just add address to this customer on stripe ?
We have our own tools which help us go through objects faster.
But if you wanted to self-serve this, you'd start with a request that failed from your logs - https://dashboard.stripe.com/workbench/logs
Then find the associated customer ID for whom the request was failing and then filter using the resource ID to find the creation request for the customer
and to make payments work i should just add address to this customer on stripe ?
Yes
https://docs.stripe.com/tax/subscriptions#save-customer-details
Happy to help ๐
and for your help!
have a good day, thank you so much ๐
are you there yet?
because now i see that have other subscriptions that pass through payment but dont have address
for exmaple cus_R0p76wELglM3O0
Hi there ๐ jumping in as my teammate needed to step away. Can you elaborate on that? Can you share the ID of the request you're referring to? (Sounds like you were expecting it to error, am I understanding that correctly?)
hello there
in shortcut:
- somomeone was buying subscription by receive error
"The customer's location isn't recognized. Set a valid customer address in order to automatically calculate tax."
the requset id was req_qChDCUg9dXCg06
Hanzo told me that customer from this request (req_qChDCUg9dXCg06) was missing address so error appeared
but i see that customer cus_R0p76wELglM3O0 dont have address and bought subscription in the same way without error
so maybe beacause they had diffrent location? for example one from UK (no error) and other from India (with error)
Do you have the ID of the Subscription you're referring to? It should have a sub_ prefix
yes, this is subscription that was creating succesfully sub_1Q8nTMBofmnoZGzprZqYOdFE
Gotcha, taking a look
Hm, I thought maybe the tax codes for the Products would be different so one was tax exempt, but that doesn't seem to be the case.
hmm i see that customer cus_Ptlc4Kv2iE7FYc who had location error, has subscription that was cancelled yesterday
and error with location is from today
Yes, but it doesn't look like you made any changes to the Customer's address.
yes, he did everything through frontend
Ah, I read your details about this customer wrong. I thought you were saying they had a Subscription created initially, then encountered an error creating one later, I overlooked that these are two distinct Customers. Let me reorient a bit.
Ok, so i see that customer sub_1Pcit4BofmnoZGzpWZf1fxhf had before some subscriptions, yestarday his subscription was cancelled, and today he tried buy diffrent subscription but receive location error
i dont know if he is not from India
I'm double checking exactly where Stripe Tax pulls address details from. In the case of sub_1Q8nTMBofmnoZGzprZqYOdFE, I think the creation request may have succeeded because the Payment Method being used has address details on it.
Yup, it can pull the address from the Payment Method if it isn't on the Customer object:
https://docs.stripe.com/tax/customer-locations#address-hierarchy-other
any idea how to reproduce it?
and if I save address in customer object -> i shouldnt have more errors?
It's your flow, so you likely understand how to reproduce this better than I do.
I see this is where you created the Payment Method being used:
https://dashboard.stripe.com/test/logs/req_tbpw6pAf3yhwLA
from the Card Element.
Then you passed the ID of that Payment Method to default_payment_method when creating the Subscription:
https://dashboard.stripe.com/test/logs/req_XnYQxg089FWzia
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Yup, if you save address details on the Customer object, per the doc I shared those will be used before we look for address details on the Payment Method.
Any time!
have a good day! ๐