#kt_unexpected
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/1253426662423396393
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hi there ๐ do you know how AvaTax is expecting to be notified that there is an Invoice that requires tax to be added?
Based on the description, it sounds like you may be using a pause behavior that still allows draft Invoices to be created, but they aren't finalized/paid until the Subscription is unpaused. Am I understanding that correctly?
If so, does the AvaTax integration not calculate tax on the draft Invoice when it's generated? Even if it isn't finalized right away?
@fallow nova, I wanted to check in and see if you were still around to tell me more about your situation?
Awesome, take your time! We focus more on the Stripe side of things here, so I'm going to need a bit more context on what AvaTax is expecting here since I'm not familiar with that side of the integration.
No, we're doing behavior: void, this isn't for invoices that are created while paused, it's for the invoice that's created when the subscription is unpaused. So for our example, subscription is paused on 5/22, later that same day it's unpaused, so we send this to unpause:
"proration_behavior": "create_prorations",
"billing_cycle_anchor": "now",
"pause_collection": ""
}```
an invoice is generated by Stripe but instead of staying in a draft state it's immediately finalized so to me it looks like Avatax didn't have time to interact with the invoice, but if we look at the actual event it seems Stripe didn't even send the webhook event to avatax or to our internal api that updates the invoice with transfer data before finalizing evt_1PJN9fAFQUUIWEfkyaZ3KSHN
Oh I see, it wasn't the paused Invoices, it's the proration Invoice that is getting created as part of your update request to unpause the Subscription.
Hm, based on what I'm seeing, it looks like you should still be able to set pay_immediately to false in the update request. I see that isn't in the shared code snippet, nor was used for the update that generated the referenced Event. Do you happen to have the request ID from the Subscription update request where you did try to use that parameter that I could take a closer look at?
oh duh ๐คฆโโ๏ธ I tested with setting pay_immediately: false on the pause subscription update request but not on the unpause update request. Think that did the trick, thanks!
Phew! Glad to hear that worked ๐ฅณ because I wasn't sure what to try next ๐
although one more thing, for the event I sent evt_1PJN9fAFQUUIWEfkyaZ3KSHN it seems like nothing got sent which seems odd, do you think it's related?