#nick-invoice-period

1 messages · Page 1 of 1 (latest)

thin shellBOT
abstract plover
#

@earnest idol Hello! I'm happy to help, can you provide a clear detailed summary all in one message?

earnest idol
#

Sure, thank you. My developers are seeing subscriptions creating the first invoice with a period of Today - Today. When I create a subscription with the same flags and parameters, it seems to be creating an invoice for Today - One month from today.

#

Odd behavior subscription: sub_1NqhSXLUeeIaGsHRkifXNo8s

#

Seemingly correct behavior subscription: sub_1Ns6S5LUeeIaGsHR49LS7tFL

abstract plover
#

I'm sorry I need a lot more than those short messages in succession. Can you provide actionable details for each one? What do you see, what are the relevant ids? You mentioned 2 Subs ids with no details like the Invoice id, what you see in the API, where you look, what's confusing you, etc.

earnest idol
#

I'm confused as to why some initial invoices for subscriptions are being created showing: "SEP 15 - SEP 15, 2023" for the first line item instead of "SEP 15 - OCT 15, 2023
"

#

From subscription ID in_1NqhSXLUeeIaGsHRq8NJKDca

abstract plover
#

sorry for being a pain, lots of other people needing help here, I was just trying to make you take a step back and write one clear summary in one message (instead of many short sentences in successions seconds apart) so that I can cleanly debug this and help you

earnest idol
#

My developers are seeing subscriptions creating the first invoice with a period of Today - Today. When I create a subscription with the same flags and parameters, it seems to be creating an invoice for Today - One month from today. I'm confused as to why some initial invoices for subscriptions are being created showing: "SEP 15 - SEP 15, 2023" (Invoice ID: in_1NqhSXLUeeIaGsHRq8NJKDca) for the first line item instead of "SEP 15 - OCT 15, 2023 as on Invoice ID: in_1Ns6S5LUeeIaGsHRYFMHAUiU

abstract plover
#

perfect, let me look at both of those and see if I can find the difference, give me a few minutes

#

nick-invoice-period

#

Okay wow, this has nothing to do with the invoice's period itself but instead with a custom one-off InvoiceItem you create via the API yourself for sales tax right?

earnest idol
#

I don't believe so. The Avatax integration is supported by Stripe and appears to be functioning correctly.

abstract plover
#

Ack didn't realize this was coming from a third-party on top of it. But looking, will take a while

abstract plover
#

@earnest idol okay we think it's because one of your examples uses a Test Clock and the time is "frozen" before the Subscription creation so it looks like the InvoiceItem that Avalara is creating was created at the same exact millisecond as the Subscription so it's reflected differently which would never happen in production

#

So if you/your devs advance the TestClock time by one second after Subscription creation you'd see the "grouping behaviour"