#damienfa_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/1260582460631023689
📝 Have more to share? Add details, code, screenshots, videos, etc. below.
My test to reproduce the issue is with this "test" customer :
https://dashboard.stripe.com/test/customers/cus_QRtUzDjpkiIZLo
As you can see here in the last request, I provided via API a very complete address :
https://dashboard.stripe.com/test/logs?object=cus_QRtUzDjpkiIZLo
But, when I create an invoice, the taxes are not calculated. See * "Automatic tax calculation :
Requires location inputs"*, here : https://dashboard.stripe.com/test/invoices/in_1Pazi7FozK3SDFaCMmzR0p30
How do I provide "location inputs" when I already provide the complete customer address ?
Give me a few to take a look
Are you seeing the same for finalized invoices? I see that this one is draft, I wonder if tax calculations run when you finalize the invoice
I can try to finalize the invoice, but why do they say "Requires location inputs" ?
In production, they say to me that the tax is not well calculated for the differents regions of France. This is why I'm looking at it deeper.
That error is returned in two cases: https://docs.stripe.com/tax/customer-locations#address-hierarchy
We use your customer’s shipping address if it’s non-empty. Using an address that isn’t precise enough to calculate tax returns a status of requires_location_inputs.
We use your customer’s billing address if it’s non-empty. Using an address that isn’t precise enough to calculate tax returns a status of requires_location_inputs.
yes, I see. But my address is precise.
I did a subscription from my app :
https://dashboard.stripe.com/test/customers/cus_QRtUzDjpkiIZLo/upcoming_invoice/sub_1Pb0bJFozK3SDFaCASIm8xJf
You can see that the "tax calculation" is set to Manual. Is it normal ? How can I say it should be automatic ?
I see that on your customer your line 1 address is Test addresse
Can you try changing that to a real address?
Ok, I try
DONE.
It doesn't work.
I updated the address, cancel the previous subscription, and create a brand new one from my app.
The tax are still at 20%, instead of 8.5% for this address.
So taxes are being calculated for this customer?
You passed in an explicit tax rate when you created the subscription
https://dashboard.stripe.com/test/logs/req_ijaiNXiJNcBtyY
Tax Rates (manual) are alternatives to Stripe Tax (automatic)
You can't use both at the same time
Can you clarify what you're trying to test exactly? Tax Rates or Stripe Tax?
🤔 not sure to understand the difference.
I want the tax rate is calculated automaticaly from the billing address instead of using the default tax rate.
In my request, I just provide a default_tax_rates. Is it not compatible with Stripe Tax ? If I remove this "default_tax_rate" entry in my request, should it work as expected ? (automaticaly calculated)
I think there's some confusion with the term "Tax Rate"
Tax Rates are a Stripe feature that allows you to create manual tax rates, That's what your subscription creation request is using: https://docs.stripe.com/billing/taxes/tax-rates
Automatic Tax/Stripe Tax is what you'd use if you're trying to calculate taxes automatically based on customer location: https://docs.stripe.com/tax/set-up
In my request, I just provide a default_tax_rates. Is it not compatible with Stripe Tax ? If I remove this "default_tax_rate" entry in my request, should it work as expected ? (automaticaly calculated)
Try it out
and just to clarify, are you trying to test taxes with one-time invoices or recurring invoices (subscriptions)?