#silver_qhq

1 messages · Page 1 of 1 (latest)

slow dirgeBOT
frigid swift
#

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

tough heath
#

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.

frigid swift
#

Hmm okay well then when you remove it from the default_tax_rates it shouldn't continue to apply to future Invoices.

tough heath
#

Clearing that list does not remove tax from future invoices. Neither does setting the customers tax exempt status on the customer object

frigid swift
#

So if you can run a fresh test then I'd be happy to look at that Subscription

tough heath
#

Thank you so much. I will setup a test run and send you an id

frigid swift
#

Soudns good

tough heath
#

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

frigid swift
#

Taking a look

#

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

tough heath
#

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.

frigid swift
#

Hmm I see what you are saying.

#

Give me a min to look further

tough heath
#

Thank you!

frigid swift
#

That is the 0%

#

So that is overriding the default_tax_rate

#

As it takes priority

tough heath
#

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?

frigid swift
tough heath
#

Ok, so Subscription.Items[0].TaxRates

frigid swift
#

Yep

tough heath
#

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?

frigid swift
#

The Upcoming Invoice Webhook fires before the draft is created

#

So that would work fine.

#

If you wait until invoice.created, then yes, you would need to update the Invoice

tough heath
#

Oh, excellent. I'm happy to hear I only need to update the subscription

#

subscriptoin line items

#

This has been very helpful. Thank you!