#silver_qhq
1 messages · Page 1 of 1 (latest)
Hello
Do you have an example Subscription? How are you setting tax rates on these Subs to begin with?
My guess is you are applying them at the line item level, instead of default?
Which is why you are not seeing any affect from removing them from the default_tax_rates?
Otherwise this should affect future Invoices
I can create one. I've been clearing them and starting over as part of my testing with a test clock. I am setting them using them on the subscription using default_tax_rates when subscription creationg happens.
Hmm okay well then when you remove it from the default_tax_rates it shouldn't continue to apply to future Invoices.
Clearing that list does not remove tax from future invoices. Neither does setting the customers tax exempt status on the customer object
So if you can run a fresh test then I'd be happy to look at that Subscription
Thank you so much. I will setup a test run and send you an id
Soudns good
I found that I had a subscription setup from Friday still. sub_1OcwblLUeeIaGsHRSVGnws6P This subscription started tax exempt, then I added a default tax rate. The customers exmeption stutus is set to none (taxable). I just advanced the test clock, a new invoice was created without applying the Tax Rate
Taking a look
I do see a Tax Rate applied on: https://dashboard.stripe.com/test/invoices/in_1OdwwmLUeeIaGsHRzhCIDy9Z -- that tax rate is just a 0% tax rate
I think maybe you are confused about how tax_exempt works when working with Tax Rates?
That really is only applicable to Stripe Tax or if you want the Invoice to show particular text
Yes, that is what the Stripe portal says, however if you look at the json coming back on the API, the default tax rate is 6.5%
I'm glad to know I can ignore tax exempt flag on the customer. Initially I was only clearing default tax rate, but that wasn't working for me, so I tried the customer flag.
Thank you!
Ah okay this goes back to the beginning -- you do have a line_item tax rate set on Checkout Session creation: https://dashboard.stripe.com/test/logs/req_RDJNhSLoCRUkSq
That is the 0%
So that is overriding the default_tax_rate
As it takes priority
Great information. I am creating the subscription using a Stripe Checkout Session
That must be applying the tax to the line items.
If I want to change/add/remove the tax once a subscription is underway, what is the correct way to do that?
You would update the items.tax_rate (https://stripe.com/docs/api/subscriptions/update#update_subscription-items-tax_rates) instead of the default_tax_rate
Ok, so Subscription.Items[0].TaxRates
Yep
If I subscribe to the Upcoming Invoice webhook, and I verify the customer's tax rate (in our backend systems) at that time, and detect a change. I would need to both update the subscription, but also the upcoming invoice. Because that invoice has already been created (draft). Correct? It is too late to just update the subscription at that point. Right?